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
require 'rubygems' | |
require 'culerity' | |
require 'cucumber/formatter/unicode' | |
require 'restclient' | |
require 'couchrest' | |
def read_couchapprc | |
json = "" | |
File.open(File.join(APP_PATH, ".couchapprc")).each { |line| json << line } | |
JSON.parse(json) |
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
{ | |
"env": { | |
"default": { | |
"db-example": "http://user:pass@localhost:5984/myapp-dev", | |
"db": "http://192.168.111.1:5984/rem-dev" | |
}, | |
"test": { | |
"db": "http://localhost:5984/rem-test" | |
}, | |
"production": { |
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
find . -name *.ogg | while read xxx | |
> do | |
> oggdec -o - "$xxx"| lame -h -V 4 --vbr-new - "$(dirname "$xxx")/$(basename "$xxx" .ogg).mp3" | |
> 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
# | |
# /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/programmer.txt | |
# | |
stk500v2.name=AVRISPv2/STK500v2 (serial) | |
stk500v2.communication=serial | |
stk500v2.protocol=stk500v2 |
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
// | |
// Environment: Pollin AVR NETIO board, Arduino 1.0.1, avr-netino (https://code.google.com/p/avr-netino/) | |
// | |
// This is a demo of sending udp packets | |
// 2012-07-08 <Thomas.Mohaupt@gmail.com> http://creativecommons.org/licenses/by-sa/3.0/ | |
// Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) | |
// | |
// On destination site you can receive the packets e.g. with | |
// nc -4ul 7777 | |
// |
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
package abc; | |
import static org.mockito.Matchers.any; | |
import static org.mockito.Matchers.eq; | |
import java.awt.Component; | |
import javax.swing.JOptionPane; | |
import org.powermock.api.mockito.PowerMockito; |
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
Function(parameters){ | |
Boolean found = false; | |
do{ | |
for(counter){ | |
such etwas in einem Array | |
if(bedingung) { | |
found = true; | |
goto do_end | |
} | |
} |
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
// | |
// Environment: | |
// * Pollin AVR NETIO board, | |
// * Arduino 1.0.3, | |
// * avr-netino (https://code.google.com/p/avr-netino/) | |
// | |
// This is a demo of receiving udp packets | |
// | |
// 2012-12-22 <Thomas.Mohaupt@gmail.com> http://creativecommons.org/licenses/by-sa/3.0/ | |
// Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.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
// IP, Arp, UDP and TCP functions. | |
// Author: Guido Socher | |
// Copyright: GPL V2 | |
// | |
// The TCP implementation uses some size optimisations which are valid | |
// only if all data can be sent in one single packet. This is however | |
// not a big limitation for a microcontroller as you will anyhow use | |
// small web-pages. The web server must send the entire web page in one | |
// packet. The client "web browser" as implemented here can also receive | |
// large pages. |
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 socket | |
# Set the socket parameters | |
# avr-netio ip address | |
host = "10.0.0.52" | |
# avr-netio port | |
port = 7777 | |
addr = (host,port) |
OlderNewer