Skip to content

Instantly share code, notes, and snippets.

@weldan
weldan / hogo.py
Created November 4, 2015 03:59
hogo.py
#weldan@ium.com.my 4/11/15
from gmail import gmail
def download():
g = gmail.login("cs@integralogistic.com.my", "xxxxxx")
if g.logged_in:
hogo = g.label("Hogo").mail()
count = 0
http://nicolasgallagher.com/flexible-css-cover-images/
@weldan
weldan / gist:f487378c6fc060f83d0d
Created February 17, 2015 07:08
I use this to remove .stackable class in view files that has it to remove responsive views on one rails app.
find . -type f -exec sed -i 's/foo/bar/g' {} +
@weldan
weldan / gist:92da2c08b743d23d2987
Created February 17, 2015 06:23
weird error: marshal data too short
resolved with
$ rake tmp:clear
http://www.itsalif.info/content/displaying-star-rating-using-css-sprites
https://quickleft.com/blog/keeping-your-json-response-lean-in-rails/
@weldan
weldan / gist:99dc0556971ec5b84401
Created February 10, 2015 04:40
presenter class
http://nithinbekal.com/posts/rails-presenters/
@weldan
weldan / gist:3198940118fa7cbd4646
Created February 4, 2015 07:09
auto refresh browser bila save dekat code editor
1. install livereload extension dekat chrome
2. install gem guard-livereload
3. guard init livereload
4. run guard
5. run webrick
6. bukak app url
7. enable livereload dekat chrome, dekat page app tu
8. auto reload! (:
@weldan
weldan / gist:80e6a6049a4ef5ce3ebd
Created February 2, 2015 09:38
semantic ui: buat hamburger menu
1. kena define sendiri media query untuk mobile
2. guna semantic ui punya dropdown je, letak icon "content"
farewell. you get me motivated