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 "LedControl.h" | |
LedControl lc = LedControl(7, 6, 5, 1); | |
void setup() { | |
lc.shutdown(0, false); | |
lc.clearDisplay(0); | |
lc.setIntensity(0, 15); | |
} | |
void printDashes() { |
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
http://stackoverflow.com/questions/23627796/closing-a-form-view/23632367#23632367 |
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
<Application x:Class="WpfApplication2.App" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<Application.Resources> | |
</Application.Resources> | |
</Application> |
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
// ---- | |
// Sass (v3.3.10) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
=draggable($is-draggable) | |
@if $is-draggable | |
cursor: move | |
@else |
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 | |
# -*- coding: utf-8 -*- | |
import sqlite3 as lite | |
import sys | |
import datetime | |
import csv | |
import StringIO | |
import urlparse |
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 | |
import os | |
import shutil | |
import subprocess | |
import tempfile | |
def get_hex_files(): | |
for root, dirs, files in os.walk(os.getcwd()): |
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/sh/ python | |
import os | |
import shutil | |
import hashlib | |
output_dir = '.' | |
for dirpath, dnames, fnames in os.walk("."): | |
for f in fnames: | |
full_path = os.path.join(dirpath, f) |
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 | |
from PIL import Image | |
output_dir = '.\\output' | |
thumbnail_size = (200,200) | |
if not os.path.exists(output_dir): | |
os.makedirs(output_dir) | |
for dirpath, dnames, fnames in os.walk(".\\input"): |
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 call(command, timeout=60): | |
process = None | |
def target(): | |
global process | |
process = subprocess.Popen(command) | |
process.communicate() | |
thread = threading.Thread(target=target) | |
thread.start() |
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 abc import ABCMeta, abstractmethod | |
import inspect | |
class BaseEnum(object): | |
__metaclass__ = ABCMeta | |
def __init__(self): | |
self._names = dict() | |
self._names_reversed = dict() |
OlderNewer