Skip to content

Instantly share code, notes, and snippets.

var a = $('ol.empReviews li.empReview').map(function (){
return [[
$(this).find('span.reviewer').text(),
$(this).find('time.date').text(),
$(this).find('.interviewOutcomes .flex-grid div span:eq(0)').text(),
$(this).find('.interviewOutcomes .flex-grid div span:eq(1)').text(),
$(this).find('.interviewOutcomes .flex-grid div span:eq(2)').text(),
$(this).find('.interviewDetails').text(),
$(this).find('.interviewQuestions span.interviewQuestion').text().replace('Answer Question', '')
]];
@ianalexander
ianalexander / neural-style-instructions.md
Created March 11, 2016 01:21 — forked from ttur/neural-style-instructions.md
Instructions on setting up and running neural-style on CentOS and AWS G2, and how to create slideshow videos of the results with ffmpeg

#neural-style Installation

This guide will walk you through the setup for neural-style on AWS.

Step 1: Install torch7

First we need to install torch, following the installation instructions here:

@ianalexander
ianalexander / keybase.md
Created November 14, 2015 23:50
keybase.md

Keybase proof

I hereby claim:

  • I am ianalexander on github.
  • I am ianalexan (https://keybase.io/ianalexan) on keybase.
  • I have a public key whose fingerprint is 5AEB FBE6 DEAF 6BFC 4110 3BD7 0610 E6C0 D4B3 D083

To claim this, I am signing this object:

function creator(o, data, node) {
var content = document.createElement(node);
content.cellspacing = "3"
var cell = document.createTextNode(data);
content.appendChild(cell);
o.appendChild(content);
}
function displayData(arr) {
var table = document.createElement('table');
#!/usr/bin/ruby
##
# Classifies a puppet node based on its EC2 security group.
# Requires the AWS gem.
# Also requires a node_groups.yml file which specifies security groups
# and the classes/params that should be applied, in the following
# format (additionally keyed by security group name).
# http://docs.puppetlabs.com/guides/external_nodes.html
#
@ianalexander
ianalexander / ec2-enc.py
Last active December 16, 2015 11:59
ec2-enc: A simple Puppet ENC written Python that uses EC2 Security Groups to generate node classifciations.
#! /usr/bin/python
# ec2-enc.py
# A simple Puppet ENC that converts EC2 Security Groups to Puppet classes
import boto.ec2
import sys
# EC2Group: Puppet Class
GROUPS = {'default': 'role::default', 'web': 'role::web', 'app': 'role::app'}