Skip to content

Instantly share code, notes, and snippets.

View farhansalam's full-sized avatar
🏠
*Always* Working from home

Farhan Salam farhansalam

🏠
*Always* Working from home
View GitHub Profile
@farhansalam
farhansalam / aula.md
Created May 25, 2017 13:42
Aula test gist

Gist block is working

### Keybase proof
I hereby claim:
* I am farhansalam on github.
* I am faaann (https://keybase.io/faaann) on keybase.
* I have a public key ASAaw77CUNy1sCQZpsc-Kam71DnIQ14geM55-69BN-Xwcgo
To claim this, I am signing this object:
eval('["foo","bar","foo "bar"baz"]'.gsub(/(\b)\s?"\s?(\b)/,'\"'))
@farhansalam
farhansalam / proxy_pattern.rb
Last active June 27, 2016 02:00
An example to demonstrate Proxy Pattern implemented in Ruby https://repl.it/C6R2/3
class CarRental
def initialize(cars)
@cars = cars
end
def rent_out(n)
@cars -= n
end
def buy(n)
@cars += n
end