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
package co.sveinung.utils; | |
import com.google.gson.FieldNamingStrategy; | |
import java.lang.reflect.Field; | |
import java.util.regex.Pattern; | |
/** | |
* Created by sveinung on 21.02.15. | |
*/ |
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
#!/bin/sh | |
# Use this script to create markdowned release notes based on a previous point in git history, e.g. for HockeyApp uploads from Jenkins/Team City | |
# Store current reference with git log --pretty=format:'%H' -n 1 > git-reference and pass as first parameter to this script | |
# Usage: record-history <git sha in the past> | |
PREVIOUS=$1 | |
CURRENT=$(git log --pretty=format:'%H' -n 1) | |
JIRA_BASE='https:\/\/your.jira.com\/browse\/' |
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
/* | |
* Copyright (C) 2006 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
# By Sveinung Kval Bakken @ iHeartRadio | |
# http://tech.iheart.com | |
# | |
# This script will parse any HP Unified Functional Testing reports and generate ANT JUnit XML reports | |
# for use with Team City / Jenkins | |
import sys | |
from xml.dom import minidom | |
from xml.dom.minidom import Document, Element |
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
import fileinput | |
import sys | |
import re | |
valuePair = sys.argv[1] | |
name = valuePair.split("=")[0] | |
valuePattern = valuePair.split("=")[1] | |
if not (name and valuePattern): | |
print("Call like this 'echo \"Lorem ipsum doler sit\" | python tc-grep-set-parameter.py 'jibberish=(ipsum)'") |
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
#!/bin/sh | |
PREFIX="Screenshot-$(date +%Y%m%d-%H%M%S)" | |
BASE="/sdcard/$PREFIX" | |
DELAY=300 | |
trap ctrl_c INT | |
function clean_up() { | |
rm -f $PREFIX*.png |
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
/* | |
* Copyright (C) 2011 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
/* | |
* Copyright (C) 2012 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
import requests | |
import re | |
import os | |
import datetime | |
OAUTH_TOKEN = 'YOUR-TOKEN | |
ORGANIZATION = "org" | |
REPOS = ["repo1", "repo2"] | |
# Uncomment to get all repos for org | |
# REPOS = [] |
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
import android.app.Activity; | |
import android.app.Application; | |
import android.app.KeyguardManager; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.pm.PackageManager; | |
import android.net.Uri; | |
import android.os.Build; | |
import android.os.Bundle; | |
import android.os.PowerManager; |
OlderNewer