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
# DM of the Rings Scraper | |
# A web comic scraper that downloads all pages of Shamus Young's DM of the Rings for your offline reading pleasure | |
# By Kit Maywood | |
# @kittsville | |
# License: WTFPL | |
# Python v: 2.6 | |
import os | |
import sys | |
import urllib |
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
jQuery("a[id^='UnsubscribeItemBtn']").each(function(i,e){e.click();});console.log('Done!'); |
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
NPP_SAVE | |
cd "$(FULL_CURRENT_PATH)" | |
mingw32-make |
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
% | |
% Many of things involve solutions from TeX, the LaTeX Stack Exchange | |
% You guys are amazing | |
% | |
% Stops ugly hyperlink box | |
\documentclass[11pt,hidelinks]{article} | |
% Custom margins using Geometry package |
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
-- ## HELPERS ## | |
-- General purpose functions used in multiple answers to avoid duplicate code | |
-- 1. count | |
-- Counts occurrences of given input in given list of inputs. | |
-- | |
-- Preconditions: | |
-- List must be finite | |
count :: (Eq a) => [a] -> a -> Int |
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
/** | |
* git wipe | |
* Removes all uncommitted changes and untracked files/folders | |
*/ | |
git config --global alias.wipe '!git reset --hard && git clean -fd' | |
/** | |
* git undo | |
* Removes the last commit but leaves all its changes. | |
* Really useful if you fuck-up the commit message |
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
/** | |
* Bulk Flair Upload | |
* Version 0.1 | |
* Author: @kittsville | |
* Allows bulk adding of user flair templates from a text file | |
* Only supports flair name, not CSS class | |
*/ | |
if (!window.FileReader || ![].forEach) { | |
throw "Your browser sucks so this won't work"; | |
} |
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
<VirtualHost *:80> | |
ServerName sitename.localhost | |
ServerAlias www.sitename.localhost | |
DocumentRoot C:/xampp/apps/sitename/htdocs | |
<Directory "C:/xampp/apps/sitename/htdocs"> | |
Options -MultiViews +FollowSymLinks | |
AllowOverride All | |
Require all granted | |
</Directory> |
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
<?php | |
/** | |
* Random Serializable | |
* @author Kit Maywood | |
* @licence WTFPL | |
* @version 1.0 | |
* | |
* Generates a random serializable value such as a string, boolean or array. | |
* Arrays themselves contain random serializable values | |
* I realised how stupid this was but decided to finish it anyway |
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
'body': | |
'ctrl-tab ^ctrl': 'unset!' | |
'ctrl-tab': 'pane:show-next-item' | |
'ctrl-shift-tab ^ctrl': 'unset!' | |
'ctrl-shift-tab': 'pane:show-previous-item' | |
'ctrl-alt-s': 'window:save-all' |
OlderNewer