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
| let keyword = "swift" | |
| let url = NSURL.URLWithString("http://api.atnd.org/events/?format=json&keyword="+keyword) | |
| let session = NSURLSession(configuration: NSURLSessionConfiguration.defaultSessionConfiguration()) | |
| let task = session.dataTaskWithURL(url, completionHandler: { | |
| (data, response, err) in | |
| var dic = NSJSONSerialization.JSONObjectWithData(data, options:nil, error:nil) as NSDictionary | |
| var events = dic["evants"] as NSArray | |
| println(events) | |
| }) | |
| task.resume() |
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 main | |
| import ( | |
| "fmt" | |
| "github.com/dghubble/go-twitter/twitter" | |
| "github.com/dghubble/oauth1" | |
| "log" | |
| "os" | |
| "regexp" | |
| "sort" |
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
| [dummy] | |
| aws_access_key_id = dummy | |
| aws_secret_access_key = dummy |
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
| using System.Linq; | |
| public class Hello{ | |
| public static void Main(){ | |
| var n = int.Parse(System.Console.ReadLine()); | |
| var a = System.Console.ReadLine().Split(' '); | |
| for (var i=n-1; i>=0; i--) { | |
| System.Console.Write(a[i]); | |
| if (i-1 >= 0) { |
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
| describe 'FizzBuzz' do | |
| describe '#run' do | |
| context '3の倍数' do | |
| example 'Fizzという文字列を返すこと' do | |
| expect(FizzBuzz.run(3)).to eq('Fizz') | |
| expect(FizzBuzz.run(6)).to eq('Fizz') | |
| expect(FizzBuzz.run(9)).to eq('Fizz') | |
| expect(FizzBuzz.run(12)).to eq('Fizz') | |
| end | |
| end |
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
| # prefixキーをC-tに変更する | |
| set-option -g prefix C-t | |
| # C-bのキーバインドを解除する | |
| unbind C-b | |
| # マウス | |
| set-option -g mouse on | |
| # ウィンドウ履歴の最大行数 |
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
| using UnityEngine; | |
| using System.Collections; | |
| public class CachingLoadExample : MonoBehaviour | |
| { | |
| string bundleURL = "http://localhost:9000/assets/StreamingAssets/sprites"; | |
| string assetName = "Test"; | |
| int version = 0; | |
| void Start() |
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
| $ git clone git://github.com/tokuhirom/plenv.git ~/.plenv | |
| $ git clone git://github.com/tokuhirom/Perl-Build.git ~/.plenv/plugins/perl-build/ | |
| $ echo 'export PATH="$HOME/.plenv/bin:$PATH"' >> ~/.bash_profile | |
| $ echo 'eval "$(plenv init -)"' >> ~/.bash_profile | |
| $ exec $SHELL -l |
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
| file = ARGV[0] | |
| s = File.read(file, :encoding => Encoding::UTF_8) | |
| puts s.length |
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; | |
| use warnings; | |
| use Data::Dumper; | |
| use Test::More; | |
| sub parse_param { | |
| my ($params) = @_; |
NewerOlder