Skip to content

Instantly share code, notes, and snippets.

View jonDowdle's full-sized avatar

Jon Dowdle jonDowdle

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jondowdle on github.
  • I am jondowdle (https://keybase.io/jondowdle) on keybase.
  • I have a public key ASBZOTGnx9s55wEyfui5DkzfWWg5PU2Ahna6t-yofdZ4xAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jondowdle on github.
  • I am jondowdle (https://keybase.io/jondowdle) on keybase.
  • I have a public key ASA2h9v4fLovqKG-2Hx-82PWB6yeG5rmoAQo_Ms0NfWxtQo

To claim this, I am signing this object:

FROM node:6.11-alpine
WORKDIR /deploy
ADD package.json /deploy
RUN npm install
ADD index.js /deploy
CMD node index.js
@jonDowdle
jonDowdle / reversed-strings-kata-recursive.js
Last active December 31, 2015 15:09
A quick morning brain warmup. Instead of using the array method reverse, I decided to refresh my recursion skills a bit. I'm glad I did. I find this solution quite a bit more elegant (to the eyes that is). http://www.codewars.com/dojo/katas/5168bb5dfe9a00b126000018/
/*
* Reverse whatever string is passed into solution.
* solution('world'); // returns 'dlrow'
*
*/
function solution( str ) {
// Our answer
var answer = "";
@jonDowdle
jonDowdle / git-cheatsheet.md
Last active December 20, 2015 07:09
Handy git commands

Finding

  1. Find deleted files git log --diff-filter=D --summary
  2. Find specific deleted file git log --diff-filter=D --summary | grep -C 10 filename.html

Cleaning

  1. Remove untracked files
@jonDowdle
jonDowdle / tmux-cheatsheet.markdown
Created October 16, 2015 20:47 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jonDowdle
jonDowdle / Gist.md
Created July 28, 2012 17:11
Testing Gist.IO

Testing Gist.IO

A sub heading

  • Test bullet
  • Test bullet
  • Test bullet
  • Test bullet
  • Test bullet
@jonDowdle
jonDowdle / gist:638836
Created October 21, 2010 16:44
CFEclipse Template
<cffunction name="test_${line_selection}" returntype="void" access="public">
<cfset var result = obj.answer('${question}')>
<cfset var expected = '${expected}'>
<cfset assertEquals( expected,result,"Result should've been '#expected#' but was '#result#'")>
</cffunction>
@jonDowdle
jonDowdle / eclipse.ini
Created October 18, 2010 00:19
My current eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.java.product
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
@jonDowdle
jonDowdle / Twitter.cfc
Created September 7, 2010 18:16
Easy way to use twitter4j with ColdFusion
<cfcomponent output="false">
<cffunction name="init" returntype="Twitter">
<cfargument name="consumerKey" required="true">
<cfargument name="consumerSecret" required="true">
<cfargument name="authKey" type="string" required="false" default="">
<cfargument name="authSecret" type="string" required="false" default="">
<cfscript>
var local = {};