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 hello | |
import ( | |
"github.com/codegangsta/martini" | |
"net/http" | |
) | |
func init() { | |
m := martini.Classic() | |
m.Get("/hello/:name", func(params martini.Params, w http.ResponseWriter) string { |
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 ( | |
"math/rand" | |
"fmt" | |
"strings" | |
) | |
var words = []string { | |
"ボ", |
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
// セッションIDなどの入手方法 | |
// https://www.google.com/events/io/schedule をブラウザで開いてコンソールで以下のJSを実行 | |
var titles = Array.prototype.slice.call(document.querySelectorAll(".event__title")).map(function(node){return node.innerText; }); | |
var rooms = Array.prototype.slice.call(document.querySelectorAll(".event__room")).map(function(node){return node.innerText; }); | |
var ids = Array.prototype.slice.call(document.querySelectorAll(".event__pin")).map(function(node){return node.attributes["data-id"].value; }); | |
var results = [] | |
for(var i = 0; i < titles.length; i++) { | |
results.push({ | |
id: ids[i], | |
title: titles[i], |
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
goog.provide('con.ui.mod_invites'); | |
goog.require('soy'); | |
goog.require('goog.events'); | |
goog.require('con.tmpl.mod_invites'); | |
//goog.require('goog.ui.Container'); | |
goog.require('goog.ui.Component'); | |
goog.require('zag.ui.Table'); | |
goog.require('goog.net.XhrIo'); | |
goog.require('goog.ui.Zippy'); | |
goog.require('wbask.form'); |
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> | |
<script> | |
(function(glb,loc){ | |
loc.onLoad = function(){ | |
var cnv = loc.myCanvas = glb.document.getElementById('myCanvas'); | |
var context = cnv.getContext("2d"); | |
context.fillStyle = "#3411FF"; | |
context.strokeStyle = "red"; | |
context.moveTo(230.0,130.0);context.lineTo(230.0,130.0);context.lineTo(180.0,216.60254037844385);context.lineTo(80.00000000000003,216.60254037844388);context.lineTo(30.0,130.0);context.lineTo(79.99999999999996,43.39745962155615);context.lineTo(179.99999999999994,43.397459621556095);context.lineTo(230.0,129.99999999999997); | |
context.stroke(); |
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 jp.u1aryz.products.samples.httpserver; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.PrintWriter; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
/** |
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 root = './htdocs/'; | |
var html_path = root + 'index.html'; | |
var output = cwd().file(root + 'js/minified.js').create(); | |
var html = cwd().file(html_path).load('UTF-8'); | |
var target_reg = /<!-- MINIFY_TARGET -->([\s\S]+?)<!-- \/MINIFY_TARGET -->/; | |
var block = html.match(target_reg).pop(); | |
var minify = block.match(/'\/js\/.+?'/g).map(function (path) { | |
return cwd().file(root + path.replace(/'/g, '')).load('UTF-8'); | |
}).join(''); |
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
function BigQueryLiveDemo() { | |
//6219749 | |
var list = BigQuery.Projects.list(); | |
Logger.log(list); | |
//プロジェクトIDの取得 | |
var projectId = list.getProjects()[0].getId(); | |
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
function animationPipe(queue, element) { | |
return $.when(queue).pipe(function(){ | |
return $(element).fadeIn(800); | |
}); | |
}; | |
var spanList = $('li span').hide(); | |
var queue = $.Deferred().resolve(); | |
for (var i = 0; i < spanList.length; i++) { |
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
Date: Wed, 20 Feb 2013 12:40:23 +0900 | |
MIME-Version: 1.0 | |
Content-Type: text/plain; charset=UTF-8 | |
Content-Transfer-Encoding: 8bit | |
--- | |
appengine/pom.xml | 18 +++++++++--------- | |
1 file changed, 9 insertions(+), 9 deletions(-) | |
diff --git a/appengine/pom.xml b/appengine/pom.xml |
OlderNewer