Skip to content

Instantly share code, notes, and snippets.

View dkinzer's full-sized avatar

David Kinzer (he/him) dkinzer

View GitHub Profile
@dkinzer
dkinzer / techgirlz_promo.md
Last active August 29, 2015 14:06
Blurb for TechGirlz Worshop on JavaScript

[TechGirlz: An Introduction to Programming with JavaScript][eventbrite].

JavaScript is the standard language for building web applications that can be accessed and enjoyed by billions of people across the Globe. And, in fact, this easy to learn language has become a force to be reckoned with having an influence sphere well outside mere web-pages.

You will find JavaScript running full-on dynamic mobile and desktop applications, games, servers and even robots! Indeed, JavaScript is a powerful,

### Keybase proof
I hereby claim:
* I am dkinzer on github.
* I am dkinzer (https://keybase.io/dkinzer) on keybase.
* I have a public key whose fingerprint is 8C83 6342 02AD D48D 378E FD9D BB6D 78ED 555E E38B
To claim this, I am signing this object:
@dkinzer
dkinzer / lambdabot.sh
Last active August 29, 2015 14:07
Building lambdabot from source.
# Deps
sudo apt-get install build-essential scons gcc autotools-dev git ncurses-dev haskell-platform libpcre3 libpcre3-dev
cabal update
# Git.
git clone https://github.com/mokus0/lambdabot.git
cd lambdabot/
git origin add sagi https://github.com/sagittarian/lambdabot.git
@dkinzer
dkinzer / gist:e22f438a39df306b34a8
Created November 14, 2014 16:23
Algorithms in JavaScript.
// Euclid's algorithm to determine greatest common divisor.
function E_1_1 (m, n) {
var r = m % n;
if (r == 0) {
return n;
}
return E_1_1(n, r);
}
@dkinzer
dkinzer / Complements.rb
Last active August 29, 2015 14:16
Bench marking some Complement class implementations.
require 'benchmark'
class Complement_V0
DNA_RNA_COMPLEMENTS = {
'G' => 'C',
'C' => 'G',
'T' => 'A',
'A' => 'U',
}
@dkinzer
dkinzer / lists.c
Last active August 29, 2015 14:21
Playing around with linked lists in c.
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <stdbool.h>
typedef struct node {
int value;
struct node * next;
} node;
@dkinzer
dkinzer / Prep for TechGirlz Presentation..markdown
Created June 1, 2015 17:58
Prep for TechGirlz Presentation.
@dkinzer
dkinzer / gist:2423919
Created April 19, 2012 20:23
CTAGS directive for a Drupal Project
ctags --langmap=php:.engine.inc.module.theme.install.php --php-kinds=cdfi --languages=php --recurse
@dkinzer
dkinzer / gist:2559106
Created April 30, 2012 15:09
Running a drush sql sync from Shell script via Jenkins requires silent mode
drush --quiet --yes sql-sync @live @website
@dkinzer
dkinzer / gist:2568207
Created May 1, 2012 14:17
Switching to a user that does not have a default shell
#in this case the user name is jenkins
sudo su - -s /bin/bash jenkins