Skip to content

Instantly share code, notes, and snippets.

View yosssi's full-sized avatar

Keiji Yoshida yosssi

View GitHub Profile
@yosssi
yosssi / base.ace
Created September 23, 2014 13:53
20140923-ace-02
= doctype html
html
head
title Ace Sample
body
= include inc Input "password" "password" "" "Password" "icon-lock" true true
@yosssi
yosssi / base.ace
Created September 23, 2014 07:11
20140923-ace-01
= doctype html
html
head
title Ace Sample
body
= yield main
@yosssi
yosssi / go-concurrency-patterns.md
Last active September 27, 2018 04:53
Go Concurrency Patterns

Go Concurrency Patterns

Generator: function that returns a channel

package main

import (
	"fmt"
	"math/rand"
@yosssi
yosssi / base.ace
Created August 5, 2014 15:27
[Ace] Default Value Example
html
head
= include inc "aaa"
= include inc "bbb"
= include inc
@yosssi
yosssi / gold-sample.gold
Last active August 29, 2015 14:04
gold-sample.gold
doctype html
html
head
meta http-equiv=Content-Type content="text/html; charset=utf-8"
meta name=keywords content="web, vps, cloud, security"
meta name=description content=Maintenance
meta name=author content="Darius Clark"
title Under Maintenance
link rel=stylesheet href=css/maintenance.css
body
@yosssi
yosssi / plans-of-go.md
Created July 13, 2014 13:24
Plans of Go
  • Create Ruri, HTML template engine
  • Try Go web frameworks
  • Inspect Ruby on Rails
  • Create a Go web framework like Ruby on Rails
@yosssi
yosssi / go-x-webapps.md
Created July 3, 2014 14:38
Go x WebApps
  • next of gold
  • gobench.io
  • OSS group chat app
@yosssi
yosssi / migration
Last active August 29, 2015 14:03
migration
class CreateFbConnections < ActiveRecord::Migration
def self.up
create_table :fb_connections do |t|
t.references :user
t.string :uid
t.string :access_token
t.timestamps
end
add_index :fb_connections, [:user_id]
add_index :fb_connections, [:uid]