Skip to content

Instantly share code, notes, and snippets.

@mattvenn
mattvenn / blackice.md
Last active February 21, 2018 22:23
upload firmware to mystorm blackice board
@raldred
raldred / gist:6fb93d969aaede7ffe41
Last active July 29, 2022 16:20
Getting RTL SDR and dump1090 running on OSX El Capitan
# =================================================================================================
# RTL SDR & Dump1090 installation for OSX El Capitan
# =================================================================================================
# This is written as a guide for those wanting to install RTL SDR and Dump1090 for OSX El Capitan
# It may work on other versions of OSX
# I am using a R820T from Jetvision.de
# http://bit.ly/1QynTts - without antenna
# http://bit.ly/1O60IUV - with small indoor antenna
# -------------------------------------------------------------------------------------------------
# To follow this guide you will need to use the Terminal app
@karpathy
karpathy / min-char-rnn.py
Last active June 21, 2024 13:50
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@jaderberg
jaderberg / gputest.lua
Created September 4, 2013 12:40
GPU Torch Benchmark
-- Max Jaderberg 4/9/13
-- GPU Effectiveness test
require 'torch'
require 'sys'
require 'nn'
require 'xlua'
cmd = torch.CmdLine()
cmd:text()
@noeticpenguin
noeticpenguin / rakefile.rb
Created June 10, 2013 15:12
Base Rakefile for RubyMotion projects incorporating the Salesforce Mobile SDK(iOS).
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'
require 'rubygems'
require 'bundler'
Bundler.require
require 'sugarcube-repl'
Motion::Project::App.setup do |app|
@nfarina
nfarina / UIView+FrameAdditions.h
Created August 21, 2012 06:40
UIView Frame helper getter/setter category methods
#import <UIKit/UIKit.h>
@interface UIView (SMFrameAdditions)
@property (nonatomic, assign) CGPoint $origin;
@property (nonatomic, assign) CGSize $size;
@property (nonatomic, assign) CGFloat $x, $y, $width, $height; // normal rect properties
@property (nonatomic, assign) CGFloat $left, $top, $right, $bottom; // these will stretch the rect
@end
@ahawkins
ahawkins / deploy.rb
Created March 29, 2012 13:59
Deploy script for Heroku apps
#!/usr/bin/env ruby
# This is a basic deploy script for Heroku apps.
# It provides a structure you can use to expand on
# and add your own prereqs and deploy tasks.
#
# It basically ensures that:
# 1. There are no uncommited files
# 2. You can ssh to github
# 3. You can connect to heroku
class PostsController < ActionController::Base
def create
Post.create(post_params)
end
def update
Post.find(params[:id]).update_attributes!(post_params)
end
private