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
use std::net::{TcpListener, TcpStream}; | |
use std::thread; | |
use std::io::{stderr,Write,Read}; | |
use std::env::args; | |
macro_rules! unwrap_fmt { | |
($expr:expr) => (match $expr { | |
Ok(val) => val, | |
Err(err) => panic!("{}", err) | |
}) |
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
<link rel="import" href="../speech-mic/speech-mic.html"> | |
<link rel="import" href="../google-map/google-map.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
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
~$ TZ=Pacific/Apia date -d @1325239199 | |
Thu Dec 29 23:59:59 SDT 2011 | |
~$ TZ=Pacific/Apia date -d @1325239200 | |
Sat Dec 31 00:00:00 WSDT 2011 |
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
~$ python3 -m timeit -s 'add=lambda x,y:x+y' $'x=0\nfor i in range(1000000):x=add(x,1)\nassert x==1000000' | |
10 loops, best of 3: 189 msec per loop | |
~$ pypy3 -m timeit -s 'add=lambda x,y:x+y' $'x=0\nfor i in range(1000000):x=add(x,1)\nassert x==1000000' | |
100 loops, best of 3: 2.2 msec per loop | |
~$ python3 -m timeit -s 'from ctypes import c_long;add=lambda x,y:c_long(c_long(x).value+c_long(y).value).value' $'x=0\nfor i in range(1000000):x=add(x,1)\nassert x==1000000' | |
10 loops, best of 3: 1.07 sec per loop | |
~$ pypy3 -m timeit -s 'from ctypes import c_long;add=lambda x,y:c_long(c_long(x).value+c_long(y).value).value' $'x=0\nfor i in range(1000000):x=add(x,1)\nassert x==1000000' | |
10 loops, best of 3: 530 msec per loop | |
~$ python3 -m timeit -s 'from ctypes import c_long' $'x=c_long(0)\nfor i in range(1000000):x.value+=1\nassert x.value==1000000' | |
10 loops, best of 3: 217 msec per loop |
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
["23andMe", "4TucsonTeachers", "5gum", "AAACincy", "AARP", "AEA", "AETV", "AMCTheatres", "ANGAus", "AOL", "ATT", "ATTDeals", "AXE", "Accellion", "Accenture", "According2Casey", "ActivateN", "ActiveState", "ActoniaInc", "Acura_Insider", "AdExchangerJobs", "Adconion_Direct", "AdobeEdu", "AdrianPeterson", "AgentsofSHIELD", "AkkenCloud", "AmericanExpress", "AnDevCon", "AndreeHewitt", "AosthirMahmood", "Apperian", "Apptio", "AroundTownHVAC", "Art_Of_Climbing", "ArubaNetworks", "Audi", "AudrinaPatridge", "AuraSuites1", "BACARDI", "BMWi", "BPTeamUSA", "BancoMundial", "Banfield", "BarclaysFooty", "Bazaarvoice", "BehrPro", "BerkeleyData", "BestBuy", "BestBuy_Deals", "BetrayalABC", "BeyondTrust", "Bit9", "BiteSize_x", "Bitly", "BlackBerry", "Blackboard", "BlurbBooks", "BofA_Community", "BoxHQ", "Bravotv", "BrightHorizons", "BrittiAnn", "Broadcom", "BrotherOffice", "BuySellAds", "CAinc", "CBSSportsNet", "CDWCorp", "CNN", "CSIdentity", "CWAUnion", "CXthecloud", "CareerFuel", "Carestream", "Carhartt", "Carrabbas", "Caspio |
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
IyB2MiBnaXQgYnVuZGxlCjBhNzhlZGM0ZDdkMTFlMDU2MDUxZTE3MGM2YTg0YTFmMGFhNmVjOWMg | |
SEVBRAoKUEFDSwAAAAIAAAAJmw14nJXNQQ7CIBBG4T2n4AIaZqBQEmNcGy8xwI+taa1B9Pz2Cm5f | |
8uX1BuhQZLTIZCjl5FGdIA+GYAeGicySKcVok3pJw7NrY3OySDEzgwnswlABV5M3ZAONwlVsrEnJ | |
p09b09ftPenbPjo9FqDge7mvMi/HvK1nTTwGH5m80wfjjFF7Xefe8a9TUgqKFt0gZYX6AVcGQYGR | |
C3iclcvLDcIwEEXRvauYBkAzjpNxJIRYI5ow8csHJTEyBtrHLbC9uqdkgAbAsXjubduzyKjomshW | |
haECvY9BfWutN+Fd5pTpml4z3So8PVYg4nOZtrCsxyFtZxLrtVNtnNKBHbOpdVtKwb/OfEF73agk | |
mhJF4IlsfhzONH6utgF4nH3WLU5DQRSA0fp2CYgmkCAQlJk7f0GRUIlpWAF7YCGwgyqCQCCqUAgE | |
AoHpAlAk7ICEhCZYcp798mbuPWpisfvmJ5Pj6fL77f5j9py3683RbH59uP8ef23ByMpzk2JWDMWi | |
WBWbYlcciFozSS9JL/FY6SXpJekl6SXpJekl6WmTLL0svSy9zDull6WXpZell6WXpadhQ3ohvZBe | |
SC84kPRCeiG9kF5IT/MU6RXpFekV6RXpFU4rvSK9Ir0iPV1ZpVelV6VXpVelV6VXuYr0qvSq9HRq |
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 collections | |
from expecter import expect | |
import re | |
class EnumItem: | |
def __init__(self, cls, name, iota): | |
self.cls = cls | |
self.name = name |
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
main=putStr$s++show s;s="main=putStr$s++show s;s=" |
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 email | |
import email.parser | |
import imaplib | |
import getpass | |
login = raw_input("Gmail address: ") | |
password = getpass.getpass() | |
sock = imaplib.IMAP4_SSL("imap.gmail.com", 993) | |
sock.login(login, password) |
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
mkdir -p Library/KeyBindings && echo '{"^u":"deleteToBeginningOfLine:","~d":"deleteWordForward:","^w":"deleteWordBackward:","~f":"moveWordForward:","~b":"moveWordBackward:"}' | plutil -convert binary1 -o Library/KeyBindings/DefaultKeyBinding.dict - |