Skip to content

Instantly share code, notes, and snippets.

View mikebevz's full-sized avatar

Mike Bevz mikebevz

  • Kyiv, Ukraine
  • 21:37 (UTC +02:00)
View GitHub Profile
@pierre-H
pierre-H / declarations.d.ts
Created January 23, 2017 09:12
Admin On Rest - Typescript declaration
declare module 'admin-on-rest' {
function jsonServerRestClient(url: string): Promise<{type: string, resource: string, param: {}}>;
class Admin extends React.Component<{
restClient: Promise<{type: string, resource: string, param: {}}>,
title ?: string,
dashboard?: React.Component<void, void>,
theme?: __MaterialUI.Styles.MuiTheme,
appLayout?: React.Component<void, void>
}, void> {}
@rgcottrell
rgcottrell / gist:5b876d9c5eea4c9e411c
Created September 21, 2014 17:38
An FM Synthesizer in Swift using AVAudioEngine
import AVFoundation
import Foundation
// The maximum number of audio buffers in flight. Setting to two allows one
// buffer to be played while the next is being written.
private let kInFlightAudioBuffers: Int = 2
// The number of audio samples per buffer. A lower value reduces latency for
// changes but requires more processing but increases the risk of being unable
// to fill the buffers in time. A setting of 1024 represents about 23ms of
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#