Skip to content

Instantly share code, notes, and snippets.

David Wisner RnbWd

Block or report user

Report or block RnbWd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am rnbwd on github.
  • I am rnbwd (https://keybase.io/rnbwd) on keybase.
  • I have a public key ASDx8CZyUzEpVwNV2UNF1ZCtpvE6ctq2yDoMRsgT7jBMNgo

To claim this, I am signing this object:

@RnbWd
RnbWd / Settings-User
Last active Aug 29, 2015
Sublime Plugins
View Settings-User
/* I'm only listing most important in my main Settings-User, but you can find all potential options in the Settings Default */
/* Turning file indexing off in sublime 3 will prevent it from bringing your computer to a halt for 5 mins (and I have a decent mac) */
{
"enable_telemetry": "disabled",
"font_size": 16,
"trim_trailing_white_space_on_save": true,
"ensure_newline_at_eof_on_save": true,
"atomic_save": true,
@RnbWd
RnbWd / watcher.js
Last active Aug 29, 2015
Globby Watcher
View watcher.js
//sudo
var globby = require('globby');
var chokidar = require('chokidar');
var task = require('../');
globby(['glob/glob*.glob'], function (err, paths) {
if (err) return cb(err);
task.files = paths;
View clj_js
(ns clj_js)
(def ^:export clj-js cljs.core/clj->js)
(defn ^:export js-clj
([x] (cljs.core/js->clj x))
([x keywordize-keys] (cljs.core/js->clj x :keywordize-keys keywordize-keys)))
@RnbWd
RnbWd / gulp-ify
Last active Aug 29, 2015
gulp-ify
View gulp-ify
gulp.task('gulpify', function() {
gulp.src("./src/js/**")
.pipe($.plumber())
//using vinyl-transform lets us use any transforms available to browserify
.pipe(transform(reactify))
.on('error', $.util.log)
.pipe($.ext.replace('.js'))
// converting .jsx/coffee/etc. into a temp folder prior to 'bundling' reduces additional boilerplate later-on
.pipe(gulp.dest('./temp'))
.pipe($.filter('init.js'))
@RnbWd
RnbWd / build.js
Last active Sep 7, 2016
watchify-gulpify
View build.js
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var config = require('../config.json');
var bundler = require('./bundler');
process.env.APP_ID = config.Client.AppId;
process.env.JS_KEY = config.Client.jsKey;
gulp.task('scripts', function() {
gulp.src('./src/js/init.js', {read: false})
@RnbWd
RnbWd / gist:fc6388bf028eb7786660
Last active Aug 29, 2015
gulp-browserify-experiments
View gist:fc6388bf028eb7786660
var $ = require('gulp-load-plugins')();
var reactify = require('reactify');
var envify = require('envify');
var browserify = require('browserify');
var watchify = require('watchify');
//watchify with source maps
gulp.task('watchify', function() {
var w = watchify({entries: ['./src/js/init.jsx'],
@RnbWd
RnbWd / index.html
Last active Dec 25, 2015
Geometric Triforce Fractal
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>D3 Test</title>
<script src="http://d3js.org/d3.v3.min.js"></script>
<style>
body {
background-color: grey;
}
You can’t perform that action at this time.