Skip to content

Instantly share code, notes, and snippets.

@kkrishan
kkrishan / rdoc-example.rb
Created January 19, 2017 05:50 — forked from nicholasjhenry/rdoc-example.rb
RDoc Example
# * Style guide based on Rails documention
module Namespace #:nodoc: don't document this
# Generic Namespace exception class
class NamespaceError < StandardError
end
# Raised when...
class SpecificError < NamespaceError
end
@kkrishan
kkrishan / eulers-problem1-sol.js
Created January 7, 2017 08:13
Eulers'Problem1
var sum = 0;
for (var i=3;i<1000;i++){
if (i%3 === 0 || i%5 === 0){
sum = sum + i;
}
};
console.log("sum is " + sum)