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
#!/usr/bin/env python | |
# encoding: utf-8 | |
from bisect import bisect | |
# Roark's Table 26, Case 10, with three edges fixed | |
# a / b, and b1 are defined as lists below: | |
a_by_b = [0.25, 0.50, 0.75, 1.00, 1.50, 2.00, 3.00] | |
b1 = [0.020, 0.081, 0.173, 0.321, 0.727, 1.226, 2.105] |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
Make your own cipher and use it to | |
generate your custom password. | |
1. Think of a phrase that you love. | |
2. Encode it with your custom cipher. | |
3. Use it as your password. |
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
#!/bin/sh | |
# --------------------------------------------- | |
# Usage: | |
# From the results folder, run the following: | |
# | |
# $ sh ./mchklst.sh > checklist.txt | |
# | |
# (checklist.txt would be saved in the results | |
# folder.) | |
# --------------------------------------------- |
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 | |
/* | |
Template Name: Curated posts | |
*/ | |
?> | |
<?php | |
// Begin main loop to list page's static content: | |
if ( have_posts() ) : | |
while ( have_posts() ) : | |
the_post(); |
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
#!/usr/bin/env sh | |
echo "Updating self, then all.." | |
sudo /usr/texbin/tlmgr update --self | |
sudo /usr/texbin/tlmgr update --all | |
echo "Installing fontspec marginnote realscripts sectsty xltxtra ulem .." | |
sudo /usr/texbin/tlmgr install fontspec marginnote realscripts sectsty xltxtra ulem | |
echo "All 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
#!/usr/bin/env sh | |
echo "Stuff I do after a fresh xubuntu install:" | |
echo "" | |
echo "Installing f.lux" | |
sudo add-apt-repository ppa:kilian/f.lux | |
sudo apt-get update | |
echo "Installing all my favorite applications" | |
sudo apt-get -y install fluxgui python-pip git-core gitg gedit gedit-plugins gparted bleachbit gnome-do lightread chromium-browser zsh | |
echo "Removing unwanted applications" | |
sudo apt-get -y remove firefox |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
c2u.py | |
Created by ckunte on 2012-09-21. | |
Note: Keep the following file be placed in the same folder | |
as this script file. | |
Usage (run in Mac Terminal or Gnome Terminal): |
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
[ // Auto-pair underscores | |
{ "keys": ["_"], "command": "insert_snippet", "args": {"contents": "_$0_"}, "context": | |
[ | |
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, | |
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true }, | |
{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "[_a-zA-Z0-9_]$", "match_all": true }, | |
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.underscore", "match_all": true } | |
] | |
}, |
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
#!/usr/bin/env sh | |
echo "Applying permissions to folders as 755, and to files as 644:" | |
find ~/Sites/ckunte.github.com -type d -exec chmod 755 {} + | |
find ~/Sites/ckunte.github.com -type f -exec chmod 644 {} + |
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
## | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
127.0.0.1 localhost | |
255.255.255.255 broadcasthost | |
#::1 localhost | |
#fe80::1%lo0 localhost |
OlderNewer