Skip to content

Instantly share code, notes, and snippets.

View jappy's full-sized avatar

Scott Jappinen jappy

View GitHub Profile
@jappy
jappy / gist:8441831
Created January 15, 2014 18:40 — forked from xavi/gist:3729307
;; Call the renderer-fn macro with a template and it returns a function optimized to render it.
;; This happens at compile-time.
;; At run-time, you call this function with the parameters that will be interpolated into the template,
;; typically (but not limited to) a map.
;;
;; Useful in i18n for variable interpolation, for example. I'm using this to add internationalization
;; support to https://github.com/xavi/noir-auth-app
;; See usage at the end.
@jappy
jappy / ParyCudaSearch
Created October 18, 2012 20:46 — forked from ncornwell/ParyCudaSearch
Binary Search in CUDA
// kernel.cu : Defines the entry point for the console application.
//
#include "kernel.h"
#include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <cutil.h>
#include <cuda_runtime.h>