Skip to content

Instantly share code, notes, and snippets.

View sankalpsingha's full-sized avatar

Sankalp Singha sankalpsingha

View GitHub Profile
@sankalpsingha
sankalpsingha / Quadtrust Brochure Design ( HTML ).markdown
Last active August 29, 2015 14:23
Quadtrust Brochure Design ( HTML )
-- model
some sort of constant hash:
HASH_NAME = {
0 => "Choose:",
1 => "On-Campus Recruiting - CSO",·
2 => "CSO Staff Referral",
3 => "Faculty Contact",·
4 => "Career Day",·
5 => "CSO Summer Job Listing",·
6 => "Alumni Contact",·
@sankalpsingha
sankalpsingha / Ajax Ember Prefilter
Created November 12, 2014 14:41
This is the Ajax prefilter for Rails to be used for the CSRF with EmberJS
$(->
token = $('meta[name="csrf-token"]').attr('content')
$.ajaxPrefilter((options, originalOptions, xhr)->
xhr.setRequestHeader('X-CSRF-Token', token)
)
)