Skip to content

Instantly share code, notes, and snippets.

@lalunamel
lalunamel / Command line snippets
Last active December 22, 2015 01:49
Command line tricks I've picked up
**Movement**
Beginning of line - Ctr+a
End of line - Ctr+e
**Text Manipulation**
Delete word behind - Ctr+w
Delete beginning of line to cursor - Ctr+u
Delete end of line to cursor - Ctr+k
**Command Manipulation**
@lalunamel
lalunamel / gist:8777170
Created February 3, 2014 00:26
My Sublime Config
// User preferences
{
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"font_size": 11,
"hot_exit": false,
"ignored_packages":
[
"Vintage"
],
"remember_open_files": false,
@lalunamel
lalunamel / makefile
Last active August 29, 2015 14:06
Chapel Lab Makefile
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir_name := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
all: run
compile:
chpl -o bin/$(current_dir_name) src/$(current_dir_name).chpl
run: compile
bin/$(current_dir_name)
@lalunamel
lalunamel / quickSortParallel.chpl
Created October 2, 2014 22:09
quickSortParallel.chpl
// // Qucksort psudo-code taken from http://en.wikipedia.org/wiki/Quicksort
// For speedup information, see https://docs.google.com/a/knox.edu/spreadsheets/d/1I3ReQhltJn6DObg3Lm9uQ4T49QOb3qXgf3biW6Q-oj4/edit?usp=sharing
// See comment on cell A1 ^
use Random;
use Time;
// n - size of the random array to be sorted
config const n: int = 50;
@lalunamel
lalunamel / gist:7da6bd48d21832c2eea9
Last active February 25, 2016 22:12
Transitioning to XCode

Solved Annoyances

  • Enable tabs - View > Show Tab Bar

  • Double click on file in project view and open in new tab - Xcode > Preferences > Navigation > Double Click Navigation > 'Uses Separate Tab'

  • Increase the font size - Close all projects > Xcode > Preferences > Fonts & Colors > Choose your theme in the left column > Click on 'Plain Text', Cmd + A to select all > Click on the little 'T' icon on the bottom right font picker > Change font size

  • Install plugin manager - See http://alcatraz.io/

@lalunamel
lalunamel / gist:a93218ef81a264ac76cb
Last active March 13, 2016 15:26
Notes on trying to build out continuous integration for the pivotal tracker ios app
@lalunamel
lalunamel / .envrc
Last active May 8, 2016 02:36
Add node_modules folder to PATH
PATH_add ./node_modules/.bin
@lalunamel
lalunamel / android-notes.md
Last active September 1, 2016 14:09
Android Notes
  • Default material button style is destroyed if you set a button's background to say, #FFF. The background attribute not only controls background color, but coner radius as well.
Stdlib definitions for touch events (what android define as a tap, double tap, swipe, etc.) - https://developer.android.com/reference/android/view/ViewConfiguration.html#getScaledTouchSlop()
@lalunamel
lalunamel / notes.md
Last active July 18, 2017 18:31
Notes on the March '17 Edition of the iOS Security Guide

Notes on the March '17 Edition of the iOS Security Guide

I recently read through the March 2017 iOS Security Guide and made a few notes - it's quite dense!

I thought I would share these notes so other people can benefit from the time I put in, too.

Additions and clarifications from external sources where noted.

Encryption