- A complete beginner's guide to blockchain technology
- The Great Chain of Being Sure About Things
- Mastering Bitcoin - Unlocking digital currencies - Early Release Draft
- Melanie Swan, Blockchain expert, introduces and discusses Blockchains
- Andreas Antonopoulos, Bitcoin expert, introduces and discusses Bitcoin
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
//You probably won't be able to use "self" in OF, | |
//so I'll let you figure out how to obtain the device's | |
//the width and height from OF | |
float screenWidth = self.view.frame.size.width; | |
float screenHeight = self.view.frame.size.height; | |
UIView *translucentShit = [[UIView alloc] initWithFrame:CGRectMake(0, 0, screenWidth, screenHeight)]; | |
[translucentShit setBackgroundColor:[UIColor blackColor]]; |
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
// | |
// Recorder.h | |
// | |
// Created by Ariel Elkin on 14/05/2012. | |
// | |
#import <Foundation/Foundation.h> | |
#import <AVFoundation/AVFoundation.h> | |
@interface NarrationManager : NSObject |
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
-(void)unzipEmbeddedPack{ | |
NSString *embeddedPackPath = [NSString stringWithFormat:@"%@/packName.zip", [[NSBundle mainBundle] resourcePath]]; | |
ZipArchive *za = [[ZipArchive alloc] init]; | |
[za UnzipOpenFile:embeddedPackPath Password:@"abf26a4849e5d97882fcdce5757ae6028281192a"]; | |
//make sure to unzip to tune packs on disk | |
NSError *deleteError = nil; | |
[[NSFileManager defaultManager] removeItemAtPath:embeddedPackPath error:&deleteError]; | |
if(deleteError != nil) NSLog(@"error deleting: %@", deleteError); |
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
-(void)perform{ | |
UIViewController *splashScreen = self.sourceViewController; | |
UIViewController *mainScreen = self.destinationViewController; | |
[splashScreen.view addSubview:mainScreen.view]; | |
mainScreen.view.center = CGPointMake(mainScreen.view.center.x, mainScreen.view.center.y-600); | |
[UIView animateWithDuration: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
float radius = 300; | |
CAShapeLayer *donut = [CAShapeLayer layer]; | |
donut.bounds = CGRectMake(0,0,radius, radius); | |
donut.cornerRadius = radius/2; | |
donut.borderWidth = 2; | |
donut.borderColor = [UIColor redColor].CGColor; | |
[self.layer addSublayer:donut]; | |
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
//NOTE: | |
//THIS GIST IS PART OF A LARGER iOS MUSIC APP DEVELOPMENT TUTORIAL, WHICH I'LL POST SHORTLY. | |
//Follow http://twitter.com/arivocals for updates | |
/*************************** | |
DOWNLOAD LINKS FOR LIBRARIES: | |
STK: | |
http://momu.stanford.edu/stk/release/momu-stk-1.0.0.tgz |
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
-(void)createVenuesDict:(NSArray *)allVenues{ | |
venuesDict = [NSMutableDictionary dictionary]; | |
//Only get the venues' names and categories | |
for(NSDictionary *singleVenue in allVenues){ | |
NSArray *categories = [singleVenue valueForKey:@"categories"]; | |
if(categories){ | |
[self.venuesDict setValue:[categories valueForKey:@"name"][0] forKey:[singleVenue valueForKey:@"name"]]; | |
} |
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
# Compile nginx standalone without root access | |
mkdir ~/installed | |
mkdir ~/installed/nginx | |
mkdir ~/src | |
cd ~/src | |
wasup wasup | |
# Grab nginx | |
wget http://sysoev.ru/nginx/nginx-0.7.50.tar.gz |
OlderNewer