Skip to content

Instantly share code, notes, and snippets.

View TheFrostlixen's full-sized avatar

Matt Fredrickson TheFrostlixen

View GitHub Profile
@TheFrostlixen
TheFrostlixen / PythonOgre_EXE.md
Last active December 14, 2015 16:43
How to compile Python Ogre to EXE

How To Compile Python Ogre to Standalone Executable

  1. Install python ogre. I recommend using this guide followed by this.

  2. Download and install py2exe for your Python version.

  3. Create setup.py:

setup.py

@TheFrostlixen
TheFrostlixen / dank.ps1
Last active February 3, 2017 02:59
d a n k m e m e s 5 e v e r
Function ToMeme($a){$b=""; foreach($c in $a.tochararray()){$b="$b $c"}; return $b.Trim(' ');}
@TheFrostlixen
TheFrostlixen / SamLatin.ps1
Last active August 29, 2015 14:26
aamsay aatinlay aistgay anoay aithubgay
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 }
@TheFrostlixen
TheFrostlixen / .gitconfig
Last active November 4, 2016 01:53
Portable Git Config File
[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
@TheFrostlixen
TheFrostlixen / Bookmarklets.MD
Last active August 30, 2023 06:54
Bookmarklets - JavaScript apps for your web browser

Bookmarklets

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.

My Bookmarklets

  • 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.
@TheFrostlixen
TheFrostlixen / day-dist.py
Last active December 26, 2015 23:14
Figures out the length of time between two arbitrary days
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): "))
@TheFrostlixen
TheFrostlixen / 001.py
Last active April 26, 2017 22:08
Project Euler solutions
#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
@TheFrostlixen
TheFrostlixen / deeplearning.py
Created April 8, 2016 16:26
MarkovChainz - A learning algorithm that just wants to rap
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],
@TheFrostlixen
TheFrostlixen / AddHiddenStats.js
Last active December 30, 2017 09:50
Amazon Mechanical Turk scripts for GreaseMonkey/TamperMonkey
// ==UserScript==
// @name mmmturkeybacon Add Hidden Stats to Dashboard (TheFrostlixen)
// @version 1.04
// @description Adds submission, return, and abandonment rates to the dashboard. Fixed source.
// @author TheFrostlixen
// @namespace https://greasyfork.org/en/users/34060
// @include https://www.mturk.com/mturk/dashboard
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @grant GM_log
@TheFrostlixen
TheFrostlixen / Rainmeter.ini
Last active March 28, 2019 04:17
My Windows configuration -- Rainmeter & AutoHotKey scripts
[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