Skip to content

Instantly share code, notes, and snippets.

View F1LT3R's full-sized avatar
🌱
Growing Things

Alistair MacDonald F1LT3R

🌱
Growing Things
View GitHub Profile
@F1LT3R
F1LT3R / farbtastic-color-touchstart.js
Created July 17, 2012 00:56
Adding iOS TouchStart Events to Farbtastic Color Picker
/**
* TouchConvert: Converts touch co-ordinates to mouse co-ordinates
*/
fb.touchconvert = function (e) {
var e = e.originalEvent.touches.item(0);
return e;
}
/**
* Touchmove handler for iPad, iPhone etc
@F1LT3R
F1LT3R / playlist.opml.xml
Created July 26, 2012 23:13
OPML Sample
<?xml version="1.0" encoding="ISO-8859-1"?>
<opml version="1.0">
<head>
<title>playlist.xml</title>
<dateCreated>Thu, 27 Jul 2000 03:24:18 GMT</dateCreated>
<dateModified>Fri, 15 Sep 2000 09:01:23 GMT</dateModified>
<ownerName>Dave Winer</ownerName>
<ownerEmail>dave@userland.com</ownerEmail>
<expansionState>1,3,17</expansionState>
<vertScrollState>1</vertScrollState>
@F1LT3R
F1LT3R / playlist.html
Created July 26, 2012 23:17
What we want our OPML to look like...
<ul id="opml-output">
<li>Background
<ul>
<li>I've started to note the songs I was listening to as I was writing DaveNet pieces. </li>
</ul>
</li>
<li>The Last Napster Sunday?
<ul>
<li type="song" f="Blondie - Heart of Glass.mp3">Heart of Glass.mp3</li>
<li type="song" f="Bangles - Manic Monday.mp3">Manic Monday.mp3</li>
@F1LT3R
F1LT3R / jquery-opml-to-list-example-usage.js
Created July 26, 2012 23:23
How to use the jQuery OPML to List Plugin
$(function(){
function callback(){
//console.log( 'OPML to List Finished!' );
}
function error(e){
//console.error( 'AJAX ERROR!' );
}
@F1LT3R
F1LT3R / git-i-love-commands-and-config.md
Last active October 24, 2019 22:06
Git I Love - Commands & Config

#Git Commands I Love

##Reset & Clean

git reset HEAD --hard

A hard reset may leave files behind which are now untracked because of a removal.

To check whether anything needs cleaning up do a trial clean like so:

@F1LT3R
F1LT3R / .zshrc
Last active August 29, 2015 14:05
Oh My ZSH Settings
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="agnoster"
source $ZSH/oh-my-zsh.sh
plugins=(git git-extras git-flow git-remote-branch gitfast node npm nyan osx pip python screen jira lol osx colored-man colorize zsh-syntax-highlighting vagrant web-search)
# I Like History :)
export HISTFILE=~/.histfile

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@F1LT3R
F1LT3R / onename.io
Created August 8, 2014 02:23
onename.io verification
Verifying myself: My Bitcoin username is +alistairmacdonald. https://onename.io/alistairmacdonald
@F1LT3R
F1LT3R / onename.io2
Created August 8, 2014 02:28
Verifying myself: My Bitcoin username is +alistairmacdonald. https://onename.io/alistairmacdonald
Verifying myself: My Bitcoin username is +alistairmacdonald. https://onename.io/alistairmacdonald
@F1LT3R
F1LT3R / charles-proxy-rewrite-settings.xml
Created August 10, 2014 07:57
Using Charles Proxy to load scripts into other webpages
<?xml version='1.0' encoding='UTF-8' ?>
<?charles serialisation-version='2.0' ?>
<rewriteSet-array>
<rewriteSet>
<active>true</active>
<name>Script Loader</name>
<hosts>
<locationPatterns>
<locationMatch>
<location>