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
# The word you want to add to, and the optional number to add to it. | |
mongo --eval "var theword='solve', thecount=5" write.js |
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
Verifying that +drnikki is my blockchain ID. https://onename.com/drnikki |
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 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' " |
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
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 |
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 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 |
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
easterEgg.BadWorder.list={ | |
"4r5e":1, | |
"5h1t":1, | |
"5hit":1, | |
a55:1, | |
anal:1, | |
anus:1, | |
ar5e:1, | |
arrse:1, | |
arse:1, |
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
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); |
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
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"; | |
} |
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
/** | |
* MUSTACHES FOR EVERYONE... kind of. | |
*/ | |
(function($) { | |
Drupal.behaviors.mustache = { | |
attach: function() { | |
$("img") | |
.mouseover(function() { |
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
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; |