Skip to content

Instantly share code, notes, and snippets.

View aliher1911's full-sized avatar
๐Ÿ™€

Oleg aliher1911

๐Ÿ™€
View GitHub Profile
#!/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}"
@aliher1911
aliher1911 / gist:6831682cff9be1d74ea1a478b14e5d50
Created July 6, 2018 17:21 — forked from hay/gist:1351230
Enterprisify your Java Class Names!
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;
@aliher1911
aliher1911 / some-example.m
Last active December 20, 2015 14:09
some example from ru_mac
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]];
}
@aliher1911
aliher1911 / some-example
Created August 2, 2013 22:44
some example from ru_mac
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]];
}