As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| # $ crx `pwd` | |
| function crx() { | |
| ~/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --pack-extension=$@ --pack-extension-key=$@/key.pem | |
| } |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| from collections import namedtuple | |
| from pymongo import MongoClient | |
| from flask import request | |
| from core.web.site import app | |
| from core.web.site.views_master import * | |
| import json | |
| ''' | |
| $('#companies').dataTable( { | |
| "bProcessing": true, |
| 'use strict'; | |
| // Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
| // http://creativecommons.org/publicdomain/zero/1.0/ | |
| (function() { | |
| // Update 'version' if you need to refresh the cache | |
| var staticCacheName = 'static'; | |
| var version = 'v1::'; |
| module.exports = function(config) { | |
| config.set({ | |
| // base path that will be used to resolve all patterns (eg. files, exclude) | |
| basePath: '', | |
| // frameworks to use | |
| // available frameworks: https://npmjs.org/browse/keyword/karma-adapter | |
| frameworks: ['mocha', 'browserify'], |
| 'use strict'; | |
| // simple express server | |
| var express = require('express'); | |
| var app = express(); | |
| var router = express.Router(); | |
| app.use(express.static('public')); | |
| app.get('/', function(req, res) { | |
| res.sendfile('./public/index.html'); |
| // Function to check if the the string given is in the array | |
| inArray := func(str string, list []string) bool { | |
| for _, v := range list { | |
| if v == str { | |
| return true | |
| } | |
| } | |
| return false | |
| } |
| /* | |
| == Tim == | |
| A tiny JavaScript micro-templating script. | |
| http://gist.github.com/521352 | |
| You can use Tim to write simple templates that use JavaScript's | |
| familiar dot notation to replace template tags with JSON object | |
| properties. | |