This file contains 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
// | |
// ViewController.swift | |
// | |
// | |
import UIKit | |
class ViewController: UIViewController, UITextFieldDelegate { | |
@IBOutlet var myTextField : UITextField |
This file contains 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
vagrant halt | |
# viで不要なを消すでもいいかも | |
rm -rf /etc/exports | |
touch /etc/exports | |
vagrant up |
This file contains 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
source "https://api.berkshelf.com" | |
cookbook "apache2" | |
cookbook "apt" |
This file contains 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
# config/application.rb | |
require File.expand_path('../boot', __FILE__) | |
# Pick the frameworks you want: | |
require "active_model/railtie" | |
require "active_record/railtie" | |
require "action_controller/railtie" | |
require "action_mailer/railtie" | |
require "action_view/railtie" |
This file contains 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
# config/application.rb | |
require File.expand_path('../boot', __FILE__) | |
# Pick the frameworks you want: | |
require "active_model/railtie" | |
require "active_record/railtie" | |
require "action_controller/railtie" | |
require "action_mailer/railtie" | |
require "action_view/railtie" |
This file contains 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
# Rakefile | |
begin | |
require 'bundler/setup' | |
rescue LoadError | |
puts 'You must `gem install bundler` and `bundle install` to run rake tasks' | |
end | |
require 'rdoc/task' |
This file contains 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
/* | |
* Droppy 0.1.2 | |
* (c) 2008 Jason Frame (jason@onehackoranother.com) | |
*/ | |
$.fn.droppy = function(options) { | |
options = $.extend({speed: 250}, options || {}); | |
this.each(function() { | |
This file contains 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
/* | |
Copyrights (C) 2008 David Esperalta <davidesperalta@gmail.com> | |
This file is part of StyleSwichter jQuery plugin for jQuery | |
StyleSwichter is free software: you can redistribute it and/or | |
modify it under the terms of the GNU General Public License as | |
published by the Free Software Foundation, either version 3 of | |
the License, or (at your option) any later version. |
This file contains 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
/** | |
* Copyright 2007 Google, Inc. | |
* This sample code is under the Apache2 license, see | |
* http://www.apache.org/licenses/LICENSE-2.0 for license details. | |
*/ | |
var TimeTracker=function(opt_bucket){if(opt_bucket){this.bucket_=opt_bucket.sort(this.sortNumber)}else{this.bucket_=TimeTracker.DEFAULT_BUCKET}};TimeTracker.prototype.startTime_;TimeTracker.prototype.stopTime_;TimeTracker.prototype.bucket_;TimeTracker.DEFAULT_BUCKET=[100,500,1500,2500,5000];TimeTracker.prototype._getTimeDiff=function(){return(this.stopTime_-this.startTime_)};TimeTracker.prototype.sortNumber=function(a,b){return(a-b)};TimeTracker.prototype._recordStartTime=function(opt_time){if(opt_time!=undefined){this.startTime_=opt_time}else{this.startTime_=(new Date()).getTime()}};TimeTracker.prototype._recordEndTime=function(opt_time){if(opt_time!=undefined){this.stopTime_=opt_time}else{this.stopTime_=(new Date()).getTime()}};TimeTracker.prototype._track=function(tracker,opt_event_obj_name,opt_event_label){var eventTracker;if(opt_event_obj_name!=un |