Skip to content

Instantly share code, notes, and snippets.

Antanas Domarkas curonian

Block or report user

Report or block curonian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
curonian /
Created Sep 7, 2018 — forked from klaaspieter/
Acronyms Seriously Suck - Elon Musk

From time to time, Musk will send out an e-mail to the entire company to enforce a new policy or let them know about something that's bothering him. One of the more famous e-mails arrived in May 2010 with the subject line: Acronyms Seriously Suck:

There is a creeping tendency to use made up acronyms at SpaceX. Excessive use of made up acronyms is a significant impediment to communication and keeping communication good as we grow is incredibly important. Individually, a few acronyms here and there may not seem so bad, but if a thousand people are making these up, over time the result will be a huge glossary that we have to issue to new employees. No one can actually remember all these acronyms and people don't want to seem dumb in a meeting, so they just sit there in ignorance. This is particularly tough on new employees.

That needs to stop immediately or I will take drastic action - I have given enough warning over the years. Unless an acronym is approved by me, it should not enter the SpaceX glossary.

curonian / validate_email.m
Created Mar 27, 2018
Validate email on iOS
View validate_email.m
@import Foundation
BOOL isValidEmail(NSString *email)
if (!email.length) {
return NO;
NSRange emailRange = NSMakeRange(0, email.length);
NSDataDetector *detector = [NSDataDetector dataDetectorWithTypes:NSTextCheckingTypeLink error:nil];
curonian / Archive.lua
Created Feb 25, 2018
Fusion Archive script
View Archive.lua
-- Archive Composition, Revision: 2.1
-- composition script
-- This script scans every loader and saver for clips, then copies those clips to
-- a specified destination. Fonts used in Text tools are also included. Size is
-- precalculated so that you can be certain
-- enough space exists for the composition and footage at the destination before
-- proceeding.
curonian / runtimeInfo.m
Created Dec 2, 2015
Objective-C runtime description
View runtimeInfo.m
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
NSArray *BNRHierarchyForClass(Class cls)
NSMutableArray *classHierarchy = [NSMutableArray array];
for (Class c = cls; c != Nil; c = class_getSuperclass(c)) {
NSString *className = NSStringFromClass(c);
[classHierarchy insertObject:className atIndex:0];
curonian / serialEncoding.m
Last active Dec 2, 2015
Encoding example. Taken from BNR "Objective-C Programming" challenge.
View serialEncoding.m
#import <Foundation/Foundation.h>
void printBits(size_t const size, void const * const ptr)
unsigned char *b = (unsigned char*) ptr;
unsigned char byte;
int i, j;
for (i=size-1;i>=0;i--)
curonian / gist:1b96b50950c820ec01a4
Last active Aug 29, 2015
Xcode script to increase build number on build
View gist:1b96b50950c820ec01a4
# In build settings set CURRENT_PROJECT_VERSION to integer
# VERSIONING_SYSTEM set to Apple Generic
# Add build step with Editor -->Add build phase -->Add run script build phase
# Add this as a script
agvtool next-version -all
curonian / .clang-format
Last active Aug 29, 2015
Clang-formatting script to be used in project directory
View .clang-format
# BasedOnStyle: WebKit
AccessModifierOffset: -4
AlignEscapedNewlinesLeft: false
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: false
AlwaysBreakBeforeMultilineStrings: false
curonian / .gitignore
Last active Jun 26, 2016 — forked from adamgit/.gitignore
.gitignore file for Xcode4/5
View .gitignore
### OS X
### Xcode
curonian / gist:6432657
Created Sep 4, 2013
Comment sections supported by xcode
View gist:6432657
// MARK: smth
// TODO: smth
// FIXME: smth
// !!!: smth
// ???: smth
You can’t perform that action at this time.