Skip to content

Instantly share code, notes, and snippets.

View gastongouron's full-sized avatar
🏠
Working from home

Paul gastongouron

🏠
Working from home
View GitHub Profile
@gastongouron
gastongouron / js
Created November 8, 2015 02:11
Javascript RPN Calculator
// JSRPN - a simple console display javaScript RPN calculator
// by Lars Johnson and Paul Gaston Gouron
var RPN = function(string){
var poppush = function () {
stack.pop()
stack.pop()
stack.push(value)
}
@gastongouron
gastongouron / index.md
Created November 26, 2015 04:52 — forked from rstacruz/index.md
Rails models cheatsheet

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one

@gastongouron
gastongouron / last-style.js
Created December 11, 2015 04:56 — forked from marawan-nwh/last-style.js
get the last element on the dom by class and apply style to it
<script type="text/javascript">
c=document.getElementsByClassName("comment-inner");
last_element = c[c.length - 1];
last_element.style.borderBottomWidth="0";
</script>