Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
Trying to stay in the right branch of the wave function.

Jon Schlinkert jonschlinkert

🤔
Trying to stay in the right branch of the wave function.
View GitHub Profile
@jonschlinkert
jonschlinkert / Makefile
Created Jul 6, 2019 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
View Makefile
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@jonschlinkert
jonschlinkert / 0_reuse_code.js
Last active Feb 3, 2018
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View undocumentedHelpers.js
var helperList = ['a', 'b', 'c', 'd', 'e'];
var documentedList = ['a', 'c'];
var undocumentedList = [];
helperList.forEach(function(helper) {
if(_.contains(documentedList, helper) === false) {
undocumentedList.push(helper);
}
});
View attach_heads.js
/**
* Task: attach_heads
* Description: Set the heads for all themes declared in themes.json
*/
module.exports = function(grunt) {
'use strict';
var fs = require('fs');
var path = require('path');
@jonschlinkert
jonschlinkert / grunt.js
Created Nov 17, 2012 — forked from dannygarcia/grunt.js
Sample grunt-jekyll grunt.js
View grunt.js
// Sample grunt-jekyll grunt.js file
// https://github.com/dannygarcia/grunt-jekyll
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jekyll: {
@jonschlinkert
jonschlinkert / javascript-developer-needed.md
Created Nov 15, 2012 — forked from doowb/gist:4064157
Client Side Javascript Developer
View javascript-developer-needed.md

Looking for a client side javascript developer who can use knockout.js to help build the front end of our application. To show off your skills, we would like the html/css and javascript components of Twitter's Bootstrap library turned into templates that would be useful with knockout.js. Things will get much more interesting after that.

Example alert:

<div data-bind="attr: { class: type }">
  <button type="button" class="close" data-dismiss="alert">×</button>
  <!-- ko data-bind="text: message" -->
  <strong>Warning!</strong> Best check yo self, you're not looking too good.
  <!-- /ko -->
</div>
@jonschlinkert
jonschlinkert / gist:4064484
Created Nov 13, 2012 — forked from vinhnx/gist:3510004
Sublime Text 2 - Useful Shortcuts [Windows version]
View gist:4064484

Sublime Text 2 – Useful Shortcuts (Windows)

General

ctrl+T go to file
ctrl+⌃P go to project
ctrl+R go to methods
⌃G go to line
ctrl+KB toggle side bar
ctrl+shift+P command prompt
@jonschlinkert
jonschlinkert / gist:4064483
Created Nov 13, 2012 — forked from hileon/gist:1311735
Sublime Text 2 - Useful Shortcuts
View gist:4064483

Sublime Text 2 – Useful Shortcuts (Windows)

General

Ctrl+KB toggle side bar
Ctrl+Shift+P command prompt
Ctrl+` python console
Ctrl+N new file

Editing

@jonschlinkert
jonschlinkert / domToPre.js
Created Nov 6, 2012 — forked from dpashkevich/domToPre.js
DOM tree to Pre converter
View domToPre.js
/**
* See https://github.com/sellside/pre
*/
/**
* References/todos:
* http://www.lemoda.net/javascript/dump-dom/dump-dom.html
* http://www.howtocreate.co.uk/tutorials/javascript/dombasics
* Use treewalker or nodefilter??
* https://developer.mozilla.org/en-US/docs/DOM/NodeFilter
@jonschlinkert
jonschlinkert / gist:4007536
Created Nov 3, 2012 — forked from axelhzf/gist:3192614
Grunt-reload monitorizar multiples archivos
View gist:4007536
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
less: {
all: {
src: '*.less',
dest: 'style.css'
}
},