8/23/2016
Insert text from files in to one document.
Word -> Insert -> (Text) Object -> Text from File...
METROID NES CLASSIC
Metroid NES Classic (GBA)
Password:
M7-t-- ----w0
2R-LmH m000cN
E. Tanks: 6
Energy: 30
Rockets: 171
Wave Beam
Map: Tourian
Password:
M7-t-- ----w0
2R-o2n q000bc
E. Tanks: 6
Energy: 30
Rockets: 228
Wave Beam
Map: Tourian
If it's not q in this last password it can be l or g
I didn't know how to preserve higher energy in password (game).
Password:
M7-t-- ----w0
2R-LmH m000cN
E. Tanks: 6
Energy: 30
Rockets: 171
Wave Beam
Map: Tourian
Password:
M7-t-- ----w0
2R-o2n q000bc
E. Tanks: 6
Energy: 30
Rockets: 228
Wave Beam
Map: Tourian
If it's not q in this last password it can be l or g
I didn't know how to preserve higher energy in password (game).
6/02/2016
Adding Java Path to Command Prompt
Download JDK for your computer architecture and OS.
Install it.
Start -> Control Panel -> System -> System properties -> Advanced
Find Environment Variables.
Under System Variables, click on Path variable from list -> Edit
Copy path to java binaries C:\Program Files\Java\jdk*****\bin and add it as variable value
Okay everything and now you cna compile and run Java programs.
Install it.
Start -> Control Panel -> System -> System properties -> Advanced
Find Environment Variables.
Under System Variables, click on Path variable from list -> Edit
Copy path to java binaries C:\Program Files\Java\jdk*****\bin and add it as variable value
Okay everything and now you cna compile and run Java programs.
5/21/2016
How to Remove ALL Page Breaks from Word Document
Home -> Replace -> More >> -> Special -> Manual Page Break -> Replace All
5/13/2016
Simple Round Bracket Parsing
For round brackets:
def RBP(expression):
flag = 0
for char in expression:
if char == "(":
flag -=1
elif char == ")":
if flag < 0:
flag +=1
else:
return False
if flag == 0:
return True
return False
5/07/2016
Greatest Common Divisor function with multiple arguments in python
import math
import fractions
def gcdm(*args):
UaS = sorted(list(set(list(args))))
if len(UaS) == 1:
return list(UaS)[0]
if len(UaS) == 2:
return fractions.gcd(UaS[0],UaS[1])
if len(UaS) >= 3:
pair = fractions.gcd(UaS[0],UaS[1])
print(pair)
for i in range(2,len(UaS)):
pair = fractions.gcd(pair,UaS[i])
return pair
return 0
You can do it with fractions or math module which both have gcd function.
Subscribe to:
Posts (Atom)