---------- Forwarded message ----------
From: Mark S. Miller <erights@google.com>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: javascript-standard@google.com
#!/bin/sh | |
# Demo http://ascii.io/a/3019 | |
# build with debug flags | |
go build -gcflags "-N -l" -o out | |
# find the debugger comments | |
awk '/\/\/debugger/ { print "break " FILENAME ":" FNR; }' `find $PWD -name "*.go" | xargs` > .breakpoints |
// Talking console | |
// | |
// Support: http://caniuse.com/#search=SpeechSynthesisUtterance | |
// | |
// Copy paste the code into dev console or | |
// use http://mrcoles.com/bookmarklet/ to create a bookmarklet. | |
/* ✂️ ......................................................................................... */ | |
if(console.log.name !== 'talkLog') { | |
console.l = console.log; |
#!/bin/bash | |
# Takes a repository and script from the command line | |
# and executes the script for each git log entry in reverse chronological order | |
# Use temporary files of the following format | |
TMP_TEMPLATE="/tmp/gitreplay-XXXXXXXX" | |
# Validate command line parameters | |
if [ -z $1 -o -z $2 ]; then |
package main | |
import( | |
"fmt" | |
"time" | |
) | |
func NumberOfTheWeekInMonth(now time.Time) int { | |
beginningOfTheMonth := time.Date(now.Year(), now.Month(), 1, 1, 1, 1, 1, time.UTC) | |
_, thisWeek := now.ISOWeek() |
package importpaths | |
import ( | |
"log" | |
"os" | |
"strconv" | |
"strings" | |
"go/ast" | |
"go/parser" |
---------- Forwarded message ----------
From: Mark S. Miller <erights@google.com>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: javascript-standard@google.com
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |