Skip to content

Instantly share code, notes, and snippets.

View Taytay's full-sized avatar

Taylor Brown Taytay

View GitHub Profile
@Taytay
Taytay / Hubot-YNAB-PullRequest.coffee
Last active August 14, 2019 20:14
Part of our Hubot script that responds to commands in Github Pull Requests - use in conjunction with https://github.com/ynab/hubot-github-adapter
# Description:
# Helper commands for YNAB Pull Requests
#
# Commands:
# hubot rebuild - Rebuilds this branch.
# hubot ketchup|catchup|catch_up|upbase|reverse integrate|reverse_integrate|backmerge|back_merge - Merges the target branch back into this pull request branch.
TextMessage = require('hubot').TextMessage
GitHubApi = require("github"); # https://github.com/mikedeboer/node-github
@Taytay
Taytay / rsvp.d.ts
Last active November 18, 2016 21:52
Type definitions for RSVP. Still needs unit tests.
// Type definitions for RSVP
// Project: github.com/tildeio/rsvp.js
// Definitions by: Taylor Brown <https://github.com/Taytay>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// Some of this file was taken from the type definitions for es6-promise https://github.com/borisyankov/DefinitelyTyped/blob/master/es6-promise/es6-promise.d.ts
// Credit for that file goes to: François de Campredon <https://github.com/fdecampredon/>
// Some of this file was taken from the type definitions for Q : https://github.com/borisyankov/DefinitelyTyped/blob/master/q/Q.d.ts
// Credit for that file goes to: Barrie Nemetchek <https://github.com/bnemetchek>, Andrew Gaspar <https://github.com/AndrewGaspar/>, John Reilly <https://github.com/johnnyreilly>
This file has been truncated, but you can view the full file.
execve("/home/vagrant/.rvm/gems/rbx-2.2.5@global/bin/rake", ["rake", "environment"], [/* 70 vars */]) = 0
brk(0) = 0x25b5000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f36febb7000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=20340, ...}) = 0
mmap(NULL, 20340, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f36febb2000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
#First, strace for MRI 2.1.0:
$ which ruby
/home/vagrant/.rvm/rubies/rbx-2.2.5/bin/ruby
$ strace ruby -v
execve("/home/vagrant/.rvm/rubies/ruby-2.1.0/bin/ruby", ["ruby", "-v"], [/* 70 vars */]) = 0
brk(0) = 0x1829000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffc8fad0000
readlink("/proc/self/exe", "/home/vagrant/.rvm/rubies/ruby-2.1.0/bin/ruby", 4096) = 45
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@Taytay
Taytay / StyleProtoChain.as
Created December 6, 2012 18:29
This monkey patches StyleProtoChain to make it MUCH faster in Flex 4. Learn more: http://taytay.com/?p=169
////////////////////////////////////////////////////////////////////////////////
//
// ADOBE SYSTEMS INCORPORATED
// Copyright 2004-2007 Adobe Systems Incorporated
// All Rights Reserved.
//
// NOTICE: Adobe permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////