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
//PIN 0 -> 7 has positive segment part | |
// the setup routine runs once when you press reset: | |
void setup() { | |
// initialize the digital pin as an output. | |
pinMode(2, OUTPUT); | |
pinMode(3, OUTPUT); | |
pinMode(4, OUTPUT); | |
pinMode(5, OUTPUT); | |
pinMode(6, 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
#!/usr/bin/python3 | |
import sqlite3 | |
conn = sqlite3.connect("trackerbackup") | |
c = conn.cursor() | |
vcard = open("contacts.vcard","w+") | |
PersonContacts = [] |
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
#!/bin/python2 | |
from Tkinter import * | |
import tkFileDialog | |
import base64 | |
import tempfile | |
import os | |
import sys, subprocess | |
class App: |
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
#!/bin/python | |
import numpy as np | |
import cv2 | |
def diffImg(i0,i1,i2): | |
d1 = cv2.absdiff(i2, i1) | |
d2 = cv2.absdiff(i1, i0) | |
return cv2.bitwise_and(d1, d2) | |
cap = cv2.VideoCapture(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
#!/usr/bin/python | |
# Please put this file in the $FG_ROOT directory, chmod +x and run, then look in the procedures subdirectory. | |
import xml.etree.ElementTree as etree | |
import os | |
import shutil | |
from subprocess import call | |
def generate_procedures(source): |
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 | |
import tweepy, time, sys, serial, json | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' | |
ACCESS_KEY = '' | |
ACCESS_SECRET = '' | |
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) |
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
while [ true ] ; do echo 'Hello Marathon' ; sleep 5 ; 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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("github.com") { | |
@font-face { font-family: 'Consolas'; src: local('Hack'); } | |
.blob-code-inner, tt, code, pre, | |
.ace_editor.ace-github-light { | |
font-family: "Hack" !important; | |
} | |
} |
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 python3 | |
from boodschap.database import Product, productdb | |
from datetime import timedelta, datetime | |
from multiprocessing.pool import ThreadPool | |
import time | |
import urllib | |
import json | |
import threading | |
from queue import Queue |
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
ncalls tottime percall cumtime percall filename:lineno(function) | |
39 0.000 0.000 0.000 0.000 genericpath.py:111(_splitext) | |
39 0.000 0.000 0.001 0.000 genericpath.py:16(exists) | |
39 0.000 0.000 0.000 0.000 path.py:131(clean_name) | |
39 0.000 0.000 0.000 0.000 path.py:144(maketrans_init) | |
1 0.000 0.000 0.000 0.000 path.py:174(<dictcomp>) | |
40 0.000 0.000 0.000 0.000 path.py:57(abspath) | |
39 0.000 0.000 0.000 0.000 posixpath.py:115(splitext) | |
39 0.000 0.000 0.000 0.000 posixpath.py:136(basename) | |
1 0.000 0.000 0.000 0.000 posixpath.py:158(islink) |
OlderNewer