Skip to content

Instantly share code, notes, and snippets.

View abdul-shajin's full-sized avatar

Abdul Shajin abdul-shajin

  • E2Open
  • Bangalore
View GitHub Profile
@abdul-shajin
abdul-shajin / params.txt
Last active December 18, 2015 08:29
Rank Links according to number of parameters
Upvote number
Comments recieved for a link
Share count
user rank
Recency
Follower count of category (eg: gaming)
Visiter - Upvote ratio (later)
a)
1.upto(n).each do |num|
if num % 3 == 0
puts 'Hip'
next
elsif num % 5 == 0
puts 'Hop'
next
elsif (num % 3 == 0) && ( num % 5 == 0)
puts 'Whazaa'
[aji](https://www.codesavvy.com)
<a href='google.com'>Here</a>
Hi cmar,
I've stuck with an empty cart bug while developing a spree based application.seems like the reason behind the bug is a method which written by you.The details are here -> https://github.com/spree/spree/issues/2966 . Can you have a look and reply the intension for the method?? I am not able to track.
Thanks in advance
Abdul Shajin

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@abdul-shajin
abdul-shajin / jqueeery
Created January 28, 2012 12:05
stackoverflow_jquery
$(".stream-cell").click(function(e) {
$(this).parent().find(".stream-cell").children(".more_content").slideDown("slow");
$(this).parent().find(".stream-cell").addClass("open_content");
});
I want to check e is coming from <a> tag or <div>
If e is from anchor tag, I want to call some ajax requests, or else, I want to call the existing lines.
@abdul-shajin
abdul-shajin / lifelist
Created December 21, 2011 10:17
Places - Like to visit
Venice Canals
Jungfraujoch - Switzerland
Himalaya
@abdul-shajin
abdul-shajin / Node_couchdb_links
Created December 20, 2011 09:17
Node couch db references
#puts nothing.
class User
bang :calculate_score => :score
def calculate_score
100 # Removed fancy logic for presentational purposes
end
end