Skip to content

Instantly share code, notes, and snippets.

View timgluz's full-sized avatar
😄

Timo Sulg timgluz

😄
View GitHub Profile
@aemkei
aemkei / LICENSE.txt
Last active June 4, 2024 07:51 — forked from 140bytes/LICENSE.txt
Binary Tetris - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

Data Miner

GitHub has lots of data. User data, repository data, event data, you name it. We need someone to aggregate it, query it, and report back to us really interesting things to help better serve our community. Being a number geek that realizes R isn’t just a letter and loves Hadoop is great, but you also have to be able to communicate well within our team.

Our data is stored in a variety of formats such as MySQL, Redis, MongoDB, Riak, and Graphite, so knowledge of SQL and NoSQL databases and their associated querying languages would be useful.

We’d love if you’d work out of our San Francisco office, and we’ll pay to help you move. GitHub is a chance for you to come work with highly skilled, highly motivated professionals that are determined to build the best developer tools on the planet.

We provide an excellent compensation package: health, vision, and dental benefits + HSA contributions, competitive salary, and an open and friendly work environment. Read more about how GitHub works here: https:

@jboner
jboner / latency.txt
Last active July 19, 2024 03:35
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
;; chouser's solution to Infinite Matrix
;; https://4clojure.com/problem/168
(fn [r f & [m n s t]]
(map #(map (fn [x] (f % x)) (r n t)) (r m s)))
(fn r [a b]
({0 ()} b (lazy-cat [(or a 0)]
(r (+ (or a 0) 1) (- (or b 0) 1)))))
@leandrosilva
leandrosilva / ClientApp.java
Created June 7, 2012 07:01
My MessagePack-RPC sample: Clojure Server & Java Client
package msgpack.rpc.sample.client;
import org.msgpack.rpc.Client;
import org.msgpack.rpc.loop.EventLoop;
public class ClientApp {
private static class SpawnRequest {
private SpawnRequest(final int clientCount, final int requestCount, final RPCInterface iface) {
new Thread(new Runnable() {
public void run() {
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active June 5, 2024 22:16 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.
@disnet
disnet / scheme.sjs
Created October 8, 2012 19:02
start of scheme in sweet.js (modified from http://pastebin.com/0nPBg8LY)
macro sexp {
case () => {
;
}
case ($p) => {
$p
}
case ($x $y) => {
$x($y);
}
@teropa
teropa / resources.md
Last active December 4, 2020 05:42
Clojure Resources

Tutorials

@danneu
danneu / golang-vs-clojure-async.md
Last active November 6, 2023 04:09
Google I/O 2012 - Go Concurrency Patterns ported to Clojure Video: http://www.youtube.com/watch?v=f6kdp27TYZs
@stuartsierra
stuartsierra / spellcheck.clj
Created July 9, 2013 01:47
Example implementation of Norvig's Spellchecker in Clojure, using core.async
;; Example implementation of Norvig's Spellchecker in Clojure,
;; using core.async
;;
;; There are probably some bugs in this.
;;
;; Original problem: https://github.com/ericnormand/spelling-jam
;; from Lambda Jam, Chicago, 2013: http://lambdajam.com/
;;
;; Clojure core.async introduction:
;; http://clojure.com/blog/2013/06/28/clojure-core-async-channels.html