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
| //下記ソースを読んで設問に答えよ | |
| function User(name){ | |
| this.name = name; | |
| } | |
| User.prototype.introduce = function(){ | |
| return "Hi! My name is " + this.name; | |
| }; |
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
| require 'active_support/core_ext' | |
| # need "core_ext" to load timezone modules | |
| Time.zone = "Pacific Time (US & Canada)" | |
| # There's no timezone just for 'PDT'. | |
| t = Time.zone.parse("2011-08-22 14:00:00") | |
| p t | |
| # => Mon, 22 Aug 2011 14:00:00 PDT -07:00 | |
| p t.in_time_zone("Tokyo") |
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
| #import memcache | |
| import threading | |
| import time | |
| import sys | |
| import urllib2 | |
| import random | |
| url = "http://example.com/yourappplication" | |
| total_num = 1000 |
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
| #!/usr/bin/ruby | |
| # | |
| # Eye-fi receiver | |
| # -- An imcomplete implementation of Gallery Remote Protocol Server | |
| # by SHIDARA Yoji <dara@shidara.net> | |
| # | |
| # see http://codex.gallery2.org/Gallery_Remote:Protocol | |
| # | |
| require 'fileutils' | |
| require 'sinatra' |
NewerOlder