Skip to content

Instantly share code, notes, and snippets.

View TylerK's full-sized avatar
👉
Pushing rectangles around the screen

Tyler Kelley TylerK

👉
Pushing rectangles around the screen
View GitHub Profile
/*
* -------------------
* React Chat Scaffold
* -------------------
*/
import React from 'react'
import xhttp from 'xhttp'
/*
* Individual message component
@TylerK
TylerK / gulp-lint.js
Last active September 24, 2015 22:45
Lint task for gulp... having problems with single quote detection
var gulp = require('gulp')
, config = require('configs/gulp-config')
, jshint = require('gulp-jshint')
, react = require('gulp-react')
, stylish = require('jshint-stylish')
gulp.task('lint', function () {
var linter = function (script) {
//
// Button sizes
//
button-size($size) {
sizes = {
largest : 1.9rem 4.5rem
larger : 1.6rem 4rem
large : 1.3rem 3.6rem
regular : 1rem 3rem
small : .7rem 2rem
//
// New Browserify hotness
//---------------------------------------------------------
var gulp = require('gulp')
, config = require('../../configs/gulp-config.js')
, browserify = require('browserify')
, reactify = require('reactify')
, watchify = require('watchify')
, source = require('vinyl-source-stream')
;
//
// One gulp config file to rule them all!
// No more per-project configs <(^-^<)
//---------------------------------------------------------
var path = require('path')
, config = {}
;
//
// Globals and per-project base paths
//
// Main Stylus task
//---------------------------------------------------------
var gulp = require('gulp')
, config = require('../../configs/gulp-config')
, path = require('path')
, nib = require('nib')
, stylus = require('gulp-stylus')
, plumber = require('gulp-plumber')
, notify = require('gulp-notify')
//
// Current way to write Gulp and Webpack, totally wtf:
//
gulp.task('package:stylus', function() {
return gulp.src(config.bundle.stylus.src)
.pipe(webpack({
watch: true,
module: {
loaders: [
{ test: /\.css$/, loader: 'css-loader!stylus-loader?paths=node_modules/stylus-loader/' },
//
// Base object helper method to set count and blocks amount
// @method constructor
// @params int, int
//---------------------------------------------------------
function CountNBlocks (c, b) {
this.count = (c === undefined) ? LvEnum.num.UNKNOWN: c;
this.blks = (b === undefined) ? LvEnum.num.UNKNOWN: b;
@TylerK
TylerK / gist:67c554cefe6148156567
Last active August 29, 2015 14:10
Select a local sub project to run
//
// Deps
//---------------------------------------------------------
var
inquirer = require('inquirer'),
path = require('path'),
exec = require('child_process').exec,
spawn = require('child_process').spawn
;