Skip to content

Instantly share code, notes, and snippets.

@fitoria
fitoria / gist:217614
Created October 24, 2009 16:37 — forked from leah/gist:216443
:⌉
=⌉
¦-) as opposed to |
⍥ om nom nom
@endolith
endolith / peakdet.m
Last active July 27, 2024 19:48
Peak detection in Python [Eli Billauer]
function [maxtab, mintab]=peakdet(v, delta, x)
%PEAKDET Detect peaks in a vector
% [MAXTAB, MINTAB] = PEAKDET(V, DELTA) finds the local
% maxima and minima ("peaks") in the vector V.
% MAXTAB and MINTAB consists of two columns. Column 1
% contains indices in V, and column 2 the found values.
%
% With [MAXTAB, MINTAB] = PEAKDET(V, DELTA, X) the indices
% in MAXTAB and MINTAB are replaced with the corresponding
% X-values.
@tian2992
tian2992 / apache-results
Created March 16, 2011 01:55
lighttpd-vs-apache
tian2992@li55-22:~/Sites$ ab -n 2000 http://labs.sebastianoliva.com/info.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking labs.sebastianoliva.com (be patient)
Completed 200 requests
Completed 400 requests
Completed 600 requests
Completed 800 requests
@jasondavies
jasondavies / .block
Last active February 4, 2024 12:38 — forked from mbostock/.block
Parallel Coordinates
license: gpl-3.0
@thruflo
thruflo / test_geography.py
Created November 28, 2011 22:59
Example using PostGIS Geography Type with GeoAlchemy.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import code
import logging
from datetime import datetime
from sqlalchemy import create_engine, event
from sqlalchemy import Column, Float, Integer, MetaData, UnicodeText
@zziuni
zziuni / stuns
Created September 18, 2012 08:05
STUN server list
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net
@mbostock
mbostock / .block
Last active March 1, 2024 06:07
The Gist to Clone All Gists
license: gpl-3.0
@wsvekla
wsvekla / README.md
Last active October 24, 2018 16:40
Guatemala TopoJSON
@wookiecooking
wookiecooking / aliases.sh
Created November 30, 2013 00:52
[Shell] Assortment of OSX influenced bash aliases and functions
# Rails Stuff
alias stoprails='kill -9 $(lsof -i :3000 -t)'
alias startrails='rails server -d'
alias restartrails='stopRails && startRails'
#Check PHP For Erroes
alias phpcheck='find ./ -name \*.php | xargs -n 1 php -l'
# ROT13-encode text. Works for decoding, too! ;)
alias rot13='tr a-zA-Z n-za-mN-ZA-M'
@soopa
soopa / reference-api-designs.md
Last active April 22, 2023 10:56
A running list of API designs worth referencing, alphabetized.