Skip to content

Instantly share code, notes, and snippets.

View anshul's full-sized avatar

Anshul Khandelwal anshul

  • fnp.dev, difference-engine.ai
  • Mumbai, India
  • X @_anshulk
View GitHub Profile
@anshul
anshul / .gitconfig
Created July 20, 2018 11:24
My git setup - the global gitignore and gitconfig
[user]
name = Example Example
email = example@example.org
signkey = examplekey
[github]
user = example
[gpg]
program = gpg
[core]
autocrlf = input
@anshul
anshul / .rubocop.yml
Created January 19, 2017 13:15 — forked from jhass/.rubocop.yml
My preferred Rubocop config
AllCops:
RunRailsCops: true
# Commonly used screens these days easily fit more than 80 characters.
Metrics/LineLength:
Max: 120
# Too short methods lead to extraction of single-use methods, which can make
# the code easier to read (by naming things), but can also clutter the class
Metrics/MethodLength:
@anshul
anshul / .gitconfig
Created January 17, 2017 13:33
My current gitconfig
[user]
name = Example Name
email = mail@example.com
[github]
user = example
[branch]
autosetupmerge = true
[core]
autocrlf = input
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
@anshul
anshul / genymotionwithplay.txt
Created May 18, 2016 14:32 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)
#!/usr/bin/env ruby -w
puts "hello" << "meow" << "rofl"
class String
def <<(arg)
puts "#{self.to_s} called with #{arg.inspect}"
"#{self}#{arg}"
end
end
puts "hello" << "meow" << "rofl"