Skip to content

Instantly share code, notes, and snippets.

@thabz
thabz / index.html
Created October 8, 2020 12:04
vYKYqVr
<div class="container">
<div class="cells">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>1</div>

Keybase proof

I hereby claim:

  • I am thabz on github.
  • I am thabz (https://keybase.io/thabz) on keybase.
  • I have a public key whose fingerprint is 112E 6717 5120 0581 04CB 1848 DDD7 44A2 E648 4F87

To claim this, I am signing this object:

/* [UIColor colorWithHex:0xFF0000]; */
#import <UIKit/UIKit.h>
@interface UIColor (Hex)
+(UIColor*) colorWithHex:(int)hex;
@end
@thabz
thabz / UIColor+Blending.h
Last active December 15, 2015 15:09
A category on UIColor for blending
#import <UIKit/UIKit.h>
@interface UIColor (Blending)
-(UIColor*)colorBlendedWithWhite:(CGFloat)amount;
-(UIColor*)colorBlendedWithBlack:(CGFloat)amount;
-(UIColor*)colorBlendedWithColor:(UIColor*)color amount:(CGFloat)amount;
@end
@thabz
thabz / gist:4201713
Created December 4, 2012 08:03
Fixing Mac OS X not letting the idle display sleep
pmset -g assertions | grep PreventUserIdleDisplaySleep
# followed by
sudo killall -HUP powerd