Skip to content

Instantly share code, notes, and snippets.

@danpaluska
danpaluska / capture.sh
Created July 14, 2010 17:35
Timelapse movie maker from webcam for mac/linux
#! /bin/sh
# boranj!
# see instructions here:
# http://broadcasterproject.wordpress.com/2010/07/14/how-to-make-a-timelapse-shared-memory-server/
# see also screencast version here: http://plebiandesign.com/blog/?p=552
# ************* for capturing frames from a camera:
# ************* LINUX is STREAMER
# ************* MAC is WACAW
# whatever you want to be your directory of files
cd ~/Pictures/OMPD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns='http://www.w3.org/1999/xhtml'
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
>
<!--
Author:
Pierre Lindenbaum PhD. 2010
[email protected]
@chriseppstein
chriseppstein / readme.md
Created August 31, 2011 21:57 — forked from mislav/Gemfile
How to integrate Compass with Rails 3.1 asset pipeline

This gist is no longer valid. Please see Compass-Rails for instructions on how to install.

@sam1vp
sam1vp / index.html
Last active December 10, 2015 22:08
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<style>
#chart svg {
height: 400px;
}
@ttscoff
ttscoff / grab links.bookmarklet
Last active June 16, 2024 16:40
Create a bookmark and paste the code from `grab links.bookmarklet` into the url. Trigger it on a page containing links you want to save and then click the section of the page containing the links. A Markdown list of all links will be generated, and clicking the resulting list will select all for copying.
@hlung
hlung / How to connect PS3 controller to a Mac or PC.md
Last active July 22, 2024 21:41
How to connect PS3 controller to a Mac or PC

How to connect PS3 controller to a Mac or PC

This is how you connect PS3 controller to Mac OSX, PC, etc. when previously connected to a PS3. You will need a Mini USB cable. Overcome your laziness, get up of your chair, and go get one!

A big misconception is that keep holding PS button will reset the controller's pairing. It DOES NOT! From my testings, the controller keeps paring with the last machine it was CONNECTED VIA A USB CABLE.

Here are the steps:

package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"net/url"
"os/exec"
"strconv"

Screencapture and animated gifs

I say "animated gif" but in reality I think it's irresponsible to be serving "real" GIF files to people now. You should be serving gfy's, gifv's, webm, mp4s, whatever. They're a fraction of the filesize making it easier for you to deliver high fidelity, full color animation very quickly, especially on bad mobile connections. (But I suppose if you're just doing this for small audiences (like bug reporting), then LICEcap is a good solution).

Capturing (Easy)

  1. Launch quicktime player
  2. do Screen recording

screen shot 2014-10-22 at 11 16 23 am

@willcanine
willcanine / gist:76c01fd3da6f01b8cd9c
Last active August 29, 2015 14:14 — forked from Cixelyn/gist:8353ce715bee8e1dc82a
OpenTrons Protocol Datastructure *ALPHA*

#OpenTrons Protocol Datastructure ALPHA ###(SUBJECT TO CHANGE)

The OT.One runs jobs based on a JSON datastructure. This "low-level" definiton provides volume, container, and location specific information, describing protocols at the liquid transfer level (as opposed to Barista's higher level description).

It is based loosely on [Transcriptic's Autoprotocol] (https://www.transcriptic.com/platform/#instructions). We modified it to suit platforms beyond Transcriptic's robotic work cells, parsing out the platform specific information into a separate file with information particular to the OT platform. This should empower biodevelopers to easily develop and test protocols on their local machine, and then quickly scale them to "the cloud."

Please send any questions to [email protected]!

@judell
judell / mmr.py
Last active March 23, 2022 10:46
monthly morphometry report
import requests, re, json, types, traceback
class HypothesisAnnotation:
def __init__(self, row):
"""Encapsulate relevant parts of one row of a Hypothesis API search."""
self.tags = []
if row.has_key('tags') and row['tags'] is not None:
self.tags = row['tags']