Skip to content

Instantly share code, notes, and snippets.

View earth2marsh's full-sized avatar

Marsh Gardiner earth2marsh

View GitHub Profile
@minikomi
minikomi / editor.html
Last active November 11, 2021 10:16
my editor
data:text/html,
<style type="text/css">
#e {
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
font-size:16px;
}
@zdne
zdne / BasicExample.md
Last active December 13, 2015 21:28
Deprecated. This is an example file for the upcoming Apiary.io blog post on New API Blueprint Format.

Format: 1A Host: http://blog.acme.com

Basic ACME Blog API

NOTE: This document is outdated. Refer to the actual API Blueprint examples.

Welcome to the ACME Blog API. This API provides access to the ACME Blog service.

@dlo
dlo / export_pinboard.py
Last active April 24, 2025 10:08
Export all Pinboard.in bookmarks with a specific tag.
#!/usr/bin/env python
"""
This script is designed to generate a simple HTML file with _all_ of your
Pinboard.in bookmarks.
You should edit the `username`, `password`, `bookmark_filename`, and `tag`
variables.
Requirements:
@mdobson
mdobson / index.js
Last active November 24, 2015 16:59
Scouting in Zetta.
var sonos = require('sonos');
var Scout = require('zetta-scout');
var util = require('util');
var SonosDriver = require('./sonos_driver');
//We inherit from scout to get some Zetta functionality
var SonosScout = module.exports = function() {
Scout.call(this);
};
util.inherits(SonosScout, Scout);

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

@kevinswiber
kevinswiber / rpc_vs_rest.md
Last active April 11, 2021 16:50
A brief moment of RPC vs. REST.
@Cosmeen
Cosmeen / hide-twitter-bloat.css
Last active May 14, 2016 05:09
hide-twitter-bloat.css for Stylish extension
/*
from @rem
https://twitter.com/rem/status/729628084115247104
*/
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("twitter.com") {
div[data-component-term="user-recommendations"],
div[data-component-term="trends"],
.promoted-tweet,
@kevinswiber
kevinswiber / siren.apib
Last active May 11, 2017 00:44
Siren described in MSON for API Blueprint
# Data Structures
## Entity (object)
An Entity is a URI-addressable resource that has properties and actions
associated with it. It may contain sub-entities and navigational links.
### Properties
- class (array[string], optional)
Describes the nature of an entity's content based on the current
representation. Possible values are implementation-dependent and
// generateUuid.js
// ------------------------------------------------------------------
//
// created: Wed Dec 14 13:44:38 2016
// last saved: <2016-December-14 13:44:44>
function generateUUID(){
var d = new Date().getTime();
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = (d + Math.random()*16)%16 | 0;
@ramalho
ramalho / RethinkDB-why-we-failed.md
Created January 19, 2017 14:46
RethinkDB: why we failed
layout title
post
RethinkDB: why we failed

Posted on Github by Slava Akhmechet

When we [announced][shutdown-announcement] that RethinkDB is shutting down, I promised to write a post-mortem. I took some time to process the experience, and I can now write about it clearly.