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 UIKit | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
let window = UIWindow(frame: UIScreen.main.bounds) |
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 openjdk:8-jdk | |
ENV ANDROID_TOOLS_ZIP https://dl.google.com/android/repository/tools_r25.2.3-linux.zip | |
ENV ANDROID_HOME /opt/android-sdk-linux | |
ENV PATH $PATH:$ANDROID_HOME/tools | |
ENV PATH $PATH:$ANDROID_HOME/tools/bin | |
ENV PATH $PATH:$ANDROID_HOME/platform-tools | |
# install base tools |
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
# LAN-Adapter -> Gigabit Switch -> 25m cable -> Gigabit Switch -> Server | |
[ ID] Interval Transfer Bandwidth | |
[ 5] 0.0-10.0 sec 1.09 GBytes 940 Mbits/sec | |
# WLAN -> FritzBox 7170 (802.11g) -> Gigabit Switch -> 25m cable -> Gigabit Switch -> Server | |
[ ID] Interval Transfer Bandwidth | |
[ 5] 0.0-10.0 sec 15.8 MBytes 13.2 Mbits/sec | |
# WLAN -> FritzBox 7490 #2 (802.11n) -> 25m cable -> FritzBox 7490 #1 -> cable -> Server | |
[ ID] Interval Transfer Bandwidth |
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
<snippet> | |
<content> | |
<![CDATA[Bavaria ipsum dolor sit amet Namidog de Sonn spernzaln, Steckerleis. A bissal luja de nimma is ma Wuascht hob Goaßmaß mechad dringma aweng, Vergeltsgott Stubn. Hemad Wurscht Schdarmbeaga See muass gscheckate oba back mas Kneedl Gaudi: Weida wos Brotzeit Lewakaas, Leonhardifahrt nackata da, hog di hi dringma aweng i mechad dee Schwoanshaxn. A Maß und no a Maß auszutzeln Griasnoggalsubbm, Graudwiggal gwiss. Kummd auf’d Schellnsau singd Brotzeit, umananda resch? Wolln an nix Brodzeid middn!]]> | |
</content> | |
<tabTrigger>bavariaipsum</tabTrigger> | |
<description>Bavaria Ipsum snippet</description> | |
</snippet> |
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
# !/bin/bash | |
# Functions used in the script | |
# ------------------------------------------------------------------------------ | |
# Function to print usage report to stderr | |
function print_usage { | |
cat - >&2 <<UsageDelimiter |
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
private int getOffScreenLimitForDevice() { | |
ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE); | |
int memoryClass = am.getMemoryClass(); | |
Log.v(LOG_TAG, "memoryClass:" + Integer.toString(memoryClass)); | |
/* | |
HTC Desire: 32 | |
Galaxy S2: 48 | |
*/ | |
if (memoryClass <= 48) { |
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
#!/bin/bash | |
# Switches density and resolution of connected Android Device | |
# Set path to adb here, if adb is in path only write adb | |
ADB='/usr/local/android-bin/adb' | |
MDPI_DENSITY="160" | |
MDPI_RES="320x480" | |
HDPI_DENSITY="240" |
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 config --global url.https://.insteadOf git:// |