Skip to content

Instantly share code, notes, and snippets.

View jspc's full-sized avatar
🇰🇷 ✈️ 🇬🇧

jspc jspc

🇰🇷 ✈️ 🇬🇧
View GitHub Profile
x y
0 0
1 0
2 0
3 1
4 1
5 1
6 1
7 1
8 2
@jspc
jspc / sine.go
Last active October 17, 2017 16:37
package main
import (
"math"
)
type Sine struct {
freqPerSample float64
phase float64
multiplier float64
@jspc
jspc / stress.go
Created September 13, 2017 13:36
import (
"math"
"os"
"os/signal"
"syscall"
)
func main() {
c := make(chan os.Signal, 1)

Contributor Licence Agreement

1 - Parties and Definitions

1.1 - This agreement is between You (the SIGNER) and Me (JAMES CONDRON) 1.2 - It pertains directly, and only, to the copywrite for https://github.com/jspc/c-l-ady_and_the_tramp (the PROJECT) and the ownership of the PROJECT

2 - Fuck the police

#!/usr/bin/env ruby
#
require 'active_support'
require 'active_support/core_ext'
quitting_time = Time.parse('2016-11-11T17:00:00Z')
quitting_seconds = (quitting_time - Time.now).to_i
var uri = "http://domain.com:80/articles/something";
var regexp = /http:\/\/([^\/]+):[0-9]+\/articles\/[^\/]+/;
var matches = regexp.exec(uri);
console.log(matches);
//[ 'http://domain.com:80/articles/something',
// 'domain.com',
// index: 0,
// input: 'http://domain.com:80/articles/something' ]
uri = "threepio+", application, "://", path, "?", params;
application = "prelude" | "premiere";
path = "/", alphanumeric, {path};
params = param, {"&", params};
param = key, "=", value;
key = "accessKey" | "secretKey" | "sessionToken" | "uuid";
value = alphanumeric;

Keybase proof

I hereby claim:

  • I am jspc on github.
  • I am jspc (https://keybase.io/jspc) on keybase.
  • I have a public key whose fingerprint is 601B 2884 821B 4798 3688 C3F7 9A58 E432 7E59 E36B

To claim this, I am signing this object:

var main = function(m, x, y){
{
foo: bar,
baz: quux
}[m](x,y);
}
var bar = function(x,y){
// do something
}
#!/usr/bin/env bash
#
# Invoke as 'glitter.sh "glittery text"
BUILD_DIR=$(mktemp -d)
pushd $BUILD_DIR
convert -size 1024x100 xc: +noise Random -separate \
null: \( xc: +noise Random -separate -threshold 30% -negate \) \
-compose CopyOpacity -layers composite \
-set dispose background -set delay 20 -loop 0 glitter_overlay.gif