Skip to content

Instantly share code, notes, and snippets.

Adam Tuttle atuttle

View GitHub Profile
mplacona / gist:614ffdacc7da223f8a6121cd4b7a2eee
Last active Aug 22, 2018 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations
View gist:614ffdacc7da223f8a6121cd4b7a2eee

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:


Disclaimer: This is an unofficial post by a random person from the community. I am not an official representative of io.js. Want to ask a question? open an issue on the node-forward discussions repo

io.js - what you need to know


  • io is a fork of node v0.12 (the next stable version of node.js, currently unreleased)
  • io.js will be totally compatible with node.js
  • the people who created io.js are node core contributors who have different ideas on how to run the project
  • it is not a zero-sum game. many core contributors will help maintain both node.js and io.js
View jsAjaxFileupload.html
<title>JS File Upload</title>
<script src="//"></script>
<input type="file" id="inpFile" value="" />
<input type="button" id="btnUpload" value="upload" />
ryanguill /
Last active Dec 14, 2015
Installation instructions for CentOS 6.3 into virtual box, along with python 2.7, rabbitmq, redis and postgresql.Sets up samba, iptables and shows you how to create OS level users. Also instructions for installing Adobe ColdFusion and Railo.

CentOS 6.x Install Instructions


These are my own instructions that I have decided to document as I have gone along. I have put them out there in case others may find them useful, but I make no guarantees on their accuracy, or even if any of it is a good idea! I am no linux/rabbitmq/redis/postgres/tomcat/etc expert, hence why I need these instructions. These are setups for what I needed at the time I wrote them, they may not be appropriate for you. If you have suggestions on how to improve any of this, or notice anything wrong, please let me know / fork the guide and make the changes.

When this guide was started Cent 6.3 was the latest version. I have since used the same instructions for 6.4 and 6.5 without issue. Just update any references to 6.3 to the latest version when you use this guide.

Be careful copying and pasting commands. Make sure before you do that none of the filenames or versions have changed since the guide was written. It is common for the

nolanlawson /
Last active Dec 14, 2015
Fixes an Android APK built by PhoneGap Build to correct the problem of xhdpi images not being properly added ( Requires apktool and jarsigner to already be installed.
#!/usr/bin/env python
# fix an Android APK built by PhoneGap Build to correct the problem of
# xhdpi images not being correctly added (
# REQUIRES apktool and jarsigner to already be installed and on the PATH.
# usage: www/config.xml InputFile.apk OutputFile.apk
import os,sys,shutil,tempfile,xml.dom.minidom
paulirish / gist:3098860
Created Jul 12, 2012
Open Conference Expectations
View gist:3098860

Open Conference Expectations

This document lays out some baseline expectations between conference speakers and conference presenters. The general goal is to maximize the value the conference provides to its attendees and community and to let speakers know what they might reasonably expect from a conference.

We believe that all speakers should reasonably expect these things, not just speakers who are known to draw large crowds, because no one is a rockstar but more people should have the chance to be one. We believe that conferences are better -- and, dare we say, more diverse -- when the people speaking are not just the people who can afford to get themselves there, either because their company paid or they foot the bill themselves. Basically, this isn't a rock show rider, it's some ideas that should help get the voices of lesser known folks heard.

These expectations should serve as a starting point for discussion between speaker and organizer. They are not a list of demands; they are a list of rea

nmische / Example
Last active Sep 25, 2015
Simple time based limiter
View Example
<!--- set up app --->
<cfapplication name="ratelimit"/>
<cfif not StructKeyExists(application,"limiter") or StructKeyExists(url,"reset")>
<cfset application.limiter = CreateObject("component","TimeBasedRateLimiter")/>
<!--- check our limiter --->
<cfif application.limiter.requestsRemaining() gt 0>
<cfset application.limiter.push() />
<p>Request was successful.</p>
You can’t perform that action at this time.