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
/************* | |
* colors.js * | |
************* | |
* | |
* You're almost at the exit. You just need to get past this | |
* color lock. | |
* | |
* Changing your environment is no longer enough. You must | |
* learn to change yourself. I've sent you a little something | |
* that should help with that. |
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
/**************** | |
* drones101.js * | |
**************** | |
* | |
* Do you remember, my dear Professor, a certain introductory | |
* computational rationality class you taught long ago? Assignment | |
* #2, behavior functions of autonomous agents? I remember that one | |
* fondly - but attack drones are so much easier to reason about | |
* when they're not staring you in the face, I would imagine! |
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
" Vim syntax file | |
" >Language: MCS-51 intel Mnemonics (armA) | |
" >Maintainer: Thomas Langewouters <thomas.langewouters@skynet.be> | |
" Inherit his script: iori yja | |
" Language: ARMv5-v7 Mnemonics. | |
" Last Change: | |
" Vim URL: http://www.vim.org/lang.html | |
" arm Home: --- | |
" arm Version: 2.00 |
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
from BeautifulSoup import BeautifulSoup | |
import requests | |
import os | |
album_url = "http://imgur.com/a/TYfWa/all/hot/day/page/%d?scrolled" | |
pages = 3 | |
directory = "heroes" | |
posts_list = [] |
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
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation' |
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/lib/gcc/x86_64-linux-gnu/4.8/include/mm_malloc.h | |
+++ /usr/lib/gcc/x86_64-linux-gnu/4.8/include/mm_malloc.h | |
@@ -32,6 +32,7 @@ | |
extern int posix_memalign (void **, size_t, size_t); | |
#else | |
-extern "C" int posix_memalign (void **, size_t, size_t) throw (); | |
+extern "C" int posix_memalign (void **, size_t, size_t); | |
#endif | |
static __inline void * |
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
# Set the ownership and permissions for the uinput device | |
KERNEL=="uinput", OWNER="root", GROUP="uinput", MODE="0660" |
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
/* Sleep Demo Serial | |
* ----------------- | |
* Example code to demonstrate the sleep functions in a Arduino. Arduino will wake up | |
* when new data is received in the serial port USART | |
* Based on Sleep Demo Serial from http://www.arduino.cc/playground/Learning/ArduinoSleepCode | |
* | |
* Copyright (C) 2006 MacSimski 2006-12-30 | |
* Copyright (C) 2007 D. Cuartielles 2007-07-08 - Mexico DF | |
* | |
* With modifications from Ruben Laguna 2008-10-15 |
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
from pymt import * | |
import sys, dbus, subprocess, os | |
import time | |
class Tracer(MTWidget): | |
SWIPE_X_THRESHOLD = 220 | |
SWIPE_Y_THRESHOLD = 100 | |
LEFT_SWIPE, RIGHT_SWIPE = range(2) | |
block = False |
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
#When dropbox is not working on ubuntu 12 | |
#you tried to execute on terminal: | |
#dropbox start | |
#and the error is something like this: | |
#Starting Dropbox.../home/YOUR_USER/.dropbox-dist/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required #by /usr/lib/x86_64-linux-gnu/libproxy.so.1) | |
#Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so | |
#Done! | |
#FIX | |
cd /home/YOUR_USER/.dropbox-dist/ |
OlderNewer