I hereby claim:
- I am aral on github.
- I am aral (https://keybase.io/aral) on keybase.
- I have a public key whose fingerprint is FB1B E897 B399 F107 780A B004 B89F B743 1702 6216
To claim this, I am signing this object:
// | |
// 1D LED PONG | |
// Copyright (c) 2014 Aral Balkan. Released under the MIT License. | |
// | |
// Inspired by Jason Hotchkiss’s 1D Pong (hat-tip Seb Lee-Delisle) | |
// | |
// Video of working result: https://twitter.com/aral/status/450334281953722369 | |
// | |
// With knowledge gleamed from the Build Brighton Introduction to Arduino Workshop on 29th March, 2014. | |
// http://buildbrighton.com |
cat .ssh/authorized_keys | grep aral@ | sshcommand acl-add dokku aral |
# | |
# Implementation of hash sieve algorithm that I read | |
# about at http://www.shamasis.net/2009/09/fast-algorithm-to-find-unique-items-in-javascript-array/ | |
# in CoffeeScript with slightly more literate code :) | |
# | |
Array.prototype.unique = -> | |
hashSieve = {} | |
arrayOfUniqueValues = []; |
// | |
// MainWindowController.swift | |
// Heartbeat | |
// | |
// Created by Aral Balkan on 07/02/2015. | |
// Copyright (c) 2015 Ind.ie. | |
// Released under the MIT license. | |
// | |
import Cocoa |
let cgContext:CGContextRef = CGBitmapContextCreate(nil, UInt(resolutionForExport.width), UInt(resolutionForExport.height), 8, 4*UInt(resolutionForExport.width), colorSpace, CGBitmapInfo.ByteOrderDefault|CGBitmapInfo(CGImageAlphaInfo.PremultipliedLast.rawValue)) |
let a = NSDictionary(object: NSNumber(bool: true), forKey: "boolKey") | |
let b: AnyObject? = a.objectForKey("boolKey") | |
if let b:AnyObject = b, c:NSNumber = (b as? NSNumber) where c.boolValue == true | |
{ | |
println("It’s true.") | |
} |
I hereby claim:
To claim this, I am signing this object:
// Unfortunately, this has to be a string right now as IBInspectable enums are not supported at the moment. | |
@IBInspectable var alignmentToParentName:String = "top right" | |
{ | |
didSet | |
{ | |
var name = (alignmentToParentName.lowercaseString as NSString) | |
let top = 0b00, bottom = 0b10, right = 0b00, left = 0b01 | |
var bitmask = 0b0 | |
// The default, even if garbage is entered in Interface Builder, is top right. |
Aral testing Gist |
/*$(document).live("orientationchange", function(event) { | |
ResizePageContentHeight($(".ui-page")); | |
});*/ | |
// As per: http://code.google.com/p/jqtouch/issues/detail?id=370 | |
$(window).bind('orientationchange', function(event) { | |
ResizePageContentHeight($(".ui-page")); | |
}).trigger('orientationchange'); |