Skip to content

Instantly share code, notes, and snippets.

View kevrom's full-sized avatar

Kevin Romano kevrom

  • Baton Rouge, LA
  • 10:35 (UTC -05:00)
View GitHub Profile
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/kevrom/.oh-my-zsh"
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="agnoster"

Keybase proof

I hereby claim:

  • I am kevrom on github.
  • I am kevrom (https://keybase.io/kevrom) on keybase.
  • I have a public key whose fingerprint is 1CBD BFB6 FF63 C3B5 39C9 D0CE F331 4243 29E6 0134

To claim this, I am signing this object:

@kevrom
kevrom / karma.config.js
Last active June 3, 2016 07:43
Webpack1 Configuration
//
// Karma Configuration Settings
//
import wp from './webpack.config';
const karmaConfig = {
frameworks: ['mocha', 'chai', 'sinon-chai'],
files: [
'./karma.entry.js'
],
"devDependencies": {
"autoprefixer": "^6.1.2",
"babel-loader": "^6.2.0",
"babel-plugin-react-transform": "^1.1.1",
"babel-preset-es2015": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"css-loader": "^0.23.0",
"eslint": "^1.10.3",
"eslint-friendly-formatter": "^1.2.2",
"eslint-loader": "^1.1.1",
let production = false;
// Module Requires
import path from 'path';
import gulp from 'gulp';
import gulpif from 'gulp-if';
import sourcemaps from 'gulp-sourcemaps';
import browserSync from 'browser-sync';
import imagemin from 'gulp-imagemin';
import sass from 'gulp-sass';

Angular2 + JSPM cheat sheet

First time setup

  • install jspm beta: npm install -g jspm@beta
  • set up your project: jspm init
  • install dependencies: jspm install angular2 reflect-metadata zone.js es6-shim

This will create a jspm_packages folder, and a config.js file.

Open the config.js file - this file manages options for the System.js loader - tweak it as appropriate

@kevrom
kevrom / ircscan.py
Created May 5, 2015 21:35
Botspam in IRC
#!/bin/python
allArr = []
botArr = []
excludes = [
'<--',
'-->',
'is now known as',
'Mode #/r/'
'use strict';
// Module Requires
var path = require('path');
var gulp = require('gulp');
var source = require('vinyl-source-stream');
var browserify = require('browserify');
var browserSync = require('browser-sync');
var watchify = require('watchify');
var _ = require('lodash');
// NGINX config
upstream node-catfacts {
server localhost:8040;
}
server {
listen 80;
server_name catfacts.kevrom.com;