View file0.html
<div ng-controller="myController"> | |
<div ng-repeat="f in forms"> | |
{{f}} | |
<input ng-model="data[f]" ng-keyup="doChange(f)"> | |
{{dataTimes[f]}} | |
</div> | |
</div> |
View file0.html
<div ng-repeat="(fIndex, f) in foos"> | |
<div> | |
<div ng-repeat="b in foos.bars"> | |
<a ng-click="addSomething(fIndex)">Add Something</a> | |
</div> | |
</div> | |
</div> |
View analytics.rb
#!/usr/bin/env ruby | |
# coding : utf-8 | |
# 参考 | |
# https://github.com/google/google-api-ruby-client | |
# https://github.com/google/google-api-ruby-client-samples/tree/master/adsense | |
# https://developers.google.com/api-client-library/ruby/guide/aaa_oauth | |
# http://blog.naberon.jp/post/2013/08/25/google-analytics-api/ | |
# こっちのモジュールも良さそう |
View mv_here_nested_files.rb
#!/usr/bin/env ruby | |
# coding : utf-8 | |
require 'awesome_print' | |
require 'pry' | |
# このスクリプト以下のファイルを見つけたら、このディレクトリに配置する | |
# 重複を避けるためディレクトリの階層分の名前に変更してmvする | |
Dir.glob("./**/*").each do |fp| | |
next if FileTest.directory?(fp) |
View Gemfile
+gem 'activerecord-session_store' |
View ja.yml
ja: | |
gender: | |
- '男性' | |
- '女性' |
View bijo_gif_url.rb
require "mechanize" | |
class BijoGifUrl | |
class << self | |
def execute() | |
new().urls | |
end | |
end |
View file0.txt
pip install git+https://github.com/kazuph/unicornherder.git |
View file0.go
slice1 = append(slice1, slice2) |
View db.go
package main | |
import ( | |
"database/sql" | |
"github.com/coopernurse/gorp" | |
_ "github.com/go-sql-driver/mysql" | |
"log" | |
) | |
type PostInfo struct { |
OlderNewer