Skip to content

Instantly share code, notes, and snippets.

View prodigeni's full-sized avatar

N/A prodigeni

  • Connexion Foundation
  • N/A
View GitHub Profile
@mnot
mnot / snowden-ietf93.md
Last active March 23, 2026 18:42
Transcript of Edward Snowden's comments at IETF93.
@barosl
barosl / add.c
Created July 26, 2015 07:26
Function overloading in C
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int addi(int a, int b) {
return a + b;
}
char *adds(char *a, char *b) {
char *res = malloc(strlen(a) + strlen(b) + 1);
@rodricios
rodricios / summarize.py
Last active November 18, 2020 17:21
Flipboard's summarization algorithm, sort of
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
pip install networkx distance pattern
In Flipboard's article[1], they kindly divulge their interpretation
of the summarization technique called LexRank[2].
@john2x
john2x / 00_destructuring.md
Last active April 25, 2026 03:06
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences

@rygorous
rygorous / vr_urgh.txt
Last active September 6, 2022 21:35
What I mean when I say "I think VR is bad news".
This just got linked to by the Y combinator news account, without proper context,
so a brief introduction: A month ago (end of May / early June 2014) I had a
Twitter conversation with a bunch of acquaintances. One tweet in the middle
of that thread, with obligatory hyperbole, was me saying that I think VR is
bad news.
Well, that part of the thread (but not the rest that provides context) recently
got retweeted, and then someone asked me if I could explain what I mean by that,
and because Twitter is a great platform for delivering 140 character slogans and
not so great for lengthy explanations, I wrote this. So, obligatory disclaimer:
@staltz
staltz / introrx.md
Last active May 7, 2026 01:31
The introduction to Reactive Programming you've been missing
@joshfraser
joshfraser / gist:819308dbae43ff70d892
Created June 6, 2014 21:43
clickjacking POC for amazon.com
<html>
<title>Click-jacking on Amazon.com</title>
<head>
<style type="text/css">
body {
background-color: #fafafa;
}
a {
color:rgb(228, 121, 17);
@adamhaile
adamhaile / GoatsWolvesAndLions.js
Last active August 29, 2015 14:02
Speeding Up Goats, Wolves and Lions By 18,800x
// Optimizing Javascript Implementation of Goats, Wolves and Lions
// Original fun puzzle from http://unriskinsight.blogspot.com/2014/06/fast-functional-goats-lions-and-wolves.html
//
// Strategy:
// 1 - we know that each move reduces the total population by 1, so the optimal
// solution will be the one with the least moves. So we'll progressively
// explore solutions of greater depth until we find a stable forest.
// 2 - since each move removes at most one from each animal, any solution
// must have a depth at least as great as the minimum of the initial animal counts.
// 3 - the order of moves doesn't matter. to be more precise, if there is
anonymous
anonymous / truecrypt.diff
Created May 28, 2014 19:59
truecrypt 7.2 diff
diff --git a/Boot/Windows/BootMain.cpp b/Boot/Windows/BootMain.cpp
index 5d4b942..0b6e6a6 100644
--- a/Boot/Windows/BootMain.cpp
+++ b/Boot/Windows/BootMain.cpp
@@ -75,7 +75,9 @@ static void PrintMainMenu ()
#endif // TC_WINDOWS_BOOT_RESCUE_DISK_MODE
- PrintEndl (3);
+ PrintEndl (2);
@kyledrake
kyledrake / ferengi-plan.txt
Last active November 14, 2025 04:39
How to throttle the FCC to dial up modem speeds on your website using Nginx
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {