- required
- minLength
- boolean(MySQL:BOOLEAN PostgreSQL:BOOLEAN SQLite3:INTEGER)
- integer(MySQL:{TINYINT,SMALLINT,INT,MEDIUMINT,BIGINT} PostgreSQL:{SMALLINT,INT,BIGINT} SQLite3:INTEGER)
func Each(list []interface{}, iteratee func(el interface{}, index int, list *[]interface{})) { | |
} | |
func Map(list []interface{}, iteratee func(el interface{}, index int, list *[]interface{}) interface{}) []interface{} { | |
} | |
func Reduce(list []interface{}, iteratee func(memo interface{}, value interface{}, index int, list *[]interface{}) interface{}, memo interface{}) interface{} { |
// 結論(出力結果) | |
// Rank 1: Sum: 486, HELMS-05(54) | |
// BODIES-05(50) | |
// FOLDS-01(141) | |
// HANDS-04(120) | |
// LEGS-04(121) | |
// Rank 2: Sum: 484, HELMS-05(54) | |
// BODIES-05(50) | |
// FOLDS-05(139) | |
// HANDS-04(120) |
<?php | |
namespace Drrr; | |
define('FPS', 15); | |
define('LINES', 10); | |
define('WIDTH', (int)`tput cols`); | |
class Loop { | |
private $token; |
'use strict'; | |
var Integrity = require('./integrity'), | |
Transaction = Integrity.Transaction, | |
Action = Integrity.Action; | |
function add(target, num) { | |
return function() { target.num += num; }; | |
} |
// How to run | |
// | |
// ```sh | |
// $ npm install -g typescript | |
// $ tsc index.ts | |
// $ node index.js | |
// ``` | |
const enum State { | |
ALIVE, |
package main | |
import ( | |
"math" | |
"fmt" | |
) | |
func Sqrt(x float64) float64 { | |
z := float64(1) |
// Run: go build /path/to/lifegame/go/index.go; ./index | |
// Environment variables: | |
// - LIFEGAME_WIDTH: int(default is terminal width) | |
// - LIFEGAME_HEIGHT: int(default is terminal height) | |
package main | |
import ( | |
"fmt" | |
"math/rand" |
function profilify(fn, label) { | |
var displayName = label || fn.name, | |
called = 0, | |
profilified = function() { | |
var args = [].slice.call(arguments), | |
startedAt = new Date(), | |
defaults = { total: 0, times: 0, average: 0 }, | |
ret; | |
profilify._stats[displayName] = profilify._stats[displayName] || defaults |