Skip to content

Instantly share code, notes, and snippets.

View ZachOrr's full-sized avatar
🤖
TBA

Zachary Orr ZachOrr

🤖
TBA
View GitHub Profile
// Needs CoreImage.framework
- (UIImage *)blurredImageWithImage:(UIImage *)sourceImage{
// Create our blurred image
CIContext *context = [CIContext contextWithOptions:nil];
CIImage *inputImage = [CIImage imageWithCGImage:sourceImage.CGImage];
// Setting up Gaussian Blur
CIFilter *filter = [CIFilter filterWithName:@"CIGaussianBlur"];
/**
* From a file that contains
* doc_id w1 w2 w3 ... lines, separated by tabs
* return an inverted index Map of w -> Set(doc_id)
*
* @param filename well isn't it obvious
* @return Map[String,Set[String]]
*/
import scala.collection.immutable.Map
#!/bin/sh
SIZE_MB=${1:-1024}
SECTORS=$((${SIZE_MB}*1024*1024/512))
diskutil erasevolume HFS+ "RamDisk" `hdiutil attach -nomount ram://${SECTORS}`
#
# Makefile - blinkasm.elf
#
# Author: Rick Kimball
# email: rick@kimballsoftware.com
# Version: 1.03 Initial version 10/21/2011
APP=blinkasm
MCU=msp430g2553
#
# Makefile - blinkasm.elf
#
# Author: Rick Kimball
# email: rick@kimballsoftware.com
# Version: 1.03 Initial version 10/21/2011
APP=blinkasm
MCU=msp430g2553