Skip to content

Instantly share code, notes, and snippets.

View nickiaconis's full-sized avatar

Nick Iaconis nickiaconis

View GitHub Profile
@nickiaconis
nickiaconis / svn-autopilot.sh
Last active December 18, 2015 11:29
For anyone with the "pleasure" of being stuck using a Subversion repository, here is a bash script full of shortcuts I've found to be useful. Let me know if you have any of your own useful svn shortcuts :)
#!/bin/bash
# This script automates some useful svn commands
# Written by Nick Iaconis >> https://github.com/codefox421
# Distributed under the Apache License, Version 2.0 >> http://www.apache.org/licenses/LICENSE-2.0
# Distributed on an AS IS basis, as outlined in the license
ME=`basename $0`
if [[ -z $1 ]]
then
@nickiaconis
nickiaconis / brickster8884bt.ino
Last active August 29, 2015 14:04
BT Receiver Firmware with Outputs Tied Together
/*------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2013 Nick Iaconis et al.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software, schematic, layout and associated documentaion (the
"System"), to deal in the System without restriction, including without
limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the System, and to permit persons to whom
@nickiaconis
nickiaconis / busybox_delete_regex.sh
Created September 25, 2014 14:07
BusyBox Scripts
find -type f -regex '.*[^/][^/][^/][^/][^/][^/][^/][^/][^/]' -print | xargs rm
@nickiaconis
nickiaconis / paste-into-js-console.js
Created June 5, 2015 22:17
Keyboard Navigation for Ember.js Guide pages
$(document.body).on('keyup', function(event) {
var linkClass;
switch(event.which) {
case 37: // left arrow
linkClass = '.previous-guide';
break;
case 39: // right arrow
linkClass = '.next-guide';
break;
default:
@nickiaconis
nickiaconis / gist:9824a4729dce3e839759
Created August 31, 2015 04:28
BTbricks Modular Receiver BOM rev. 1
digikey part # | quantity | reference
------------------------------------------------------
DMHC3025LSD-13DICT-ND | 1 | Q1
DMN32D2LV-7DICT-ND | 1 | Q2
ATTINY841-SSU-ND | 1 | U1
869-1282-1-ND | 1 | U2
1028-1063-1-ND | 1 | U3
490-3261-1-ND | 3 | C1/C3/C6
311-1991-1-ND | 1 | C2
311-2007-1-ND | 1 | C4
@nickiaconis
nickiaconis / ember-js-sync-model-hooks.patch
Last active September 29, 2015 22:22
Makes Ember's Model Hooks Run Synchronously
diff --git a/packages/ember-routing/lib/system/route.js b/packages/ember-routing/lib/system/route.js
index 1a2ddf7..98b9e0d 100644
--- a/packages/ember-routing/lib/system/route.js
+++ b/packages/ember-routing/lib/system/route.js
@@ -29,6 +29,7 @@ import {
normalizeControllerQueryParams,
calculateCacheKey
} from 'ember-routing/utils';
+import RSVP from 'rsvp';
@nickiaconis
nickiaconis / resolve-model-later.js
Created October 14, 2015 21:38
Route#resolveModelLater & Route#asyncModelFor
App.PostRoute = Ember.Route.extend({
model(params) {
const promise = this.store.findRecord('post', params.id);
this.resolveModelLater(promise);
}
});
App.PostCommentsRoute = Ember.Route.extend({
model(params, transition) {
this.resolveModelLater(Ember.RSVP.hash({
@nickiaconis
nickiaconis / prefetch.js
Created October 14, 2015 21:39
Route#prefetch & Route#prefetched
App.PostRoute = Ember.Route.extend({
prefetch(params) {
return this.store.findRecord('post', params.id);
}
});
App.PostCommentsRoute = Ember.Route.extend({
prefetch(params, transition) {
return this.store.findAll('comments', transition.params.post.id);
},
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@nickiaconis
nickiaconis / .A-README.md
Last active December 25, 2016 05:19
BashGitPrompt Rainbow Theme