This file contains hidden or 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
#!/usr/bin/env bash | |
set -euo pipefail | |
# NB: invoke this script with "caffeinate" on OSX and/or linux to | |
# prevent runs failing due to standby. | |
run=${1-none} | |
sha=$(git rev-parse --short HEAD) | |
abase="artifacts/${sha}" |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<title></title> | |
<style> | |
body { | |
background: white; | |
text-align: center; | |
padding: 20px; | |
font-family: Georgia, serif; |
This file contains hidden or 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
NSMutableArray *storeArray = [[NSMutableArray alloc] init]; | |
BOOL ifRepeated = NO; | |
int x; | |
for (int i=0; [storeArray count] < 10; i++) | |
{ | |
x = arc4random_uniform(10); | |
if(i==0)//for first time | |
{ | |
[storeArray addObject:[NSNumber numberWithInt:x]]; | |
} |
This file contains hidden or 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
NSMutableArray *storeArray = [[NSMutableArray alloc] init]; | |
BOOL ifRepeated = NO; | |
int x; | |
for (int i=0; [storeArray count] < 10; i++) | |
{ | |
x = arc4random_uniform(10); | |
if(i==0)//for first time | |
{ | |
[storeArray addObject:[NSNumber numberWithInt:x]]; | |
} |