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
javascript: | |
$('.ProfileTweet-action--favorite').removeClass('withHeartIcon'); | |
$('.HeartAnimation').removeClass('HeartAnimation').addClass('Icon').toggleClass('Icon--favorite'); | |
$('.Icon--heartBadge').removeClass('Icon--heartBadge').addClass('Icon--favorited'); |
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
function(){ | |
if(!window.tdcolor){ | |
var toggleColor = function(element){ | |
var $elem = $(element); | |
var colored = $elem.data('colored'); | |
if(colored){ | |
$elem.removeAttr('style'); | |
}else{ | |
$elem.attr('style', 'background-color: #f2c3bf'); | |
}; |
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
<?php | |
class Stopwatch | |
{ | |
private $_now; | |
public function __construct() | |
{ | |
} | |
public function start() |
- rvm を使わないようにする
$ mkdir rvm_backup
$ mv ~/.rvm rvm_backup
$ vi ~/.bashrc #rvmの記載を消す
$ vi ~/.bash_profile #rvmの記載を消す
- rbenv, ruby-build, Ruby をインストールする
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
$ ruby-build | |
ruby-build 20121104 | |
usage: ruby-build [-k|--keep] [-v|--verbose] definition prefix | |
ruby-build --definitions | |
$ brew unlink ruby-build | |
Unlinking /usr/local/Cellar/ruby-build/20121104... 4 links removed | |
$ brew install --HEAD ruby-build | |
==> Cloning https://github.com/sstephenson/ruby-build.git | |
Cloning into '/Library/Caches/Homebrew/ruby-build--git'... | |
remote: Counting objects: 87, done. |
$ r s
/Users/imaz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0) amongst [activesupport-3.2.8, bigdecimal-1.1.0, bundler-1.2.1, faraday-0.8.4, github_api-0.7.0, github_downloads-0.1.3, hashie-1.2.0, httpauth-0.2.0, i18n-0.6.1, io-console-0.3, json-1.7.5, json-1.5.4, jwt-0.1.5, mime-types-1.19, minitest-4.2.0, minitest-2.5.1, multi_json-1.3.6, multipart-post-1.1.5, nokogiri-1.5.5, oauth2-0.8.0, rack-1.4.1, rake-0.9.2.2, rbenv-rehash-0.2, rdoc-3.12, rdoc-3.9.4, rest-client-1.6.7] (Gem::LoadError)
from /Users/imaz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /Users/imaz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
from /usr/bin/rails:18:in `<main>'
★さっきのと同じかな?と思ったので
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
rvmを削除してrbenv+ruby-buildに変更して1.9.3-p194をビルドしましたが、Gemfileのなかの | |
gem 'turn', require: false | |
こういうハッシュでエラーが出ます。どうしたら良いでしょうか!? | |
[~/work/Rails/Gettan]$ ruby -v | |
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.2.0] | |
[~/work/Rails/Gettan]$ rbenv version | |
1.9.3-p194 (set by /Users/imaz/.rbenv/version) |
macのばあい!
-
nodeをv0.6.14以上にうp
-
インストーラでいれる
-
qtをいれる
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
https://gist.github.com/1947745 | |
考えている途中メモ | |
(1+x)*x/2 = y | |
⇒x個が最大 | |
(1+x)*x/2 + a = y | |
⇒a+(1~x又はその組合せ) が x+(1~) になるものを探す | |
⇒(過程する最大値~x)をbと置いて、b-aの結果cがx以下になるところを探してbを抜いてcを入れる | |
⇒他 |
NewerOlder