Skip to content

Instantly share code, notes, and snippets.

View octatone's full-sized avatar

Raymond May Jr. octatone

View GitHub Profile
$ gulp design
[11:19:42] Working directory changed to ~/[redacted]/web-app
[11:19:46] Using gulpfile ~/[redacted]/web-app/gulpfile.js
[11:19:46] Starting 'clean'...
[11:19:46] Finished 'clean' after 19 ms
[11:19:46] Starting 'typings'...
[11:19:47] Finished 'typings' after 785 ms
[11:19:47] Starting 'design'...
Rendering ./client/index.html ...
./client/index.html rendered!
@octatone
octatone / gist:8d195b68325fcd5460706d21b6d677ca
Created March 27, 2017 09:26
config/webpack.config.base.js
var path = require('path')
var postCSSConfig = require('./postCSS.config')
const VIEWS_ONLY = process.env.VIEWS_ONLY
const include = path.resolve(__dirname, '../client')
const exclude = /node_modules/
module.exports = {
devtool: 'inline-source-map',
https://wiki.alliedmods.net/Installing_Metamod:Source
https://wiki.alliedmods.net/Category:SourceMod_Documentation
@octatone
octatone / gist:fee10151c87f988f27ce
Created March 29, 2015 17:50
external and require generating different hashes for react/addons, causing bundles to break

When my external build is built I end up with the hash nv2Kki for react/addons.

When my main bundle is built, it is referencing react/addons with the hash yutbdK.

This of course leads to an Uncaught Error: Cannot find module 'yutbdK' error emitted from my external.js bundle.

If I manually find and replace yutbdK in my main bundle with nv2Kki, then everything works.

Here is my gulpfile for building these two files.

der Nebensatz
weil
denn:
... , denn ich gehe mit meinem Freunden dorthin. (verb next to subject)
weil:
... , weil ich mit meinem Freunden dorthin gehe. (verb moved to the very end)

Hi

HI

HI

code ?
{
 "foo": "bar"
@octatone
octatone / promisify-rquest.get.js
Created October 26, 2014 16:32
Promisifying a normal Node function
const request = require('request'),
promisify = require('es6-promisify'),
get = promisify(request.get);
function *checkSatusesParallel (sites) {
let statuses = yield sites.map(ping);
logStatuses(statuses);
}
@octatone
octatone / main.clj
Created October 26, 2014 10:17
clojure main
(defn -main [& args]
(let [statuses (get-6w-tweets)]
(doseq [status statuses]
(print-status status))))
@octatone
octatone / main.js
Created October 26, 2014 10:15
Main entry point via self-executing controller.
co(function *main () {
(yield get6wTweets).forEach(printStatus);
})();