Skip to content

Instantly share code, notes, and snippets.

Nikki Stevens drnikki

Block or report user

Report or block drnikki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1f0cd72d69988e785f23
canvas.on('touchend', function(options) {
console.log('touch');
// only if we're not selecting other objects
if (typeof options.target !== 'object' ) {
drawRect(options.e.clientX, options.e.clientY, 'start');
}
});
View gist:416e14f7c631fe5c3ba1
<div class="messages error">
<h2 class="element-invisible">Error message</h2>
Whoops. Something went wrong with field collections JP503-AU-C, JP503-AU-VT</div>
@drnikki
drnikki / supported browser matrix
Created Feb 24, 2015
Supported Browser Matrix
View supported browser matrix
<!-- initially taken from http://courses.ucmo.edu/check/browser_compatibility.html -->
<style>
td { border: 1px solid black; padding: 4px;}
td.pass { background-color: green;}
td.fail {background-color: red;}
</style>
View gist:60a98f8a4686975f74c4
# taken directly from http://blogs.isostech.com/git/howto-use-vagrant-git-importing-sandbox/
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
echo I am provisioning...
date > /etc/vagrant_provisioned_at
sudo apt-get -q -y install git-core git-svn ruby rubygems subversion
sudo gem install svn2git --source http://gemcutter.org
SCRIPT
Vagrant.configure("2") do |config|
View Install Selenium on the VM
mkdir /var/selenium
cd /var/selenium
# get selenium jar
wget http://selenium-release.storage.googleapis.com/2.46/selenium-server-stan dalone-2.46.0.jar
#install java
sudo apt-get install openjdk-7-jre-headless.
# get headless browser
sudo apt-get install firefox.
@drnikki
drnikki / about.md
Created Aug 10, 2011 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
View about.md
@drnikki
drnikki / .gitconfig
Created Nov 30, 2011 — forked from joshuajabbour/.gitconfig
Git Config: Rename this file ".gitconfig" and place inside your home directory.
View .gitconfig
##
# This file should be renamed ".gitconfig" and placed inside your home directory.
##
[user]
name = YOUR_NAME
email = YOUR_EMAIL
[github]
user = YOUR_GITHUB_USERNAME
token = YOUR_GITHUB_TOKEN
@drnikki
drnikki / svn stuff
Created Nov 30, 2011
SVN enhancements / OSX
View svn stuff
## View svn diff in color
$ brew install colordiff ( or port install colordiff)
$ vim ~/.subversion/config
# diff-cmd = diff_program (diff, gdiff, etc.)
diff-cmd = colordiff
## Customize those hideous colors
# started from http://blog.philippklaus.de/2011/09/colourful-svn-diff-on-mac-os-x/
$ vim ~/.colordiffrc
@drnikki
drnikki / git last
Created Nov 30, 2011 — forked from joshuajabbour/git last
Shows all local and remote commits for X user over the last Y days. Add to your .gitconfig -- Usage: `git last Y X` (author name can be partial)
View git last
[alias]
last = "!fn() { S=1; A=`git config --get user.name`; if [ -n \"$1\" ]; then S=\"$1\"; shift; fi; if [ -n \"$1\" ]; then if [ \"$1\" != \"me\" ]; then A=\"$1\"; fi; shift; fi; git log -i --since=\"$S days ago\" --author=\"$A\" --branches --remotes --format='%C(yellow)%t%Creset %s (%an)' \"$@\"; }; fn"
View gist:2254721
text
text
<a href="
<?php
$url = current_path();
explode('/', $url);
var_dump($url);
if(is_numeric($url[1])) {
 $nid = $url[1];
echo "node/add/resume?=jobxyz=" . $nid;
You can’t perform that action at this time.