The repo contains drupal core, some vagrant configuration for local development, a db starting place, and some scripts. The repo root looks like:
- drupal
-- sites/default/settings.php
- db
- scripts
- vagrant
/** | |
* MUSTACHES FOR EVERYONE... kind of. | |
*/ | |
(function($) { | |
Drupal.behaviors.mustache = { | |
attach: function() { | |
$("img") | |
.mouseover(function() { |
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"; | |
} |
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); |
easterEgg.BadWorder.list={ | |
"4r5e":1, | |
"5h1t":1, | |
"5hit":1, | |
a55:1, | |
anal:1, | |
anus:1, | |
ar5e:1, | |
arrse:1, | |
arse:1, |
git clone git@github.com:drnikki/laughing-cyril.git | |
cd laughing-cyril | |
echo "this is some text" >> rachel1.txt | |
git add rachel1.txt | |
git commit -m "I am my first commit" | |
git push origin master |
sqlite3 ~/Library/Application\ Support/Skype/<YOUR SKYPENAME>/main.db "SELECT author,timestamp, body_xml FROM messages WHERE dialog_partner = '<OTHER SKYPENAME>'" > ~/Desktop/skype_chat_history.txt |
#!/usr/bin/env ruby | |
#JSON Parsing example | |
require "rubygems" | |
require "json" | |
# i don't like this at all.... | |
photopath = "#{ARGV[0]}" | |
# running from within the repository | |
thecommand ="./openphoto -p -X POST -h YOUR_OPENPHOTO_HOST -e /photo/upload.json -F 'photo=@" + photopath + "' -F 'tags=REPLACEME,WITHTAGS' " |
Verifying that +drnikki is my blockchain ID. https://onename.com/drnikki |
# The word you want to add to, and the optional number to add to it. | |
mongo --eval "var theword='solve', thecount=5" write.js |