This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
/** | |
* Implements an operation to fetch the data as described in https://twitter.com/BenLesh/status/1455597411385098242 | |
* The "winner" is unambiguous. It is the request corresponding to the latest click, guaranteed. | |
* Other important things to note: | |
* | |
* 1. The HTTP request is cancelled every time along with its containing task | |
* 2. click listener is removed automatically at the end of the `clickToLoad` operation | |
* 3. The cancellation logic is explicit here to demonstrate the concept, but it can easily be abstracted into a separate | |
*. function. See the `click-to-load-HOF` example below | |
*/ |
/** | |
* 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! |
function isGenerator(x) { | |
return x != null && typeof x.next === "function" | |
} | |
function isFrame(x) { | |
return x != null && x._type_ === 'call_frame' | |
} | |
function call(genFunc, ...args) { |
joined #topic-forms, and invited @machty | |
locks [11:05 AM] | |
thar you go | |
machty [11:06 AM] | |
thank you! | |
[11:07] | |
@samselikoff @cowboyd |
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: |
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.racoon.plist | |
sudo launchctl load /System/Library/LaunchDaemons/com.apple.racoon.plist |
#! /usr/bin/env ruby | |
status = DATA.flock(File::LOCK_EX | File::LOCK_NB) | |
if status == 0 | |
puts "we have the lock..." | |
sleep | |
else |
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; |