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
| Пять самых клевых чуваков, | |
| Которых нет милей и краше, | |
| Пять гениальнейших умов, | |
| Творят на Благо Эйч2Раша. | |
| Вот Шалико - надежный друг, | |
| В беде поможет всем вокруг, | |
| Ему усталость не почем, | |
| Он лидер и знаток во всем. |
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
| gem install activerecord-mysql2-adapter |
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
| AX => Aaland Islands | |
| AF => Afghanistan | |
| AL => Albania | |
| DZ => Algeria | |
| AD => Andorra | |
| AO => Angola | |
| AI => Anguilla | |
| AQ => Antarctica | |
| AG => Antigua & Barbuda | |
| AR => Argentina |
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
| resources :users do | |
| put :toggle_status, :on => :member | |
| 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
| ?> a = [1,2,3,4] | |
| => [1, 2, 3, 4] | |
| >> a.object_id | |
| => 2245796340 | |
| >> puts a.each {|e| puts e }.object_id | |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 2245796340 |
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
| class FacebookController < ApplicationController | |
| before_filter :set_p3p_header_for_third_party_cookies | |
| before_filter :ensure_authenticated_to_facebook | |
| def index | |
| end | |
| protected | |
| #each time a user visits apps.facebook.com/xxx_app, we will refresh their access token |
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
| Shaliko := Object clone | |
| Shaliko inspectzero := method( (0 and true) ifTrue("0 is true" println) ifFalse("0 is false" println) ) | |
| Shaliko inspectstr := method( ("" and true) ifTrue("\"\" is true" println) ifFalse("\"\" is false" println) ) | |
| Shaliko slotes := method( Shaliko slotNames println) | |
| Shaliko sayname := method("My name is Shalva" println) | |
| Shaliko sayname | |
| Shaliko inspectzero | |
| Shaliko inspectstr |
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
| //jQuery | |
| $('a[data-popup]').live('click', function(e) { | |
| window.open($(this).href); | |
| e.preventDefault(); | |
| }); | |
| //Prototype.js | |
| document.on("click", "a[data-popup]", function(event, element) { | |
| if (event.stopped) return; | |
| window.open($(element).href); |
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
| require 'yaml' | |
| class Convertor | |
| def initialize(text) | |
| @text = text | |
| end | |
| def prepare | |
| response = "" |
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
| git config --global alias.co checkout | |
| git config --global alias.br branch | |
| git config --global alias.ci commit | |
| git config --global alias.st status | |
| git config --global alias.unstage 'reset HEAD --' | |
| git config --global alias.last 'log -1 HEAD' |