- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
| request = require 'supertest' | |
| scope = require 'nock' | |
| app = require process.cwd() + '/app.coffee' | |
| backend = require process.cwd() + 'lib/backend.coffee' | |
| URL = | |
| describe 'Collections', -> | |
| describe 'show', -> | |
| it "should return a 404 if the object doesn't exist", (done) -> | |
| scope = nock(backend.url) |
| /** | |
| * Add dataset support to elements | |
| * No globals, no overriding prototype with non-standard methods, | |
| * handles CamelCase properly, attempts to use standard | |
| * Object.defineProperty() (and Function bind()) methods, | |
| * falls back to native implementation when existing | |
| * Inspired by http://code.eligrey.com/html5/dataset/ | |
| * (via https://github.com/adalgiso/html5-dataset/blob/master/html5-dataset.js ) | |
| * Depends on Function.bind and Object.defineProperty/Object.getOwnPropertyDescriptor (polyfills below) | |
| * All code below is Licensed under the X11/MIT License |
| (function (app) { | |
| var loading_class = 'loading'; | |
| var html = document.documentElement; | |
| loading_class = ' ' + loading_class + ' '; | |
| //未サポート | |
| if (!app || app.UNCACHED === app.status) { | |
| init(); | |
| return; | |
| } |
| #SOURCE https://gist.github.com/orzccc/3104030 | |
| ja: | |
| devise: | |
| confirmations: | |
| confirmed: 'アカウントを登録しました。' | |
| # confirmed: 'Your account was successfully confirmed. You are now signed in.' | |
| send_instructions: '登録方法を数分以内にメールでご連絡します。' | |
| # send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.' | |
| send_paranoid_instructions: 'もしあなたのEメールアドレスが見つかった場合、本人確認についてのメールが数分以内に送られます。' |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from urllib import urlopen | |
| import json | |
| import sys | |
| base_url = 'https://api.github.com/users/{username}/gists?page=' | |
| def fetch(username): | |
| def fetch(page): |