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/env ruby | |
| # | |
| # PostprocessBuildPlayer | |
| # Tested on Ruby 1.8.7, Gem 1.3.6, and xcodeproj 0.3.0 | |
| # Created by akisute (http://akisute.com) | |
| # Licensed under The MIT License: http://opensource.org/licenses/mit-license.php | |
| # | |
| require 'rubygems' | |
| gem "xcodeproj", "=0.3.0" | |
| require 'xcodeproj' |
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
| ######################################## | |
| # 環境変数 | |
| export LANG=ja_JP.UTF-8 | |
| # 色を使用出来るようにする | |
| autoload -Uz colors | |
| colors | |
| # emacs 風キーバインドにする |
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
| "--------------------------------------------------------------------------- | |
| " 編集に関する設定: | |
| " | |
| " タブの画面上での幅 | |
| set tabstop=4 | |
| " タブをスペースに展開しない (expandtab:展開する) | |
| set noexpandtab | |
| " 自動的にインデントする (noautoindent:インデントしない) | |
| set autoindent | |
| " バックスペースでインデントや改行を削除できるようにする |
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
| <?php | |
| require_once('/Vendor/aws_sdk/sdk.class.php'); | |
| $sqs = new AmazonSQS(); | |
| $region = AmazonSQS::REGION_APAC_NE1; | |
| $sqs->set_region($region); | |
| $queueName = 'キュー名'; | |
| $queueURL = $sqs->create_queue($queueName)->body->CreateQueueResult->QueueUrl; | |
| while (true) { |
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
| <?php | |
| $start = microtime(true); | |
| $lists = array(); | |
| for ($i=0; $i<1000000; $i++) { | |
| $key = rand(1,500); | |
| if (!in_array($key, $lists)) { | |
| $lists[] = $key; | |
| } | |
| } | |
| $end = microtime(true); |
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
| # User specific & automatically generated files # | |
| ################################################# | |
| /app/Config/database.php | |
| /app/Config/core.php | |
| /app/Config/bootstrap.php | |
| /app/Config/email.php | |
| /app/tmp/* | |
| !/app/tmp/ | |
| /app/tmp/cache/* |
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
| # Add Repository | |
| tap homebrew/versions || true | |
| tap phinze/homebrew-cask || true | |
| tap homebrew/binary || true | |
| # Brew Update | |
| update || true | |
| # Brew Cask | |
| install brew-cask || true | |
| # Packages | |
| install --disable-etcdir zsh || true |
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
| <!-- | |
| iOSは動くが(iOS8.0ではバグで動かない)、AndroidBrowserだと動かない… | |
| --> | |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf8"> | |
| <style type="text/css"> |
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
| (defun fizzbuzz() | |
| (dotimes (n 1000000) | |
| (defparameter *a* (+ n 1)) | |
| (cond | |
| ((equal(mod *a* 15) 0) (print "FizzBuzz")) | |
| ((equal(mod *a* 5) 0) (print "Buzz")) | |
| ((equal(mod *a* 3) 0) (print "Fizz")) | |
| (1 (print *a*)) | |
| ))) | |
| (ccl:save-application "fizzbuzz" |