Skip to content

Instantly share code, notes, and snippets.

View RyanMarcus's full-sized avatar

Ryan Marcus RyanMarcus

View GitHub Profile
# find a palindrome in just two (reasonable) or one unreasonable line of Python code
# Copyright Ryan Marcus and Can Nahum 2016
import collections
import functools
def getPalin(x):
@RyanMarcus
RyanMarcus / Main.java
Created January 6, 2016 19:50
So you think you know Java...
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.ref.WeakReference;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Random;
import java.util.function.IntFunction;
import java.util.function.Supplier;
import java.util.stream.IntStream;
@RyanMarcus
RyanMarcus / gist:8809e1b775d3bdb5228a
Created July 13, 2015 21:46
Monte Carlo Calculator with no vector crossings
%define loopcount 800000
global main
extern printf
extern srand
extern rand
segment .data
@RyanMarcus
RyanMarcus / gist:88293e81d529b6a387c2
Created July 13, 2015 21:45
Monte Carlo Calculator with 0 memory roundtrips
%define loopcount 800000
global main
extern printf
extern srand
extern rand
segment .data
@RyanMarcus
RyanMarcus / gist:d3386baa6b4cb1ac47f4
Created July 8, 2015 21:17
Cookbook formulae for audio EQ biquad filter coefficients
Cookbook formulae for audio EQ biquad filter coefficients
----------------------------------------------------------------------------
by Robert Bristow-Johnson <[email protected]>
All filter transfer functions were derived from analog prototypes (that
are shown below for each EQ filter type) and had been digitized using the
Bilinear Transform. BLT frequency warping has been taken into account for
both significant frequency relocation (this is the normal "prewarping" that
@RyanMarcus
RyanMarcus / PKGBUILD
Created February 20, 2015 00:41
A PKGBUILD for the changed Cargo distro format
# Maintainer: Amr Hassan <[email protected]>
# Small change by Ryan Marcus <[email protected]>
pkgname=cargo-bin
pkgrel=1
pkgver=20150220
pkgdesc="The Rust package manager"
url="http://crates.io/"
arch=('x86_64' 'i686')
license=('MIT')
depends=('rust')

Keybase proof

I hereby claim:

  • I am ryanmarcus on github.
  • I am rmarcus (https://keybase.io/rmarcus) on keybase.
  • I have a public key whose fingerprint is 0E49 94F4 4CCB BCF7 5F00 6C81 56E4 21C4 B2CF 69B1

To claim this, I am signing this object: