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
| LeaveBenefit.attribute_names.collect { |att| att.to_sym } |
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
| module.exports = (grunt) -> | |
| # Project configuration. | |
| grunt.initConfig | |
| coffee: | |
| options: | |
| sourceMap: false | |
| app: | |
| expand: true | |
| cwd: 'public/js/coffee/' |
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
| ssh root@146.185.xxx.xxx | |
| ssh rails@146.185.xxx.xxx | |
| mkdir -p ~/.ssh | |
| cat ~/.ssh/id_rsa.pub | ssh root@146.185.xxx.xxx 'cat >> ~/.ssh/authorized_keys' | |
| cat ~/.ssh/id_rsa.pub | ssh rails@146.185.xxx.xxx 'cat >> ~/.ssh/authorized_keys' | |
| User: rails |
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
| def silence &block | |
| (begin; yield; rescue; end;) if block_given? | |
| 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
| items_ids = folders_items.reduce( Hash.new{|h, k| h[k] = []}){ |hash, x| | |
| hash[x.item_type].push x.item_id | |
| hash | |
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| http://jsfiddle.net/L6RU3/ |
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
| brew | |
| brew update | |
| brew doctor | |
| tar -zxvf checkinstall-x.x.x.tar.gz | |
| sublime | |
| sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /bin/subl | |
| $ ruby -v # ruby 2.0.0p247 |
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
| #!/bin/bash | |
| # chmod 744 check_soft.sh | |
| BLACK='tput setaf 0' | |
| RED='tput setaf 1' | |
| GREEN='tput setaf 2' | |
| YELLOW='tput setaf 3' | |
| BLUE='tput setaf 4' | |
| MAGENTA='tput setaf 5' | |
| CYAN='tput setaf 6' |
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
| $ x = "http://yandex.ru/yandsearch?text=%E4%E6%E0%E7%EE%E2%FB%E9+%EA%EE%EB%EB%E5%EA%F2%E8%E2&lr=213" | |
| $ CGI.unescape x | |
| => "http://yandex.ru/yandsearch?text=\xE4\xE6\xE0\xE7\xEE\xE2\xFB\xE9 \xEA\xEE\xEB\xEB\xE5\xEA\xF2\xE8\xE2&lr=213" | |
| $ x = CGI.unescape(x).force_encoding('windows-1251').encode | |
| => "http://yandex.ru/yandsearch?text=джазовый коллектив&lr=213" | |
| $ x.encoding | |
| => #<Encoding:UTF-8> |
OlderNewer