Skip to content

Instantly share code, notes, and snippets.


Grant Park grant-park

View GitHub Profile

Keybase proof

I hereby claim:

  • I am grant-park on github.
  • I am grantxs ( on keybase.
  • I have a public key ASAa2dR1G-N6ziAkEiTz0GKhf7cpBve7WzswF6DQvjcdLwo

To claim this, I am signing this object:

grant-park / keymap_snapshot
Created Sep 25, 2018
current keymp for micro_32 prototype
View keymap_snapshot
extern keymap_config_t keymap_config;
#define _______ KC_TRNS
#define GUI(X) MT(MOD_LGUI, X)
#define ALT(X) MT(MOD_LALT, X)
#define SFT(X) MT(MOD_LSFT, X)
#define CTL(X) MT(MOD_LCTL, X)
grant-park / keymap.c
Created Apr 24, 2017
serial keymap for lets split
View keymap.c
#include "lets_split.h"
#include "action_layer.h"
#include "eeconfig.h"
extern keymap_config_t keymap_config;
// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
// Layer names don't all need to be of the same length, obviously, and you can also skip them
// entirely and just use numbers.
from __future__ import division
import math
def is_square(apositiveint):
x = apositiveint // 2
seen = set([x])
while x * x != apositiveint:
x = (x + (apositiveint // x)) // 2
if x in seen: return False
View Pomodoro Clock.markdown
View Weather.markdown
View Quote Generator.markdown
View MainViewController.swift
override func didReceiveMemoryWarning() {
// Dispose of any resources that can be recreated.
func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
//In storyboard, my collection view cell has the identifier "PostCell"
View Subclassing MKAnnotationView and overriding drawRect
extension MapViewController: MKMapViewDelegate {
func mapView(mapView: MKMapView!, viewForAnnotation annotation: MKAnnotation!) -> MKAnnotationView! {
if let annotation = annotation as? Food {
if annotation == mapView.userLocation {
return nil
let identifier = "pin"
var view: CustomPin
grant-park /
Created Mar 21, 2015
It solves sudoku puzzles using backtracking.
def readGrid(filename):
f = open(filename)
i = 0
grid = []
while i <= 8:
rowText = f.readline()
rowList = rowText.split()
rowList = [int(i) for i in rowList]
i += 1