Skip to content

Instantly share code, notes, and snippets.

View paristote's full-sized avatar

Philippe paristote

  • Backbase
  • Amsterdam
View GitHub Profile

Keybase proof

I hereby claim:

  • I am paristote on github.
  • I am philippebb (https://keybase.io/philippebb) on keybase.
  • I have a public key ASDpFv7QaTvNREybk2JPhl01wakiKJh9b6go47lhqX6bzwo

To claim this, I am signing this object:

8933bad161af4178b1185d1a37fbf41ea5269c55
@paristote
paristote / gradle.md
Created January 25, 2016 16:33
Gradle build snippets

Load a properties file in the build

Properties props = new Properties()
try {
    props.load(file('file.properties').newDataInputStream())
} catch (Exception ex) {
    throw new GradleException("Missing file.properties file.");
}
@paristote
paristote / travis.md
Created January 25, 2016 16:25
Travis yml examples
@paristote
paristote / build_ipa.sh
Created October 7, 2015 04:03
Build and generate an IPA of the specified iOS project
#!/bin/bash
WORKSPACE=""
SCHEME=""
DESTINATION=""
PROV_PROFILE=""
usage(){
echo "Usage: "`basename "$PRG"`" [options]"
echo ""
@paristote
paristote / gist:2966a03af7be9ba20d22
Created April 7, 2015 08:43
Tests the perf of the function to convert a technical name into a natural name
-(void)testPerfOfConversionToNaturalName
{
File * file = [[File alloc] init];
file.name = @".spaces.exo.platform.home.";
NSDate * now = [NSDate date];
double beginTime = now.timeIntervalSince1970;
NSLog(@"Begin at %f", beginTime);
for (int i=0; i<1000000; i++) {
[file convertToNaturalName];
}