==> Downloading http://www.wireshark.org/download/src/wireshark-1.8.6.tar.bz2
Already downloaded: /Library/Caches/Homebrew/wireshark-1.8.6.tar.bz2
tar xf /Library/Caches/Homebrew/wireshark-1.8.6.tar.bz2
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/wireshark/1.8.6 --without-python --disable-wireshark
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/wireshark/1.8.6 --without-python --disable-wireshark
checking build system type... i386-apple-darwin12.3.0
checking host system type... i386-apple-darwin12.3.0
This file contains hidden or 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 <stdlib.h> | |
// Motor shield instructions (set control mode jumpers to PWM mode) | |
// http://www.dfrobot.com/wiki/index.php?title=Arduino_Motor_Shield_(L298N)_(SKU:DRI0009) | |
#define LEFT A7 // Motor Shield E1, Arduino D6 | |
#define RIGHT D1 // Motor Shield E2, Arduino D5 | |
void setup() | |
{ |
This file contains hidden or 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 'socket' | |
require 'ipaddr' | |
MULTICAST_ADDR = '224.0.1.187' | |
PORT = 5683 | |
ip = IPAddr.new(MULTICAST_ADDR).hton + IPAddr.new('0.0.0.0').hton | |
sock = UDPSocket.new | |
sock.setsockopt(Socket::IPPROTO_IP, Socket::IP_ADD_MEMBERSHIP, ip) |
This file contains hidden or 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
// Default to pinkish | |
int redValue = 255; | |
int greenValue = 33; | |
int blueValue = 121; | |
int countdown; | |
void showColor() { | |
RGB.control(true); | |
RGB.color(redValue, greenValue, blueValue); |
This file contains hidden or 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
~/code% git clone https://github.com/HaskVan/HaskellKoans.git | |
Cloning into 'HaskellKoans'... | |
remote: Reusing existing pack: 200, done. | |
remote: Total 200 (delta 0), reused 0 (delta 0) | |
Receiving objects: 100% (200/200), 25.54 KiB | 0 bytes/s, done. | |
Resolving deltas: 100% (111/111), done. | |
Checking connectivity... done. | |
~/code% cd HaskellKoans | |
~/code/HaskellKoans% ./bin/setup-koans | |
Writing a default package environment file to |
This file contains hidden or 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
char ipString[16]; | |
char macString[18]; | |
void setup() { | |
Spark.variable("ip", ipString, STRING); | |
Spark.variable("mac", macString, STRING); | |
byte mac[6]; | |
Network.macAddress(mac); | |
sniprintf(macString, 18, "%02x:%02x:%02x:%02x:%02x:%02x", |
This file contains hidden or 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 "application.h" | |
const char PONG_DEBUG = 1; | |
static char score[4] = "0-0"; | |
static char paddle1 = 0; | |
static char paddle2 = 0; | |
bool increment_score(char player) | |
{ |
This file contains hidden or 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
void sixteenRandomBytes(unsigned char buf[16]) { | |
for (int i = 0; i < 16; i++) { | |
buf[i] = rand() & 0xff; | |
} | |
} | |
// PKCS #7 padding | |
// Do this before encrypting to get the message | |
// up to a multiple of 16 bytes. | |
size_t pad(unsigned char *buf, size_t messageLength) { |
This file contains hidden or 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 "application.h" | |
TCPClient client; | |
const byte SERVER[] = { 192, 168, 0, 100 }; // <-- Change to your server | |
const int PORT = 4567; | |
const char REQ_FORMAT[] = "POST / HTTP/1.0\r\n" | |
"Host: example.com\r\n" | |
"Content-Length: %d\r\n" | |
"\r\n%s"; | |
const int MAX_REQ_SIZE = 256; |
This file contains hidden or 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
/var/folders/73/f9rt6pzx2q1dgsqq_5kn6vw40000gn/T/ruby-build.20141024163757.86591 ~/code/spark/website | |
HTTP/1.1 200 OK | |
Content-Type: binary/octet-stream | |
Content-Length: 503012 | |
Connection: keep-alive | |
Date: Thu, 23 Oct 2014 15:35:23 GMT | |
Last-Modified: Fri, 23 May 2014 08:48:21 GMT | |
ETag: "5fe00cda18ca5daeb43762b80c38e06e" | |
Accept-Ranges: bytes | |
Server: AmazonS3 |
OlderNewer