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
int redPin = 9; | |
int greenPin = 10; | |
int bluePin = 11; | |
int hue = 0; | |
void setup() | |
{ | |
pinMode(redPin, OUTPUT); | |
pinMode(greenPin, OUTPUT); |
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
#ifndef _BinaryTree_h | |
#define _BinaryTree_h | |
template <class DataType> | |
class BinaryTree | |
{ | |
private: |
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
#include "HttpParserSettings.h" | |
#include "HttpConnection.h" | |
#include <QUrl> | |
#include <QByteArray> | |
#include <QHash> | |
#include <QMetaObject> | |
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 os | |
import zmq | |
import wiringpi | |
RED_PIN = 0 | |
GREEN_PIN = 1 | |
BLUE_PIN = 2 | |
def main(): | |
context = zmq.Context() |
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
""" | |
python <(curl https://gist.githubusercontent.com/skhaz/5017547/raw/7f76930c17ce0ec6c67c8a7fefe29fb2cc46d1f9/gistfile1.py) | |
""" | |
import requests | |
import re | |
def Ed(text): | |
params=dict(server='0.0.0.0:8085',charset_post='utf-8', | |
charset='utf-8',pure=1,js=0,tst=1,msg=text) |
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
def render(*args, **kwargs): | |
import inspect | |
call_frame = inspect.getouterframes(inspect.currentframe(), 2) | |
template = jinja2.get_template('{}.html'.format(call_frame[1][3])) | |
return template.render(*args, **kwargs) | |
@route('/') | |
@memorize |
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
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <algorithm> | |
#include <iterator> | |
#include <functional> | |
int main(int argc, char **argv) | |
{ | |
using namespace std; |
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
cat *.cpp *.h | cpp -fpreprocessed | sed 's/[_a-zA-Z0-9][_a-zA-Z0-9]*/x/g' | wc -c |
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
# minute hour day of month month day of week command | |
# 0-59 0-23 1-31 1-12 0-7 (0/7 is Sun) | |
30 18 * * * root /opt/vc/bin/tvservice -p ; /opt/vc/bin/tvservice -o | |
30 8 * * 1-5 root /opt/vc/bin/tvservice -p ; sudo chvt 6; sudo chvt 7 |
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
background yes | |
use_xft yes | |
xftfont Sans:size=8 | |
xftalpha 1 | |
update_interval 1.0 | |
total_run_times 0 | |
own_window yes | |
own_window_transparent yes | |
own_window_type desktop | |
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager |