Skip to content

Instantly share code, notes, and snippets.

@burnsra
burnsra / index.html
Created April 20, 2015 14:02
JS Bin Controller example // source http://jsbin.com/dekola
<!DOCTYPE html>
<html ng-app="app">
<head>
<meta name="description" content="Controller example" />
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
<script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<meta charset=utf-8 />
@burnsra
burnsra / gist:bf7f6138145d43052b45
Created August 12, 2015 19:23
VirtualBox - El Capitan
for bin in VirtualBox VirtualBoxVM VBoxNetAdpCtl VBoxNetDHCP VBoxNetNAT VBoxHeadless; do
sudo chmod u+s "/Applications/VirtualBox.app/Contents/MacOS/${bin}"
done
@burnsra
burnsra / gist:1673155
Created January 24, 2012 22:34
CPU stuff
shell@android:/sys/devices/system/cpu/cpu0/cpufreq $ cat scaling_min_freq
100000
shell@android:/sys/devices/system/cpu/cpu0/cpufreq $ cat scaling_min_freq
100000
shell@android:/sys/devices/system/cpu/cpu0/cpufreq $ cat scaling_min_freq
200000
shell@android:/sys/devices/system/cpu/cpu0/cpufreq $ cat scaling_min_freq
100000
shell@android:/sys/devices/system/cpu/cpu0/cpufreq $ cat scaling_min_freq
200000
@burnsra
burnsra / gist:1958003
Created March 2, 2012 11:59
/proc/cpuinfo
cat /proc/cpuinfo
Processor : ARMv7 Processor rev 2 (v7l)
BogoMIPS : 994.65
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc08
CPU revision : 2
@burnsra
burnsra / gist:2011760
Created March 10, 2012 15:21
profileExistsByName
@Override
public boolean profileExistsByName(String profileName) throws RemoteException {
Boolean nameExists = false;
for (Map.Entry<String, UUID> entry : mProfileNames.entrySet())
{
if (entry.getKey().equalsIgnoreCase(profileName)) {
nameExists = true;
break;
}
}
@burnsra
burnsra / gist:2776144
Created May 23, 2012 16:10
Crespo4G Local Manifest Entries
<project name="koush/proprietary_vendor_akm" path="vendor/akm" remote="github" revision="ics" />
<project name="koush/proprietary_vendor_broadcom" path="vendor/broadcom" remote="github" revision="ics" />
<project name="koush/proprietary_vendor_imgtec" path="vendor/imgtec" remote="github" revision="ics" />
<project name="koush/proprietary_vendor_nxp" path="vendor/nxp" remote="github" revision="ics" />
<project name="koush/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="ics" />
Devin's Story
I guess the best place to start is at the beginning. When you’re expecting a child I guess everyone hopes for a routine "normal" delivery.
And so begins Devin's journey...
Devin's difficulties started with an unforeseen trauma at birth which led to developmental delays for all his bench marks. It seems now that all of Devins problems are not linked to this tragic event. He was late to turn over, crawl, walk and talk but otherwise was a happy and generally healthy baby. He was diagnosed with low muscle tone and attended therapies from 9 months on and continued to develop at his own pace. Devin's pace.
Once he was able to communicate he would complain of headaches that were so debilitating that he would cry out in pain, sleep and vomit. The doctors appointments were endless, going from specialist to specialist, with no answers. Devin entered school but experienced many difficulties learning to read, write and understand simple math equations he was far behind developmentally. It became clear D
@burnsra
burnsra / LoginHelper.swift
Created February 14, 2016 15:20
A helper to add an application to a users login items
//
// LoginHelper.swift
// SquidBar
//
// Created by Robert Burns on 2/11/16.
// Copyright © 2016 Robert Burns. All rights reserved.
//
import Foundation
@burnsra
burnsra / pre-commit
Created March 3, 2016 23:40
Reserved word pre-commit hook
# Instructions:
# Put this file into your ~/.git-templates/hooks folder and set as executable (chmod +x pre-commit)
# If you want to skip the hook just add --no-verify as follows: git commit --no-verify
# ---------------------------------------------
#!/bin/sh
RESERVED_LIST="alert(\|console.log(\|USERNAME"
@burnsra
burnsra / xcode_rename.sh
Last active March 31, 2016 18:30
Xcode Project Rename
find $(pwd) ! -path . -type d -name "$1*" -print0 | xargs -0 rename -S "$1" "$2"
find $(pwd) ! -path . -type f -name "$1*" -print0 | xargs -0 rename -S "$1" "$2"
ack --literal --files-with-matches "$1" --print0 | xargs -0 sed -i "" "s/$1/$2/g"