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
DISABLE_AUTO_UPDATE="true" | |
ZSH=$HOME/.oh-my-zsh | |
# Look in ~/.oh-my-zsh/themes/ | |
ZSH_THEME="bira" | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" |
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 https://gist.github.com/baojie/4117597 | |
# to be saved as ~/.config/terminator/config | |
# see more choices in http://manpages.ubuntu.com/manpages/karmic/man5/terminator_config.5.html | |
# to install: | |
# mkdir ~/.config/terminator | |
# cd ~/.config/terminator && wget -N https://raw.github.com/gist/4117597/config | |
copy_on_selection = True |
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
As a Google User | |
I want to search Google | |
So that I can test Pyccuracy | |
Scenario 1 - Searching for Hello World | |
Given | |
I go to "http://www.google.com" | |
When | |
I fill "q" textbox with "Hello World" | |
And I click "btnG" button and wait |
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 pin = 13; | |
void setup() | |
{ | |
pinMode(pin, OUTPUT); | |
} | |
void loop() | |
{ | |
// SOS |
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 http://arduino.cc/forum/index.php/topic,43903.0.html#10 | |
byte text[] = "Hello World"; // Transmittet text | |
// Morse code generator for the Arduino | |
// Transmitted text is placed in the first line | |
// Tempo sets the speed of a dot etc. | |
// Morde code was tanken from http://en.wikipedia.org/wiki/Morse_code | |
// Text is looping and prior to transmitting the active pin blinks rapidly | |
// Version 1.0, made by Fletcher Chr |
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 SimpleXMLRPCServer import SimpleXMLRPCServer | |
def file_reader(file_name): | |
with open(file_name, 'r') as f: | |
return f.read() | |
server = SimpleXMLRPCServer(('localhost', 5800)) | |
server.register_introspection_functions() |
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 xmlrpclib | |
proxy = xmlrpclib.ServerProxy('http://localhost:5800/') | |
print proxy.file_reader(os.path.abspath( __file__ )) |
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 red = 13; | |
int yellow = 12; | |
int green = 11; | |
int ON=HIGH; | |
int OFF=LOW; | |
void setup(){ | |
pinMode(red,OUTPUT); | |
pinMode(yellow,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
#include <OneWire.h> | |
//2012-01-12: Jie Bao adapt from below | |
// read data stream and write to json | |
// OneWire DS18S20, DS18B20, DS1822 Temperature Example | |
// | |
// http://www.pjrc.com/teensy/td_libs_OneWire.html | |
// | |
// The DallasTemperature library can do all this work for you! |
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
/* | |
Connections For this application; | |
Use Freeduino-RichBoard made by www.EmbeddedMarket.com | |
1. Connect Digital Pin 9 to Buz pin in Section 9 on Freeduino Board | |
2. Connect USB Cable | |
*/ |
OlderNewer