Skip to content

Instantly share code, notes, and snippets.

View iCodeForBananas's full-sized avatar

Michael Calkins iCodeForBananas

  • AWS
  • Seattle, WA
View GitHub Profile
var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
browserify = require('browserify'),
cleanCSS = require('gulp-clean-css'),
gulpif = require('gulp-if'),
gutil = require('gulp-util'),
notify = require('gulp-notify'),
rename = require('gulp-rename'),
sass = require('gulp-sass'),
source = require('vinyl-source-stream'),
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'git-stats' ]
2 info using [email protected]
3 info using [email protected]
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
@iCodeForBananas
iCodeForBananas / gitscore.md
Last active October 23, 2021 19:11
Git scorekeeping

Total number of commits, by author, for all branches

git shortlog -sn --all

Total number of commits, without merge commits, by author, for all branches

git shortlog -s -n --all --no-merges

Total number of commits, by author, for this branch

function check(object, propTypes, _throw) {
let propName;
for (propName in propTypes) {
if (propTypes.hasOwnProperty(propName)) {
let error = propTypes[propName](object, propName, JSON.stringify(object), 'prop');
if (error) {
if (_throw) {
throw error
} else {
import { PropTypes } from 'react'
import RemoteBullet from '../RemoteBullet'
const propTypes = {
bulletId: PropTypes.string.isRequired,
playerId: PropTypes.string.isRequired,
damage: PropTypes.number.isRequired,
pointerAngle: PropTypes.number.isRequired,
height: PropTypes.number.isRequired,
width: PropTypes.number.isRequired,
module.exports = {
"USSOCOM": {
"name": "USSOCOM",
"Damage": 190,
"FireInterval": 12,
"Ammo": 12,
"ReloadTime": 65,
"Speed": 180,
"BulletStyle": 1,
"StartUpTime": 0,
function m {
echo "Select an option:"
echo "1) Musicbed"
echo "2) Filmsupply"
echo "3) Ranger Steve"
echo "4) Empty Trash"
echo "[ENTER] to cancel"
read user_input
class FeaturesSection {
constructor() {
this.features = [
{
name: 'Feature 1',
description: 'Description 1',
image: '/path/to/img1'
},
{
name: 'Feature 2',
let components = require('components')
let app = new App({
routes: {
'/': components.home
},
'about': {
component: components.home
},
'users/:id': {
component: components.users.find
@iCodeForBananas
iCodeForBananas / updater.js
Created February 4, 2016 04:00
Electron updater experiment
'use strict'
var http = require('http')
var fs = require('fs')
var wrench = require('wrench')
var targz = require('tar.gz')
/*
1. Check the manifest for version (from your running "old" app).