Skip to content

Instantly share code, notes, and snippets.

View kashif-umair's full-sized avatar

Kashif Umair Liaqat kashif-umair

View GitHub Profile

Keybase proof

I hereby claim:

  • I am kashif-umair on github.
  • I am kliaqat (https://keybase.io/kliaqat) on keybase.
  • I have a public key ASAcmbBlJuY1Nht93zqrcDz8GewZhcvn0AKlpKoj2PIG4go

To claim this, I am signing this object:

@kashif-umair
kashif-umair / extract_logic.rb
Last active April 18, 2018 10:49
Extract Logic to a Separate Class - Rails
# I have the following classes in my project
class CustomReport < ActiveRecord::Base
def foo
print 'hello'
end
end
class CustomReportService
def bar
..................... . ........... ..... .... .. ..... ..............,,,,,,,,,,,,,:,:::,,,,,,,,...,.... . .
....... .. . . . . ...... . .. ..............,,,,,,,,,,,,,,,,,,...... .
................... ...................... ... . . ...........,.,,,,,,,,:,:,,,,,,...........
,,.................................................. .............,,,,,,,,:::,:,,,:,,,,,.............
::::::::::,,,,,,,,,,,,,,,,,,,,,,,,,............................... . . . .............,,,,,,,,,::::::::::::,,,,,,,,............... ....
:;:;:::::::::::::::,,,:,,,,,,,,,. ;ffttff; .,,,,,..,......................,....,,,,,,,,,,,,,:::::::::;;;;;;;;;:;:::,,,,,::::::,,,,,,,,,................. ...
;;;:::::::::::::::::,,,,,,,,,,. ffGGGGG1LGGCCC .,,,,,,,.,
// Hello world!
@kashif-umair
kashif-umair / CSS-3D-Solar-System.markdown
Created September 2, 2013 06:43
A Pen by Julian Garnier.
MyApplication mApplication = (MyApplication)getApplicationContext();
String username = mApplication.getUsername();
String password = mApplication.getPassword();