Skip to content

Instantly share code, notes, and snippets.

no cooperation with ICE

0xabad1dea 0xabad1dea

no cooperation with ICE
View GitHub Profile
endolith / peakdet.m
Last active Jul 22, 2021
Peak detection in Python [Eli Billauer]
View peakdet.m
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.
endolith /
Last active Jun 24, 2021
Frequency estimation methods in Python
from __future__ import division
from numpy.fft import rfft
from numpy import argmax, mean, diff, log, nonzero
from scipy.signal import blackmanharris, correlate
from time import time
import sys
import soundfile as sf
except ImportError:
from scikits.audiolab import flacread
btbytes / hello.lua
Created Aug 11, 2011 — forked from randrews/hello.lua
Embedding Lua in C
View hello.lua
-- Pack this into an object file with ld: ld -r -b binary -o hello.o hello.lua
print "Hello, World!"
nikcub /
Created Oct 4, 2012
Facebook PHP Source Code from August 2007
1wErt3r / SMBDIS.ASM
Created Nov 9, 2012
A Comprehensive Super Mario Bros. Disassembly
;by doppelganger (
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
natw /
Created Nov 15, 2012
best fizzbuzz
import random
for i in range(0, 100):
if not i % 15:
print [i+1, "Fizz", "Buzz", "FizzBuzz"][random.randint(0,3)]
proger /
Created Feb 11, 2013
run any process with a badge!
#!/usr/bin/env python
import sys
sys.path.insert(0, '/System/Library/PrivateFrameworks/LLDB.framework/Resources/Python')
import lldb
dbg = lldb.SBDebugger.Create()
lpereira / partial.c
Last active Nov 27, 2020
Partial functions in C This program illustrates a hack to create partial functions in C. The way it works is that it generates a template function (partial_template_function) with known pointers, that is later copied to a region of memory obtained with mmap(), patched up with the address and data to be passed to the real function, and then made …
View partial.c
* Partial applied functions in C
* Leandro Pereira <>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
tylerneylon / learn.lua
Last active Jul 21, 2021
Learn Lua quickly with this short yet comprehensive and friendly script. It's written as both an introduction and a quick reference. It's also a valid Lua script so you can verify that the code does what it says, and learn more by modifying and running this script in your Lua interpreter.
View learn.lua
-- Two dashes start a one-line comment.
Adding two ['s and ]'s makes it a
multi-line comment.
-- 1. Variables and flow control.
drhelius / GameBoy Color Boot ROM Disassembly
Last active Feb 23, 2021
GameBoy Color Boot ROM Disassembly
View GameBoy Color Boot ROM Disassembly
; GameBoy Color Boot ROM Disassembly
; Dumped by Costis
; Commenting by Randy Mongenel (Duo)
; ===========================================================================
; Segment type: Pure code