Skip to content

Instantly share code, notes, and snippets.

@cwill747
cwill747 / win7cleansetup.md
Created July 31, 2012 17:18
Windows 7 Clean Setup

Applications

Sublime Setup

* First install the [Ubuntu mono fonts](http://font.ubuntu.com/) * In Preferences->Settings - User, add the following lines:
	"font_face": "Ubuntu Mono",
 "font_options":
@cwill747
cwill747 / PKGBUILD
Last active December 16, 2015 12:49
aacgain-cvs arch linux pkgbuild
# Maintainer: Chase <sky[no_spam]<AT>[no_spam]skystrife<DOT>com>
arch=('i686' 'x86_64')
pkgname=aacgain-cvs
pkgver=20101003
pkgrel=1
conflicts=('aacgain')
provides=('aacgain')
makedepends=('cvs')
pkgdesc="Adjusts the volume of music files (mp4/m4a/QT/mp3) using ReplayGain
@cwill747
cwill747 / FailedMSI
Created April 23, 2013 00:55
Debugging a MSI installer.
MSI (s) (00:BC) [14:48:53:831]: Calling SRSetRestorePoint API. dwRestorePtType: 0, dwEventType: 102, llSequenceNumber: 0, szDescription: "Installed ActiveState ActivePython 2.7.2.5 (32-bit)".
MSI (s) (00:BC) [14:58:54:132]: The call to SRSetRestorePoint API failed. Returned status: -2130706175. GetLastError() returned: -2130706175

Keybase proof

I hereby claim:

  • I am cwill747 on github.
  • I am cwill747 (https://keybase.io/cwill747) on keybase.
  • I have a public key whose fingerprint is EEA9 D7C5 CCF5 FE6E FF55 4386 9059 5703 82A2 EB6C

To claim this, I am signing this object:

/**
* Attempt for Chrome-style progress-indicator with SVG and CSS animations
*/
@keyframes spin {
0% {
stroke: #00aeef
}
37.5% {
stroke: #ed1c24;
@cwill747
cwill747 / coffeescript_to_javascript_destructive.sh
Created March 10, 2015 21:34
Compile Coffeescript to Javascript and delete original javascript - WARNING DESTRUCTIVE - have a backup
find . -name '*.coffee' | while read i; do coffee -b -c "$i" > "${i%.*}.js" && rm "$i"; done
@cwill747
cwill747 / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@cwill747
cwill747 / javascript_resources.md
Last active August 29, 2015 14:19 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@cwill747
cwill747 / index.js
Created December 3, 2015 04:57
requirebin sketch
var console = require('demo-console');
var p1 = "((((()(()(((((((()))(((()((((()())(())()(((()((((((()((()(()(((()(()((())))()((()()())))))))))()((((((())((()))(((((()(((((((((()()))((()(())()((())((()(()))((()))()))()(((((()(((()()))()())((()((((())()())()((((())()(()(()(((()(())(()(())(((((((())()()(((())(()(()(()(())))(()((((())((()))(((()(()()(((((()()(()(((()(((((())()))()((()(()))()((()((((())((((())(()(((())()()(()()()()()(())((((())((())(()()))()((((())))((((()())()((((())((()())((())(())(((((()((((()(((()((((())(()(((()()))()))((((((()((())()())))(((()(()))(()()(()(((()(()))((()()()())((()()()(((())())()())())())((()))(()(()))(((((()(()(())((()(())(())()((((()())()))((((())(())((())())((((()(((())(())((()()((((()((((((()(())()()(()(()()((((()))(())()())()))(())))(())))())()()(())(()))()((()(()(())()()))(()())))))(()))(()()))(())(((((()(()(()()((())()())))))((())())((())(()(())((()))(())(((()((((((((()()()(()))()()(((()))()((()()(())(())())()(()(())))(((((()(())(())(()))))())()))(()))()(()(((((((()((
span_hi='<span color="#ff8700">' #colour for normal battery
span_lo='<span color="#aaaaaa">' #colour for normal battery
span_sep='<span color="#ff8700">' #colour for normal battery
span_warn='<span color="#ff0000">'
## Set battery message
batt=`cat /sys/devices/platform/smapi/BAT0/remaining_percent`
if (($batt <= 30));
then battstate=$span_warn$batt'%% </span>'$span_lo`cat /sys/devices/platform/smapi/BAT0/state`'</span>'
else battstate=$span_hi$batt'%% </span>'$span_lo`cat /sys/devices/platform/smapi/BAT0/state`'</span>'