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
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | |
ga('create', 'UA-1161728-1', 'auto'); | |
ga('send', 'pageview'); | |
</script> |
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
find /run/media/ryansb -maxdepth 1 -type d | sed 1d | while read line | |
do | |
echo "$line" | |
rm -r $line/* | |
cp -r /home/ryansb/IGIC/*.pdf $line | |
chmod 777 $line/* | |
umount $line | |
done | |
echo "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 python2 | |
from sqlalchemy import create_engine | |
from knowledge.model import Fact, Entity, DBSession, init_model, metadata | |
def inject_knowledge(): | |
knowledge = DBSession | |
monster = Entity(u'Monster') | |
fairy = Entity(u'Fairy') | |
rjbean = Entity(u'rjbean') | |
monster[u'color'] = u'Green' |
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
<!-- Add these tags to the HEAD section of your page. --> | |
<link href="http://coderwall.com/stylesheets/jquery.coderwall.css" media="all" rel="stylesheet" type="text/css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script src="http://coderwall.com/javascripts/jquery.coderwall.js"></script> | |
<!-- You also need to place a container where you'd like the Coderwall badges to render. --> | |
<section class="coderwall" data-coderwall-username="(your username)" data-coderwall-orientation="(vertical or horizontal)"></section> |
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 | |
step = 8 | |
# step = 1 # for finer resolution in the color-space | |
bitspan = lambda : range(0, 255, step) | |
def print_color(r, g, b): | |
print "%.2x%.2x%.2x" % (r, g, b) | |
# You could do this one way, by generating every single combination of red, |