This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
easterEgg.BadWorder.list={ | |
"4r5e":1, | |
"5h1t":1, | |
"5hit":1, | |
a55:1, | |
anal:1, | |
anus:1, | |
ar5e:1, | |
arrse:1, | |
arse:1, |
function parseText(text) { | |
// simplified version of this guys' http://buildingonmud.blogspot.com/2009/06/convert-string-to-unicode-in-javascript.html | |
var charArray = text.split(''); | |
var justKanji = []; | |
charArray.forEach( function(item) { | |
// rejection ranges found @unicodemap.com | |
// http://www.unicodemap.org/range/62/Hiragana/ & http://www.unicodemap.org/range/63/Katakana/ | |
// 12352 - 12543 | |
var unicode = item.charCodeAt(0); |
if ($acct = user_load_by_name('admin')) { | |
echo "loaded user"; | |
// this loads the user's profile 2 data, of the profile2 | |
if ($profiletwo = profile2_load_by_user($acct->uid, 'part_1')) { | |
// and this returns just the term id of what they selected | |
print_r($profiletwo->field_part1_skills); | |
} | |
else { | |
echo "cannot load profile"; | |
} |
/** | |
* MUSTACHES FOR EVERYONE... kind of. | |
*/ | |
(function($) { | |
Drupal.behaviors.mustache = { | |
attach: function() { | |
$("img") | |
.mouseover(function() { |
text | |
text | |
<a href=" | |
<?php | |
$url = current_path(); | |
explode('/', $url); | |
var_dump($url); | |
if(is_numeric($url[1])) { | |
$nid = $url[1]; | |
echo "node/add/resume?=jobxyz=" . $nid; |
## View svn diff in color | |
$ brew install colordiff ( or port install colordiff) | |
$ vim ~/.subversion/config | |
# diff-cmd = diff_program (diff, gdiff, etc.) | |
diff-cmd = colordiff | |
## Customize those hideous colors | |
# started from http://blog.philippklaus.de/2011/09/colourful-svn-diff-on-mac-os-x/ | |
$ vim ~/.colordiffrc |
[alias] | |
last = "!fn() { S=1; A=`git config --get user.name`; if [ -n \"$1\" ]; then S=\"$1\"; shift; fi; if [ -n \"$1\" ]; then if [ \"$1\" != \"me\" ]; then A=\"$1\"; fi; shift; fi; git log -i --since=\"$S days ago\" --author=\"$A\" --branches --remotes --format='%C(yellow)%t%Creset %s (%an)' \"$@\"; }; fn" |
## | |
# This file should be renamed ".gitconfig" and placed inside your home directory. | |
## | |
[user] | |
name = YOUR_NAME | |
email = YOUR_EMAIL | |
[github] | |
user = YOUR_GITHUB_USERNAME | |
token = YOUR_GITHUB_TOKEN |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer