Skip to content

Instantly share code, notes, and snippets.

View bjyoungblood's full-sized avatar

Ben Youngblood bjyoungblood

View GitHub Profile
{
"user": {
"debug": true,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "load/save",
"linters": {
"annotations": {
@bjyoungblood
bjyoungblood / store-watch.jsx
Created May 21, 2014 15:45
StoreWatchMixin.js
'use strict';
var _ = require('underscore');
var React = require('react');
module.exports = {
propTypes : {
stores : React.PropTypes.object.isRequired
},
/** @jsx React.DOM */
'use strict';
var React = require('react');
module.exports = React.createClass({
displayName : 'TextInput',
propTypes : {
@bjyoungblood
bjyoungblood / gist:9afc01712c3569719e3e
Last active August 29, 2015 14:05
Setting up SublimeLinter in ST3
  1. You already have package control installed, right?
  2. npm install -g jsxhint
  3. Install the following packages: JSX, SublimeLinter, SublimeLinter-jshint, SublimeLinter-jsxhint, SublimeLinter-json
  4. Make sure you're opening JSX files with the JavaScript (JSX) type
  • If not, open a JSX file, at the bottom right corner of the window, click on the filetype, "Open all with current extension as:" "JavaScript (JSX)"
  1. Edit your SublimeLinter user preferences and replace everything with this
  2. Customize settings to your preferences
@bjyoungblood
bjyoungblood / keybase.md
Created September 26, 2014 21:55
keybase.md

Keybase proof

I hereby claim:

  • I am bjyoungblood on github.
  • I am bjyoungblood (https://keybase.io/bjyoungblood) on keybase.
  • I have a public key whose fingerprint is 4156 B2BF 6310 0CE0 BD9B 8FD0 EA95 8D49 7EBF 765C

To claim this, I am signing this object:

FROM dockerfile/nodejs
RUN mkdir /node_modules
WORKDIR /node_modules
ADD package.json .
ADD .npmrc .
RUN npm install
RUN mkdir /code
WORKDIR /code

Create Git Mirror from SVN Repository

This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.

The branching scenario has been simplified for clarity.

References

// This happens in the main application
'use strict';
var base = require('cah-base-model');
base.init(Bookshelf.PG);
var userModule = require('users-module');
userModule.initModels(base);
render() {
let body = this.state.smarthome.when({
pending : () => { return <div>Loading...</div>; },
failed : () => { return <div>Error loading smarthome</div>; },
done : (smarthome) => { return <SmarthomeEventsView smarthome={smarthome} />; },
});
return (
<div>
<h1>Smarthome! :D</h1>
@bjyoungblood
bjyoungblood / nes-redis.js
Last active September 9, 2015 13:41
Example Nes Redis Adapter
// Load modules
var Util = require('util');
var EventEmitter = require('events').EventEmitter;
var Redis = require('redis');
// Declare internals
var internals = {};
exports = module.exports = internals.Adapter = function () {