Skip to content

Instantly share code, notes, and snippets.

View dirkkelly's full-sized avatar

Dirk Kelly dirkkelly

View GitHub Profile
@dirkkelly
dirkkelly / interexchange-software-engineer-job-description.md
Last active August 29, 2015 14:01
InterExchange - Engineering - Software Engineer

InterExchange is a non-profit organization passionate about connecting young people from all over the world with life-changing international exchange opportunities.

Participants on our programs work as international staff at American summer camps, volunteer on community projects in rural India, sell ice cream on the boardwalks of California, do post graduate internships at green technology companies in New York and provide childcare as au pairs in the U.S. and abroad – to name a few!

At InterExchange, we believe that living and working alongside people in another country increases global understanding. We are dedicated to providing the best exchange experiences possible – and to creating positive global impact in the process.

To that end we are looking for experienced Software Engineers to join us in building our online offerings across the five departments we work with. Our Ruby on Rails and PHP applications serve thousands of users a day who are working with us to simplify and enhance these cultural exch

@dirkkelly
dirkkelly / Year Calculator.md
Last active August 29, 2015 14:02
A CodeNow refresher project.

Grade Calculator

Introduction

A refresher program aimed at understanding.

  • Iteratives
  • Conditionals
  • String Interpolation
@dirkkelly
dirkkelly / hello.md
Last active August 29, 2015 14:02
CodeNow NYC Alumni - Meetup #2

Let's Build a Website on Github

There are thousands of ways to build and publish websites, today we're going to look at the way I prefer to create simple concepts and information sites, using Github Pages.

My personal website (which is incredibly out of date) is built on Github Pages, it's a simple, free and rewarding way to publish your work online.

@dirkkelly
dirkkelly / config-initializers-simple_form-after.rb
Created July 7, 2014 15:56
Simple Form Bootstrap 3 input group WIP
module SimpleForm
module Components
module After
def after
@after ||= begin
options[:after].to_s.html_safe if options[:after].present?
end
end
def has_after?
@dirkkelly
dirkkelly / squid.conf
Last active August 29, 2015 14:14 — forked from mushfiq/squid.conf
# ----------------------------------------------------------------------
# WARNING - do not edit this template unless you know what you are doing
# ----------------------------------------------------------------------
# the parent cache
# disk and memory cache settings
cache_dir ufs /usr/local/squid/var/cache 500 16 256 #set your cache path with size
Event.onReady(function() {
$$('textarea').each(function(inputElement) {
var textarea = inputElement;
var initialHeight = textarea.getHeight();
var currentHeight = -1;
var currentTimer = false;
var div = $div({id: textarea.id + '_hidden'});
textarea.insert({'after': div});
div.setStyle({'display' : 'none',
export RAILS_ENV='development'
export GEM_HOME='/opt/gems'
export GEM_PATH='/opt/gems'
PATH='/opt/ruby/current/bin:/opt/gems:/opt/gems/bin:/opt/nginx/current/sbin:/opt/git/current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin'
function nginx_start() {
sudo /opt/nginx/sbin/nginx
}
function nginx_reload() {
worker_processes 1;
pid /opt/nginx/logs/nginx.pid;
events {
worker_connections 1024;
}
http {
passenger_root /opt/gems/gems/passenger-2.2.9;
passenger_ruby /opt/ruby/nginx_wrapper;
#!/bin/bash
WGET_V=1.11.4
RUBY_V=1.8.7-2010.01
RUBY_REL=68719
NGINX_V=0.8.32
GIT_V=1.6.5.5
GIT_USER=dirkkelly
GIT_EMAIL=dk@dirkkelly.com
@dirkkelly
dirkkelly / config.ru
Last active September 24, 2015 01:34
Rack::Rewrite CSV Redirect Map Parsing For Drupal
use Rack::Rewrite do
CSV.read("redirects.csv", headers: true).each do |row|
# Lol, yes we had redirects of source to destination, yay Drupal!
if row["source"] != row["destination"]
r301 row["source"], row["destination"]
end
end
end