Skip to content

Instantly share code, notes, and snippets.

Charles Lowell cowboyd

Block or report user

Report or block cowboyd

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
@cowboyd
cowboyd / async-function-typeclasses.js
Last active Oct 11, 2018
Funcadelic typeclass implementations for AsyncFunction
View async-function-typeclasses.js
/**
* There's some pretty awesome low-level composition that you can do with async functions:
* Check out funcadelic! https://github.com/cowboyd/funcadelic.js
*/
import { Functor, Semigroup, Monoid } from 'funcadelic';
const AsyncFunction = (async function() {}).constructor;
/**
* It's a Functor!
@machty
machty / gist:68afad4c03109f36d4f4cffaae3c170b
Last active Feb 7, 2017
embercommunity.slack.com #topic-forms discussion
View gist:68afad4c03109f36d4f4cffaae3c170b
joined #topic-forms, and invited @machty
locks [11:05 AM]
thar you go
machty [11:06 AM]
thank you!
[11:07]
@samselikoff @cowboyd
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active Jan 26, 2020
OS X Screencast to animated GIF
View GIF-Screencast-OSX.md

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@thommahoney
thommahoney / gist:2491946
Created Apr 25, 2012
RailsConf 2012 Lightning Talks
View gist:2491946
5 min:
~ Objective-C + Rails: Communicating with Rails from iOS / Mac OS
Dan Hassin
1 min:
~ Painless Javascript
koting hatduklgg
with wind tunnel
5 min:
@cowboyd
cowboyd / gist:1045642
Created Jun 24, 2011
Restart racoon on OSX
View gist:1045642
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.racoon.plist
sudo launchctl load /System/Library/LaunchDaemons/com.apple.racoon.plist
@cowboyd
cowboyd / JenknsCI JRuby Meeting Details.mdown
Created Mar 28, 2011
Meeting Details for Jenkins + JRuby
View JenknsCI JRuby Meeting Details.mdown

JenkinsCI Ruby Plugins

Date: Every Thursday, from Thursday, January 5, 2012 to no end date Time: 10:00 am, Central Standard Time (Chicago, GMT-06:00) Meeting Number: 336 439 792 Meeting Password: (This meeting does not require a password.)

View a.rb
#! /usr/bin/env ruby
status = DATA.flock(File::LOCK_EX | File::LOCK_NB)
if status == 0
puts "we have the lock..."
sleep
else
View hello_world_builder.mirah
import hudson.Launcher;
import hudson.Extension;
import hudson.util.FormValidation;
import hudson.model.AbstractBuild;
import hudson.model.BuildListener;
import hudson.model.AbstractProject;
import hudson.tasks.Builder;
import hudson.tasks.BuildStepDescriptor;
import net.sf.json.JSONObject;
import org.kohsuke.stapler.DataBoundConstructor;
@automatthew
automatthew / instant.rake
Created Nov 10, 2009
compile and run trivial Java with Rake
View instant.rake
# instant.rake
# Rake rules for compiling and running trivial Java programs
#
# Usage: rake com.example.MonkeyShines
# Source goes under ./src
# Classes end up under ./target
require 'rake/clean'
libs = FileList["lib/*"]
View proc_title.rb
class Rack::ProcTitle
F = ::File
PROGNAME = F.basename($0)
def initialize(app)
@app = app
@appname = Dir.pwd.split('/').reverse.
find { |name| name !~ /^(\d+|current|releases)$/ } || PROGNAME
@requests = 0
$0 = "#{PROGNAME} [#{@appname}] init ..."
You can’t perform that action at this time.