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 SequenceChart = { | |
controller: function() { | |
var ctrl; | |
ctrl = this; | |
ctrl.renderChart = function(data, element, isInit, context) { | |
// 初期化されていないなら、チャートを初期化 | |
if(!isInit) { | |
ctrl.initChart(element, data); |
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
schema "posts" do | |
field :title, :string | |
field :body, :string | |
timestamps | |
end |
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
npm i -S sass-brunch |
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
brew update |
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() { | |
var css, rules, fadein, fadeout; | |
// styleタグを作成 | |
css = document.createElement('style'); | |
css.media = 'screen'; | |
css.type = 'text/css'; |
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
new Paw(document.body) | |
tapRoute = (element, isInitialized, context) -> | |
routeHook = (e) -> | |
`var e` | |
e = e or event | |
# デフォルトのイベントを抑制 | |
if e.preventDefault |
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
.modal { | |
position: absolute; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
z-index: 10000; | |
} | |
.modal-off { |
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 ImageGallery = Ractive.extend({ | |
isolated: false, | |
template: '#imagegallery', | |
onrender: function() { | |
this.on({ | |
AddImage: function( event ) { | |
var input = this.find('.imagegallery_add_input'); | |
var filereaders = []; |
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 ( | |
"fmt" | |
) | |
type Term struct { | |
} | |
func (e *Term)ex1() *Term { |
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
import ( | |
"net/http" | |
) | |
func routeHandler(w http.ResponseWriter, r *http.Request) { | |
実際にはここで各ヘッダのチェックが必要です | |
//リモートアドレスからのアクセスを許可する | |
w.Header().Set( "Access-Control-Allow-Origin", r.RemoteAddr ) |
NewerOlder