A Pen by Blake Friedman on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#$ git branch --edit-description FOO | |
#$ git branches | |
#> FOO - 'some description' | |
#> Bar - | |
#> Bob - | |
[alias] | |
branches = !"for b in `git branch --list | tr -d '* '`; do echo $b " - " `git config branch.$b.description`; done" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div(ng-app="app", ng-controller="ctrl") | |
p {{ a }} | |
p(ng-controller="nested") {{ b }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import path = require('path'); | |
import Git = require('nodegit'); | |
import Rx = require('rx'); | |
class Repo { | |
private repo: Rx.Observable<Git.Repository>; | |
constructor(private pathname: string) { | |
this.repo = Rx.Observable.fromPromise(Git.Repository.open(pathname)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const webpack = require('webpack'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const path = require('path'); | |
module.exports = { | |
context: __dirname, | |
entry: { | |
'app': [ | |
'./src/javascript/site.js', | |
] |
Applications that can run on the client and server side, which for our purposes this means in both the Node and browser environment.
So, how do we do this and how do we use webpack?
Lets install some dependencies:
$ npm i webpack@beta babel-loader babel-preset-es2015 -D
I hereby claim:
- I am blakef on github.
- I am blakef (https://keybase.io/blakef) on keybase.
- I have a public key ASB5Udgevie50fJJSK68eCeX-UDVSqxF7tGRVDW-Q7Nszwo
To claim this, I am signing this object:
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
======== Resolving module 'http' from '/Users/bf/dev/bandicoot/scheduler/src/index.ts'. ======== | |
Module resolution kind is not specified, using 'NodeJs'. | |
Loading module 'http' from 'node_modules' folder. | |
File '/Users/bf/dev/bandicoot/scheduler/src/node_modules/http.ts' does not exist. | |
File '/Users/bf/dev/bandicoot/scheduler/src/node_modules/http.tsx' does not exist. | |
File '/Users/bf/dev/bandicoot/scheduler/src/node_modules/http.d.ts' does not exist. | |
File '/Users/bf/dev/bandicoot/scheduler/src/node_modules/http/package.json' does not exist. | |
File '/Users/bf/dev/bandicoot/scheduler/src/node_modules/http/index.ts' does not exist. | |
File '/Users/bf/dev/bandicoot/scheduler/src/node_modules/http/index.tsx' does not exist. | |
File '/Users/bf/dev/bandicoot/scheduler/src/node_modules/http/index.d.ts' does not exist. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from argparse import ArgumentParser | |
import os | |
import time | |
from slackclient import SlackClient | |
def modified(cache, current): | |
modified = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Monitors a path for file changes and reports them to Slack | |
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"time" |
OlderNewer