This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
// Setup CSRF safety for AJAX: | |
$.ajaxPrefilter(function(options, originalOptions, jqXHR) { | |
if (options.type.toUpperCase() === "POST") { | |
// We need to add the verificationToken to all POSTs | |
var token = $("input[name^=__RequestVerificationToken]").first(); | |
if (!token.length) return; | |
var tokenName = token.attr("name"); | |
Since this is on Hacker News and reddit...
_t
in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".char *
s.type * name
, however, is entirely intentional.FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |
var dummySocket = new ReadWriteNetStream();
// Debug
dummySocket.on('data', function(data){
console.log('write received', data);
});
dummySocket.write('hey !');
// Copyright (c) 2013 Christian Maniewski. License: MIT. | |
'use strict'; | |
var _ = require('lodash') | |
, util = require('util') | |
, stream = require('stream') | |
, Transform = stream.Transform | |
, mmm = require('mmmagic') | |
, Magic = mmm.Magic; |
/* ******************************************************************************************* | |
* THE UPDATED VERSION IS AVAILABLE AT | |
* https://github.com/LeCoupa/awesome-cheatsheets | |
* ******************************************************************************************* */ | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |
#!/usr/bin/env ruby | |
# ABOUT: creates a number of screenshots for all video files in a directory | |
# ATTENTION: make sure to run `gem install streamio-ffmpeg` | |
# USAGE: converter.rb <source dir> <target dir> | |
require "rubygems" | |
require "streamio-ffmpeg" | |
# CONFIGURATION: |