This file contains hidden or 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
| “use strict” | |
| Model = exports? and exports or @Model = {} | |
| class Model.Fuga | |
| constructor: -> |
This file contains hidden or 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
| (゜o゜; |
This file contains hidden or 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 info.graps.controller; | |
| import org.slim3.controller.Controller; | |
| import org.slim3.controller.Navigation; | |
| import com.google.appengine.api.users.UserService; | |
| import com.google.appengine.api.users.UserServiceFactory; | |
| public class LoginController extends Controller { |
This file contains hidden or 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 info.graps.controller; | |
| import info.graps.meta.dto.AuthMeta; | |
| import info.graps.model.dto.Auth; | |
| import org.slim3.controller.Controller; | |
| import org.slim3.controller.Navigation; | |
| import com.google.appengine.api.users.User; | |
| import com.google.appengine.api.users.UserService; |
This file contains hidden or 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
| /* | |
| * grunt | |
| * http://gruntjs.com/ | |
| * | |
| * Copyright (c) 2012 "Cowboy" Ben Alman | |
| * Licensed under the MIT license. | |
| * https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT | |
| */ | |
| module.exports = function (grunt) { |
This file contains hidden or 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
| <!DOCTYPE HTML> | |
| <html lang="ja-JP"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>CORS POST Example</title> | |
| <script type="text/javascript" src="post.js"></script> | |
| </head> | |
| <body> | |
| </body> |
This file contains hidden or 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
| window.onerror = function(message, url, line) { | |
| // ここにメールを送る処理を書く | |
| alert("message: " + message + " url: " + url + " line: " + line); | |
| }; | |
| var hoge = {}; | |
| hoge.push(1); |
This file contains hidden or 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
| Object.prototype.push = function(value) { | |
| this[""+value] = value | |
| } | |
| var obj = {} | |
| obj.push(word); // -> obj = { word: word } |
This file contains hidden or 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
| class Router | |
| def: null | |
| constructor: -> | |
| @def = {} | |
| route: => | |
| #pageloadとhashchangeに登録する | |
| $(window).hashchange => | |
| @def[location.hash]?() | |
| $ -> | |
| @def[location.hash]?() |
This file contains hidden or 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
| # Lines configured by zsh-newuser-install | |
| HISTFILE=~/.histfile | |
| HISTSIZE=1000 | |
| SAVEHIST=1000 | |
| bindkey -v | |
| # End of lines configured by zsh-newuser-install | |
| # The following lines were added by compinstall | |
| zstyle :compinstall filename '/Users/grapswiz/.zshrc' | |
| autoload -Uz compinit |