Skip to content

Instantly share code, notes, and snippets.

View kingcody's full-sized avatar

Cody Mize kingcody

  • Digitally Seamless
View GitHub Profile
@kingcody
kingcody / admin.controller.es6
Last active October 27, 2016 14:52
Angular Fullstack - delete confirmation modal example
'use strict';
(function() {
class AdminController {
constructor(User, Modal) {
// Use the User $resource to fetch all users
this.users = User.query();
// Our callback function is called if/when the delete modal is confirmed
@kingcody
kingcody / index.js
Created May 18, 2015 04:14
Koa - seperate routers
var app = require('koa')();
app
.use(require('./router1').prefix('/route1').routes())
.use(require('./router2').prefix('/route2').routes());
app.listen(8000);
@kingcody
kingcody / teensyduino.sh
Created December 11, 2018 07:34
Update teensyduino.sh PID Detection
#!/bin/bash
sleep 2
export HOME=$2
$1 & TEENSYPID=$!
sleep 5
xdotool search --class "teensyduino" \
windowfocus \