Skip to content

Instantly share code, notes, and snippets.

View vool's full-sized avatar

Keith Phelan vool

View GitHub Profile
@vool
vool / xpimaker.sh
Created June 20, 2014 23:55
Bash script for compiling firefox (.xpi) extensions
#!/bin/bash
## Description: Script to generate firefox .xpi extensions
## Usage: xpimaker name dir[optional]
## Example: ./xpimaker.sh my-extension src
## Author: Keith o'Faoláin
@vool
vool / firefox_addons
Last active August 29, 2015 14:04
Firefox addons
https://addons.mozilla.org/en-US/firefox/addon/font-finder/
https://addons.mozilla.org/en-US/firefox/addon/wappalyzer/
https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/
https://addons.mozilla.org/en-US/firefox/addon/web-developer/
https://addons.mozilla.org/en-US/firefox/addon/firebug/
https://addons.mozilla.org/en-US/firefox/addon/yslow/
https://addons.mozilla.org/en-US/firefox/addon/jsonview/
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>2016.ie</title>
<script type='text/javascript' src='https://code.jquery.com/jquery-1.11.1.min.js'></script>
@vool
vool / depth_map
Last active August 29, 2015 14:10
http://googleresearch.blogspot.ie/2014/04/lens-blur-in-new-google-camera-app.html
http://www.convoluted.net/depthmesh/
https://github.com/spite/android-lens-blur-depth-extractor
https://github.com/0xtob/gcam2ply
https://developers.google.com/depthmap-metadata/
@vool
vool / ibeacon_stuff
Last active August 29, 2015 14:10
iBeacon stuff
http://www.appcoda.com/ios7-programming-ibeacons-tutorial/
https://github.com/petermetz/cordova-plugin-ibeacon
https://github.com/divineprog/evo-demos/tree/master/Demos2014/iBeaconDemo
https://www.sticknfind.com/SDK/
http://stackoverflow.com/questions/20416218/understanding-ibeacon-distancing
@vool
vool / countries.json
Created March 11, 2015 10:50
countries.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vool
vool / wild_atlantic_way.geojson
Created June 30, 2015 23:40
The Wild Atlantic Way in geoJSON format
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vool
vool / ternary_else_if
Created November 30, 2010 00:12
js ternary operators
/* js else if with ternary operators
* http://verens.com/2010/07/21/javascript-compression-tip/#comments
*/
function getValueFor(data){
return firstCondition(data)
?1
:secondCondition(data)
?2
:thirdCondition(data)
@vool
vool / http_error_array.php
Created September 7, 2011 17:30
http error codes in a php array
<?php
$error = array (
//4xx: Client Error
400 => array("title" => "Bad Request", "desc" => "The server did not understand the request"),
401 => array("title" => "Unauthorized", "desc" => "The requested page needs a username and a password"),
402 => array("title" => "Payment Required", "desc" => "You can not use this code yet"),
403 => array("title" => "Forbidden", "desc" => "Access is forbidden to the requested page"),
404 => array("title" => "Not Found", "desc" => "The server can not find the requested page"),
@vool
vool / Issue with Turn.html
Created March 23, 2012 19:44
updated with suggested edits
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/blasten/turn.js/master/turn.min.js"></script>
<style>
body{
background:#ccc;
}