View jorie's Snippets

Html5 c47e0ca32648028df3612819e97af026a3041151ebcc38aed5aa4f90a62b5e78

jquery

jQuery tag for html head
  • Sublime 290dfd628fd3c309532bce3d2580240904c92e478430fff680a6546d4b2e7b03Sublime
  • HTML
@jorie
Rails 8f0ea941bce7a3e45b670a2ec319d0cc891bf9992ac3c7c9b0969a7187763045

Just 'if'

if-end for ERB
  • Sublime 290dfd628fd3c309532bce3d2580240904c92e478430fff680a6546d4b2e7b03Sublime
  • Ruby on Rails
@jorie
Nodejs 274d38ddf4bdf77bbfbee408ba951595c04cfed5b0e66942efeda32b0e3767a3

function (req, res)

request/response function
  • Sublime 290dfd628fd3c309532bce3d2580240904c92e478430fff680a6546d4b2e7b03Sublime
  • Node.js
@jorie
Nodejs 274d38ddf4bdf77bbfbee408ba951595c04cfed5b0e66942efeda32b0e3767a3

Mongoose

`require mongoose`
  • Sublime 290dfd628fd3c309532bce3d2580240904c92e478430fff680a6546d4b2e7b03Sublime
  • Node.js
@jorie
Bootstrap a071d875b7de8cc01f962ed0eebd68a6fc4628e6a0cacea8735f6fc5ff409ebb

Bootstrap

bootstrap head tag for html
  • Sublime 290dfd628fd3c309532bce3d2580240904c92e478430fff680a6546d4b2e7b03Sublime
  • Bootstrap
@jorie
Rails 8f0ea941bce7a3e45b670a2ec319d0cc891bf9992ac3c7c9b0969a7187763045

ERB render form

ERB <%= render "form" %>
  • Sublime 290dfd628fd3c309532bce3d2580240904c92e478430fff680a6546d4b2e7b03Sublime
  • Ruby on Rails
@jorie
Ruby ae50781d0962bcf5d6020596b930d15e3e6a4b5b6e73b905f3207135226f3ee1

def

define method and end tag
  • Sublime 290dfd628fd3c309532bce3d2580240904c92e478430fff680a6546d4b2e7b03Sublime
  • Ruby
@jorie
Rails 8f0ea941bce7a3e45b670a2ec319d0cc891bf9992ac3c7c9b0969a7187763045

Basic CRUD

basic CRUD actions for controller
  • Sublime 290dfd628fd3c309532bce3d2580240904c92e478430fff680a6546d4b2e7b03Sublime
  • Ruby on Rails
@jorie
Nodejs 274d38ddf4bdf77bbfbee408ba951595c04cfed5b0e66942efeda32b0e3767a3

Start server

start server on localhost:3000
  • Sublime 290dfd628fd3c309532bce3d2580240904c92e478430fff680a6546d4b2e7b03Sublime
  • Node.js
@jorie
Sass 946670be0ae8a418f160f36b33e9a85ad35bc11a1d3f6e5be8edc8e82a2dfb18

&:

Nested pseudo class seletor
  • Sublime 290dfd628fd3c309532bce3d2580240904c92e478430fff680a6546d4b2e7b03Sublime
  • Sass
@jorie