Skip to content

Instantly share code, notes, and snippets.

Technical Support / Integrations Developer

Location: New York, NY
Type: Full-time
Experience: Entry-level

At [Jibe][jibe], we make software to help Fortune 1000 and blue chip companies hire more effectively, and make the process of applying for those jobs less painful. Our clients love us, and we're growing like crazy.

Web Developer

Location: New York, NY
Type: Full-time
Experience: Mid-level

At [Jibe][jibe], we make software to help Fortune 1000 and blue chip companies hire more effectively, and make the process of applying for those jobs less painful. Our clients love us, and we're growing like crazy.

@alloy-d
alloy-d / fun-with-marquees.html
Created June 1, 2014 14:48
Truly some of my best work.
<!DOCTYPE html>
<html>
<head>
<title>DAMMIT BILL</title>
<style>
html, body { height: 100%; }
body {
font-family: "Helvetica Neue", sans-serif;
font-size: 110px;
text-transform: uppercase;
@alloy-d
alloy-d / yolo-hash.rb
Created August 6, 2014 18:15
YOLOHash: stop caring about all that "strings vs symbols" nonsense
class YOLOHash < Hash
def [](key)
super(key.send((rand(2) % 2 == 1) ? :to_sym : :to_s))
end
def []=(key,val)
super(key.send((rand(2) % 2 == 1) ? :to_sym : :to_s), val)
end
end
@alloy-d
alloy-d / selenium-test.rb
Created October 14, 2014 18:17
Nonsense with Capybara and threads
require 'thread'
require 'capybara'
Capybara.register_driver :selenium_chrome do |app|
Capybara::Selenium::Driver.new(app, :browser => :chrome)
end
class SeleniumTest
class SeleniumThread
def initialize(queue, done)
@alloy-d
alloy-d / autocompleter.rb
Created January 5, 2015 22:15
Finish sentences using Google autocomplete!
require 'capybara'
require 'forwardable'
class GoogleCompleter
extend Forwardable
attr_accessor :session
def_delegator :session, :evaluate_script, :js
def initialize
@alloy-d
alloy-d / validations.js
Last active August 29, 2015 14:13
a less-awful validation framework.
// ## Goals
//
// We want a validation framework with the following attributes:
//
// - Data validations can be specified alongside the data model.
// - Validations match the specificity of the data they validate
// (i.e., if there's a problem with `model.items[1]`, the validation
// fails for `model.items[1]`, *not* `model.items`).
// - Validations can be serialized with the data they validate.
// - Validations can be applied piecemeal: validating `model.thingy`
package main
import (
"fmt"
"math"
)
func main() {
str := fmt.Sprintf("%v", math.MaxUint64)
fmt.Printf("MaxUint64 is %v.\n", math.MaxUint64)
(add-to-list 'exec-path "/usr/local/bin")
(setenv "PATH" (concat "/usr/local/bin:" (getenv "PATH")))
(add-to-list 'exec-path "/Users/adam/.rbenv/shims/bundle")
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
(add-to-list 'package-pinned-packages '(cider . "melpa-stable") t)
@alloy-d
alloy-d / subscriber.js
Created February 6, 2015 16:24
Minimal mixin for managing Bacon subscriptions alongside the React component lifecycle.
define(function () {
"use strict";
var Subscriber = {
componentDidMount: function () {
this._unsubscribers = [];
},
componentWillUnmount: function () {
var i, len = this._unsubscribers.length;
for (i = 0; i < len; i += 1) {