Skip to content

Instantly share code, notes, and snippets.

@stickel
stickel / webpack.config.js
Created July 30, 2015 16:32
webpack/hot/dev-server and webpack working in a node angular app
module.exports = {
entry: {
app: ['webpack/hot/dev-server', './app/app'], // => webpack-dev-server will work but webpack build won't
app: ['./app/app', 'webpack/hot/dev-server'], // => both webpack-dev-server AND webpack build will work
vendor: ['./app/vendor'],
components: ['./app/components/home']
}
};
@stickel
stickel / angular-highlight.js
Created July 25, 2015 21:49
Getting angular-highlightjs working with webpack
(function (root, factory) {
if (typeof define === "function" && define.amd) {
// define(["angular", "hljs"], factory);
module.exports = factory(require("angular"), require("highlight.js"));
} else if (typeof module === "object" && module.exports) {
module.exports = factory(require("angular"), require("highlight.js"));
} else {
root.returnExports = factory(root.angular, root.hljs);
}
}(this, function (angular, hljs) {
@stickel
stickel / gist:ace2e7fbe4e959f1007b
Created July 17, 2015 17:11
Jasmine: command not found
When installing `Jasmine` to run unit tests for an app you may run into the error `command not found` when calling `jasmine` from your project directory. To correct the error, install `Jasmine` globally (`npm install -g jasmine`) and the tests will run properly.
Verifying that +stickel is my Bitcoin username. You can send me #bitcoin here: https://onename.io/stickel
@stickel
stickel / keybase.md
Last active December 15, 2016 18:24
keybase.md

Keybase proof

I hereby claim:

  • I am stickel on github.
  • I am stickel (https://keybase.io/stickel) on keybase.
  • I have a public key whose fingerprint is 5020 AC34 60F8 C95B DCFF 1B15 9D7B 141A C449 7FF1

To claim this, I am signing this object: