Skip to content

Instantly share code, notes, and snippets.

View RnbWd's full-sized avatar

RnbWd RnbWd

View GitHub Profile

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 August 29, 2015 14:20
Sublime Plugins
/* 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 August 29, 2015 14:13
Globby Watcher
//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;
@RnbWd
RnbWd / clj_js
Created July 16, 2014 06:47
jscljs
(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 August 29, 2015 14:02
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 September 7, 2016 16:28
watchify-gulpify
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 August 29, 2015 14:01
gulp-browserify-experiments
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 December 25, 2015 13:19
Geometric Triforce Fractal
<!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;
}