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
<html> | |
<head> | |
<script type="text/javascript"> | |
function get(id) { | |
return document.getElementById(id); | |
} | |
function updateLower() { | |
var value = get('lower').valueAsNumber; | |
get('upper').min = value + 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
{ | |
"kind": "discovery#restDescription", | |
"id": "foursquare:v2", | |
"name": "foursquare", | |
"version": "v2", | |
"title": "Foursquare API", | |
"description": "Is awesome.", | |
"icons": { | |
"x16": "https://playfoursquare.s3.amazonaws.com/press/logo/icon-16x16.png" | |
}, |
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
<html><head> | |
<script type="application/dart"> | |
main() { | |
print('hello world'); | |
} | |
</script> | |
<script type='text/javascript'> | |
if (navigator.webkitStartDart) { | |
navigator.webkitStartDart(); | |
} |
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
public class MyEntryPoint implements EntryPoint { | |
public void onModuleLoad() { | |
jsniAlert(); | |
jsniAlertParam("Hello"); | |
jsniAlertParam("World"); | |
} | |
private static final native void jsniAlert() /*-{ | |
$wnd.alert("Called JSNI alert"); |
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
public class MyEntryPoint implements EntryPoint { | |
public void onModuleLoad() { | |
doJsni(); | |
} | |
private static void staticMethod(int num) { | |
Window.alert("Static method called " + num); | |
} | |
private void instanceMethod(String str) { |
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 ( | |
"io" | |
"log" | |
"net/http" | |
) | |
const ( | |
buffSize = 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
/* | |
First go to https://code.google.com/apis/console, create a project, enable Cloud Storage in the "Services" | |
tab. Enable billing and create a bucket via the online browser. Then, run this script. | |
Usage: | |
$ go build main.go -o copy_downloads && chmod +x copy_downloads && ./copy_downloads \ | |
--repo=SomeGitHubUser/AndARepo | |
--bucket=google-storage-bucket-that-i-own | |
(Alternately, the build script is available at http://www.imjasonh.com/copy_downloads) |
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 mustlogin | |
import ( | |
"appengine" | |
"appengine/user" | |
"fmt" | |
"net/http" | |
) | |
func init() { |
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 mustoauth | |
import ( | |
"appengine" | |
"appengine/datastore" | |
"appengine/memcache" | |
"appengine/urlfetch" | |
"appengine/user" | |
"encoding/json" | |
"fmt" |
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 ( | |
"flag" | |
"fmt" | |
"image" | |
"image/color" | |
"image/png" | |
"log" | |
"math" |
OlderNewer