- 「きをつけよう」は意味ない
- 実装、プラクティス、プロセスに落とし込む
- コードレビュー
- 二人で作業
- テストケース
| require 'bundler' | |
| require 'pathname' | |
| require 'colorize' | |
| project_root = Pathname.new(File.dirname(__FILE__) + '/../') | |
| LANG_FILE = "#{project_root}/Project/Base.lproj/Localizable.strings" | |
| puts LANG_FILE.colorize(:blue) | |
| puts "Input".colorize(:green) |
| #import <UIKit/UIKit.h> | |
| #import <ImageIO/ImageIO.h> | |
| #import <MobileCoreServices/MobileCoreServices.h> | |
| static UIImage *frameImage(CGSize size, CGFloat radians) { | |
| UIGraphicsBeginImageContextWithOptions(size, YES, 1); { | |
| [[UIColor whiteColor] setFill]; | |
| UIRectFill(CGRectInfinite); | |
| CGContextRef gc = UIGraphicsGetCurrentContext(); | |
| CGContextTranslateCTM(gc, size.width / 2, size.height / 2); |
| # | |
| # python drive.py "origin" ["waypoint" ... ] "destination" | |
| # | |
| # i.e. python drive.py "Union Square, San Francisco" "Ferry Building, San Francisco" 'Bay Bridge' SFO | |
| import sys, json, urllib2, md5, os.path, pprint | |
| from math import radians, sin, cos, atan2, pow, sqrt | |
| from urllib import quote_plus | |
| from xml.sax.saxutils import escape | |
| from optparse import OptionParser |
| #!/bin/bash | |
| # | |
| #################################### | |
| # iTunes Command Line Control v1.0 | |
| # written by David Schlosnagle | |
| # created 2001.11.08 | |
| # edit 2010.06.01 rahul kumar | |
| #################################### | |
| showHelp () { |
| #!/bin/bash | |
| # Created by Håvard Fossli <[email protected]> in 2013 | |
| # This is free and unencumbered software released into the public domain. | |
| # For more information, please refer to <http://unlicense.org/> | |
| # | |
| # Description | |
| # A bash script for reversing videos using ffmpeg and sox. | |
| # | |
| # Keywords |
| #!/usr/bin/env ruby | |
| require 'colorize' | |
| def exec_cmd(str) | |
| puts "[CMD] #{str}".colorize(:green) | |
| result = '' | |
| result = system(str) | |
| puts "[OUTPUT] #{result}".colorize(:blue) | |
| end |
| #---------------------------------------------- | |
| # モーダル画面の表示 | |
| #---------------------------------------------- | |
| (($)-> | |
| $.SimpleModal = (element, options) -> | |
| defaults = | |
| target: '' | |
| continue_overlay: false | |
| close_callback: -> | |
| css_overlay: |
| # ./logs/ディレクトリの中にあるaccess_logのデータをDBに入れるだけの処理 | |
| require 'mysql2' | |
| require 'active_record' | |
| # | |
| # query | |
| # | |
| def query(sql) | |
| my = Mysql2::Client.new(:host => "localhost", :username => "root", :password => '', :database => 'web_analyze') | |
| my.query("set character set utf8") |
| (function() { | |
| var methodMap = { | |
| 'create': 'POST', | |
| 'update': 'PUT', | |
| 'delete': 'DELETE', | |
| 'read' : 'GET' | |
| }; | |
| var getUrl = function(object) { | |
| if (!(object && object.url)) return null; |