This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew update && brew upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ([direction isEqualToString:kIKBSnapToLineMinX]) { | |
switch (flipped) { | |
case kIKBSizeTransformFlippedXAxis: | |
case kIKBSizeTransformFlippedBothAxis: | |
if (keepProportions) { | |
switch (handle) { | |
case kIKBTransformLayerHandleMiddleRight: | |
snapRect.origin.x = 0; | |
snapRect.origin.y = change / 2 / aspectRatio; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ([direction isEqualToString:kIKBSnapToLineMinX]) { | |
switch (flipped) { | |
case kIKBSizeTransformFlippedXAxis: | |
case kIKBSizeTransformFlippedBothAxis: | |
if (keepProportions) { | |
switch (handle) { | |
case kIKBTransformLayerHandleMiddleRight: | |
snapRect.origin.x = 0; | |
snapRect.origin.y = change / 2 / aspectRatio; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" gist | |
let g:gist_clip_command='pbcopy' | |
let g:gist_detect_filetype=1 | |
let g:gist_open_browser_after_post=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// GridDemoViewController.m | |
// JNWCollectionViewDemo | |
// | |
// Created by Jonathan Willing on 4/15/13. | |
// Copyright (c) 2013 AppJon. All rights reserved. | |
// | |
#import "GridDemoViewController.h" | |
#import "GridCell.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <OpenCL/opencl.h> | |
int main(int argc, char* const argv[]) { | |
cl_uint num_devices, i; | |
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, 0, NULL, &num_devices); | |
cl_device_id* devices = calloc(sizeof(cl_device_id), num_devices); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(associated_types)] | |
extern crate time; | |
fn main() { | |
println!("hello :)"); | |
//println!("{}", time::now()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (sh *Shell) Loop() { | |
sc := bufio.NewScanner(os.Stdin) | |
printPrompt() | |
for sc.Scan() { | |
line := sc.Text() | |
if line == "start" || line == "st" { | |
sh.startStop <- true | |
} else if line == "stop" { | |
sh.startStop <- false | |
} else if line == "exit" { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package stringcase | |
import "testing" | |
func equal(a, b []string) bool { | |
if len(a) != len(b) { | |
return false | |
} | |
for i, v := range a { | |
if v != b[i] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Cyberpunk Colour Theme | |
;; | |
;; "and he'd still see the matrix in his sleep, bright lattices of logic | |
;; unfolding across that colorless void..." | |
;; William Gibson, Neuromancer. | |
;; | |
(require 'color-theme) | |
;;;###autoload |