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 / 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>
@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