Skip to content

Instantly share code, notes, and snippets.

View jgable's full-sized avatar

Jacob Gable jgable

  • Making Other People Money
  • Redwood City, CA
  • X @jacob4u2
View GitHub Profile
@jgable
jgable / requiresToImports.js
Last active June 1, 2017 23:28 — forked from ide/requiresToImports.js
Converts commonJS requires to es6 imports
/**
### Regular component require statement
```
const Token = require('v2/core/components/tokenizer/token');
-> import Token from 'v2/core/components/tokenizer/token';
```
### Destructured require statement
```
module.exports = function(grunt) {
var cfg = {
jshint2: {
options: {
jshint: {
node: true,
unused: true,
undef: true
}
},
@jgable
jgable / securing_rails_updates.md
Created March 6, 2012 04:58 — forked from peternixey/securing_rails_updates.md
How Homakov hacked GitHub and how to protect your application

##How Homakov hacked GitHub and the line of code that could have prevented it


Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.

If you'd like to follow me on twitter my handle is @peternixey