- sources: MDN, google/airbnb style guides
/// a one line comment
/* a mutli-
var Year = function(input) { | |
this.input = input; | |
}; | |
Year.prototype.isLeap = function() { | |
if (this.input % 4 === 0) { | |
if (this.input % 100 === 0) { | |
if (this.input % 400 === 0) { | |
return true; |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
(1..100).each do |x| | |
if x % 3 == 0 | |
print "Crackle" | |
if x % 5 == 0 | |
print "Pop" | |
end | |
print "\n" | |
elsif x % 5 == 0 | |
puts "Pop" | |
else |
#### COPY/PASTE #### | |
## vi keybindings in copy mode | |
setw -g mode-keys vi | |
# setup 'v' to begin selection in copy mode | |
bind-key -t vi-copy v begin-selection | |
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" |