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
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode | |
listening on en1, link-type EN10MB (Ethernet), capture size 65535 bytes | |
20:48:33.497527 IP 192.168.0.4.50639 > r-199-59-148-12.twttr.com.http: Flags [S], seq 4031936946, win 65535, options [mss 1460,nop,wscale 1,nop,nop,TS val 778861211 ecr 0,sackOK,eol], length 0 | |
20:48:33.660910 IP r-199-59-148-12.twttr.com.http > 192.168.0.4.50639: Flags [S.], seq 1371944304, ack 4031936947, win 5792, options [mss 1460,sackOK,TS val 2915537900 ecr 778861211,nop,wscale 8], length 0 | |
20:48:33.660941 IP 192.168.0.4.50639 > r-199-59-148-12.twttr.com.http: Flags [.], ack 1, win 33304, options [nop,nop,TS val 778861213 ecr 2915537900], length 0 | |
20:48:33.661002 IP 192.168.0.4.50639 > r-199-59-148-12.twttr.com.http: Flags [P.], seq 1:148, ack 1, win 33304, options [nop,nop,TS val 778861213 ecr 2915537900], length 147 | |
20:48:33.825157 IP r-199-59-148-12.twttr.com.http > 192.168.0.4.50639: Flags [.], ack 148, win 27, options [nop,nop,TS val 2915538064 ecr 778861 |
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 random import randrange | |
n = 1000000 # The number of iterations | |
switch = stay = 0 # The respective sum of wins for each strategy | |
for i in range(n): | |
# We have 3 doors | |
doors = [False] * 3 |
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
var script = document.createElement("script"); | |
script.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"; | |
document.getElementsByTagName("head")[0].appendChild(script); |
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 main | |
import "go-tour.googlecode.com/hg/pic" | |
func Pic(dx, dy int) [][]uint8 { | |
r := make([][]uint8, dy) | |
for i := 0; i < dy; i++ { | |
r[i] = make([]uint8, dx) | |
for j := 0; j < dx; j++ { |
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
/* | |
* Copyright 2011 James Abley | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
$ nslookup www.delicious.com | |
Server: 62.24.199.13 | |
Address: 62.24.199.13#53 | |
Non-authoritative answer: | |
www.delicious.com canonical name = fe.web1.del.a01.yahoodns.net. | |
Name: fe.web1.del.a01.yahoodns.net | |
Address: 98.139.50.166 | |
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
$ brew doctor | |
Unbrewed dylibs were found in /usr/local/lib. | |
If you didn't put them there on purpose they could cause problems when | |
building Homebrew formulae, and may need to be deleted. | |
Unexpected dylibs: | |
/usr/local/lib/libblkid.2.0.dylib | |
/usr/local/lib/libcom_err.1.1.dylib | |
/usr/local/lib/libe2p.2.1.dylib |
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 com.example.domain; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.persistence.Column; | |
import javax.persistence.Entity; | |
import javax.persistence.FetchType; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.Id; |
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
(ns scratch.core | |
(:use midje.sweet | |
[clojure.set :only [union intersection difference]] | |
)) | |
(def east [1 0]) | |
(def north [0 1]) | |
(def west [-1 0]) | |
(def south [0 -1]) |
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
(ns scratch.core | |
(:use midje.sweet | |
[clojure.set :only [union intersection]] | |
)) | |
(unfinished booking-transaction bookings) | |
(defn empty-history [] | |
[ [] ]) |