-
Install python ogre. I recommend using this guide followed by this.
-
Download and install py2exe for your Python version.
-
Create setup.py:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function ToMeme($a){$b=""; foreach($c in $a.tochararray()){$b="$b $c"}; return $b.Trim(' ');} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function SamL ($a) {$a = $a -replace "[^\w\s]",""; $b = $a.split(" ") | %{"a" + $_.substring(1) + $_[0].ToString().tolower() + "ay" }; [string]::Join(" ", $b) | Out-String } | |
function DecryptSamL ($a) {$b = $a.split(" ") | %{$_[$_.Length-3] + $_.Substring(1, $_.Length-4) }; [string]::Join(" ", $b) | Out-String } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Matt Fredrickson | |
email = mgfredrickson@nevada.unr.edu | |
[push] | |
default = simple | |
[url "https://thefrostlixen@github.com"] | |
insteadOf = https://github.com | |
[alias] | |
c = commit -m | |
ls = status |
A bookmarklet is a javascript app that you save in your web browser as a bookmark. You simply click it and it will perform a task on that webpage.
CleanReddit.js
Removes the header and side panel from Reddit pages. Makes it look a little more clean (and less like you're not working at your desk).QRthis.js
Use Google's API to generate a QR code for the website you're on.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def daysInMonth(x): | |
return 28 + (x + math.floor(x/8)) % 2 + 2 % x + 2 * math.floor(1/x) | |
month = int(raw_input("month: ")) | |
day = int(raw_input("day: ")) | |
dmonth = int(raw_input("to (month): ")) | |
dday = int(raw_input("to (day): ")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#s = 0 | |
#for i in range(1000): | |
# if i % 3 == 0 or i % 5 == 0: | |
# s += i | |
#print s | |
# one-liner | |
print sum( i for i in range(1000) if i % 3 == 0 or i % 5 == 0 ) | |
# ANSWER: 233168 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
def nonlin(x,deriv=False): | |
if(deriv==True): | |
return x*(1-x) | |
return 1/(1+np.exp(-x)) | |
X = np.array([[0,0,1], | |
[0,1,1], | |
[1,0,1], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Rainmeter] | |
SkinPath=C:\Users\fredrickson_m\Documents\Rainmeter\Skins\ | |
Logging=1 | |
ConfigEditor=C:\Program Files (x86)\Notepad++\notepad++.exe | |
;----------------------- | |
; META | |
;----------------------- | |
; BARS | |
[Enigma\Sidebar] | |
Active=1 |
OlderNewer