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
package com.memtrip; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import android.content.ContentResolver; | |
import android.content.ContentUris; | |
import android.content.ContentValues; | |
import android.graphics.Bitmap; |
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
from xml.etree import ElementTree as ET | |
file = open('pom.xml') | |
# NOTE: edit the pom.xml manually to increase to a major version | |
minor_version_increment = 0.01 | |
ET.register_namespace("", "http://maven.apache.org/POM/4.0.0") | |
tree = ET.ElementTree() | |
tree.parse(file) |
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
import jenkins | |
import time | |
JOB_NAME = 'job_name' | |
URL = 'http://jenkins_url' | |
TIMEOUT = 120 | |
SLEEP = 5 | |
def get_job_info(j): | |
return j.get_job_info(JOB_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
GIT_COMMITTER_NAME="samkirton" GIT_COMMITTER_EMAIL="samkirton@me.com" GIT_COMMITTER_DATE="16 January 2017 at 20:19:10 GMT" git commit --amend --date "16 January 2017 at 20:19:10 GMT" |
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
/Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/BOOT_DISK_NAME --applicationpath /Applications/Install\ macOS\ Sierra.app |
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
android.applicationVariants.all { | |
def aptOutputDir = new File(buildDir, "generated/source/apt/${it.unitTestVariant.dirName}") | |
it.unitTestVariant.addJavaSourceFoldersToModel(aptOutputDir) | |
} |
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
echo y | android update sdk --no-ui --all --filter "extra-android-m2repository" |
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
Podcast.aggregate([ | |
{ | |
$project: { | |
now: new Date() | |
} | |
}, | |
{ | |
$project: { | |
nowDateOnly: { | |
$subtract:[ |
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
#include <eosiolib/crypto.h> | |
checksum256 uniqueId; | |
auto purchaseIdChar = purchaseId.c_str(); | |
sha256((char *)purchaseIdChar, sizeof(purchaseIdChar), &uniqueId); | |
printhex(&uniqueId, sizeof(uniqueId)); |
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
{ | |
"name": "Samuel Kirton", | |
"title": "Senior Android Developer", | |
"description": "Mobile App Developer experienced in developing solutions from requirements to production for leading financial institutions in the UK. I strive to develop simple solutions to complex problems, with meaningful test coverage and responsive user interfaces.", | |
"experience": [ | |
{ | |
"title": "EOS Global Hackathon", | |
"dateRange": "November 2018 - December 2018", | |
"description": "I put together a multidisciplinary team of past colleagues for the EOS Global hackathon in London, we developed a PPI passport Android app, which came in 3rd place out of 90 teams. I developed eos-jvm, an SDK for interacting with the EOS blockchain and the EOS REACH wallet as necessary groundwork for the competition. In December we joined the top 3 teams from the; Hong Kong, Sydney and San Francisco hackathons for an incubator week and pitch competition in Cape Town, South Africa.", | |
"links": [ |