Skip to content

Instantly share code, notes, and snippets.

View TheFrostlixen's full-sized avatar

Matt Fredrickson TheFrostlixen

View GitHub Profile
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full" /v version
@TheFrostlixen
TheFrostlixen / batch_ren.py
Last active May 17, 2021 10:37
Python script to batch rename files via regex
import glob, os
# point path to directory containing the shows
# load episode titles into `ep.txt`
path = r"I:\Videos\show"
new_filenames = []
with open(path + '\\ep.txt', 'r') as f:
for line in f:
new_filenames.append(line)
@TheFrostlixen
TheFrostlixen / RoadConditions.ini
Last active February 23, 2018 15:23
Rainmeter Skin - Gets road conditions from CA DOT for I-80 (NorCal / Sierra Nevada)
[Rainmeter]
; update once per second
Update=1000
DynamicWindowSize=1
[Metadata]
Name=Road Conditions
Author=TheFrostlixen
Information=Gets road conditions from CA DOT for I-80 (NorCal / Sierra Nevada)
Version=1.0
@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
@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 / 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 / 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 / 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 / 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 / .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