Skip to content

Instantly share code, notes, and snippets.

View gautamarora's full-sized avatar

Gautam Arora gautamarora

  • Los Angeles, CA
View GitHub Profile
@ericqweinstein
ericqweinstein / 21cjs.md
Last active May 4, 2016 15:16
Wednesday Workshops: 21st Century JavaScript

Wednesday Workshops: 21st Century JavaScript

About

Each workshop is ~45 minutes over lunch on Wednesdays. There will be a repo with sample code and additional resources so you can continue learning outside the workshop if you want to.

Curriculum

We'll be covering topics in the ES 2015 specification, loosely following this ebook by Alex Rauschmayer. We'll also cover new JavaScript topics and tooling, including Flow, React Native, Electron, and more.

@ericqweinstein
ericqweinstein / wwfp.md
Last active May 4, 2016 15:17
Wednesday Workshops: Functional Programming Patterns in JavaScript

Wednesday Workshops: Functional Programming Patterns in JavaScript

About

Each workshop is ~45 minutes over lunch on Wednesdays. There will be a repo with sample code and additional resources so you can continue learning outside the workshop if you want to.

Curriculum

We'll be using Michael Fogus' Functional Programming in JavaScript as a loose guide. I'll provide you with an electronic copy (EPUB, MOBI, or PDF).

@ericqweinstein
ericqweinstein / wwdsa.md
Last active June 4, 2016 10:27
Wednesday Workshops: Data Structures & Algorithms

Wednesday Workshops: Data Structures & Algorithms

About

Each workshop is ~45 minutes over lunch on Wednesdays. There will be a repo with sample code and additional resources so you can continue learning outside the workshop if you want to.

Curriculum

Intro

@niallo
niallo / app.js
Created March 2, 2013 00:43
Quick and dirty landing page & contact form server in node.js, uses hapi.js, swig and nodemailer.
var mailer = require('nodemailer')
var Hapi = require('hapi')
var util = require('util')
var template = require('swig')
var path = require('path')
var PORT = process.env.PORT || 8080
var server = new Hapi.Server(PORT)
template.init({
@luismayta
luismayta / CsrfProtect.php
Created October 30, 2012 00:39
CsrfProtect by zend framework
<?php
/**
* A controller plugin for protecting forms from CSRF
*
* Works by looking at the response and adding a hidden element to every
* form, which contains an automatically generated key that is checked
* on the next request against a key stored in the session
*
* @author Jani Hartikainen <firstname at codeutopia net>
*/
@dshaw
dshaw / RealtimeConf2012.md
Created October 29, 2012 17:18
Realtime Conf 2012 Talks
@christiangenco
christiangenco / videos.js
Created March 28, 2012 11:24 — forked from csabapalfi/videos.js
Download and Organize Coursera videos
$("h3.list_header").each(function(sectionIndex){
var sectionName = $(this).text().replace(/Chapter .+ - /,"").replace(/\:/,'-').replace(/^(V|I|X)+\. /,'');
$(this).parent().next().find("a.lecture-link").each(function(videoIndex){
var $lectureLink = $(this);
var videoName = $.trim($lectureLink.text());
var downloadLink = $lectureLink.attr('href').replace('view','download.mp4');
var cookieHeader = ' --header \"Cookie:'+ document.cookie + '\" ';
var directory = (sectionIndex+1) + '. ' + sectionName + '/';
var filename = directory + (videoIndex+1) + '. ' + videoName + '.mp4';
@soemarko
soemarko / theme.html
Created November 26, 2011 16:18
embed github gist to tumblr
<!-- Add the following lines to theme's html code right before </head> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script>
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script>
<!--
Usage: just add <div class="gist">[gist URL]</div>
Example: <div class="gist">https://gist.github.com/1395926</div>
-->
@geoffb
geoffb / simple_websocket_client.html
Created October 7, 2010 23:37
Super simple websockets client/server using Python. Compatible with the draft 76 challenge/response.
<!DOCTYPE html>
<html lang="en">
<head>
<title>WebSocket Client</title>
<style>
#output {
border: solid 1px #000;
}
</style>
</head>