Skip to content

Instantly share code, notes, and snippets.

The app has been fixed in a few seconds but it seems like it doesn't work with the other person who is the first person in a world that has a lot more than one person in my room I think that it's not an issue but I don't want it either but it doesn't work at the moment and then it looks good and it works great and I love the way you are in my life and you have a great day to make a good one more time and a good idea of the app but I still have a notification notification and notifications for the app is not an issue but I don't want it either but it doesn't work at the moment and then it looks good and it works great and I love the way you are in my life

@s4y
s4y / gif.bash
Last active September 21, 2016 18:05
Little shell script to make a (nice-looking!) animated gif from a video with ffmpeg.
#!/bin/bash
set -euo pipefail
if [[ $# < 1 || $# > 2 ]]; then
echo "usage: $0 input.mov [filtergraph]" 1>&2
exit 1
fi
infile="$1"; shift
outfile="${infile%.*}.gif"
function curried(fn) {
function curry(prevArgs) {
return function (...inArgs) {
const args = prevArgs.concat(inArgs);
if (args.length >= fn.length) {
return fn(...args);
}
return curry(args);
};
}
@s4y
s4y / editor.md
Last active April 14, 2018 10:45
A tiny little text editor that you can type as a URL

Simplest

data:text/html,<body contenteditable>

Monospace font, spell checking off

data:text/html,<body spellcheck=false style="font: 16px monospace" contenteditable>

URL updates as you type

@s4y
s4y / keybase.md
Created October 26, 2015 20:24
DEVEL PROOF

Keybase proof

I hereby claim:

  • I am sidnicious on github.
  • I am potato (https://keybase.io/potato) on keybase.
  • I have a public key is ASDTX2oyybeG_W9qAeEabhkPoS6z4CVGI57aXU1u_TGzxAo

To claim this, I am signing this object:

@s4y
s4y / keybase.md
Created October 20, 2015 20:30
DEVEL PROOF

Keybase proof

I hereby claim:

  • I am Sidnicious on github.
  • I am potato (https://keybase.io/potato) on keybase.
  • I have a public key whose fingerprint is 1CD3 2E3C 469D 0CBB 4DE8 AE50 60C7 152C 5E2C D5CE

To claim this, I am signing this object:

@s4y
s4y / AppDefault.swift
Created October 12, 2015 17:10
App defaults with an enum
enum AppDefault {
case APIServer, RunMode, HomeDirectory, ReactHost
var stringValue: String? {
get {
return NSUserDefaults.standardUserDefaults().stringForKey(String(self))
}
nonmutating set {
if let newValue = newValue {
@s4y
s4y / ratelimiter.coffee
Created July 31, 2015 02:00
A super tiny rate limiter
class RateLimiter
constructor : (@max, @interval) ->
@table = {}
hit : (key) ->
now = +new Date
if (hits = @table[key])?
if hits.length is @max
return false