- Add the API key to your
local.propertiesfile:
apiKey=<value>- Add to the root level of your app-level
build.gradlefile:
| typealias LogElement = Triple<String, Int, String?> | |
| object LogController { | |
| private var flush = BehaviorSubject.create<Long>() | |
| private var flushCompleted = BehaviorSubject.create<Long>() | |
| private var LOG_LEVELS = arrayOf("", "", "VERBOSE", | |
| "DEBUG", | |
| "INFO", |
| # Instructions for 4.14 and cuda 9.1 | |
| # If upgrading from 4.13 and cuda 9.0 | |
| $ sudo apt-get purge --auto-remove libcud* | |
| $ sudo apt-get purge --auto-remove cuda* | |
| $ sudo apt-get purge --auto-remove nvidia* | |
| # also remove the container directory direcotory at /usr/local/cuda-9.0/ | |
| # Important libs required with 4.14.x with Cuda 9.X | |
| $ sudo apt install libelf1 libelf-dev |
| echo Converting $1 | |
| mkdir -p res/drawable-mdpi | |
| mkdir -p res/drawable-hdpi | |
| mkdir -p res/drawable-xhdpi | |
| mkdir -p res/drawable-xxhdpi | |
| m=48 | |
| h=72 | |
| x=96 |
Update: For those interested, here's the version for updating from Android 5.1.0 (LMY47D/LMY47I) to Android 5.1.1 (LMY48B):
https://gist.github.com/eyecatchup/dab5cf7977008e504213
UPDATE `NEXUS 5`
SET `VERSION`='5.0.1', `BUILD`='LRX22C', `RECOVERY`='CUSTOM', `ROOTED`=1
WHERE `VERSION`='5.0' && `BUILD`='LRX21O' && `RECOVERY`='CUSTOM' && `ROOTED`=1
&& `WANNA_KEEP_USERDATA`=1;| /* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
| This file remaps the key bindings of a single user on Mac OS X 10.5 to more closely | |
| match default behavior on Windows systems. | |
| You must log out and back in to see these changes. | |
| Here is a rough cheatsheet for syntax. | |
| Key Modifiers | |
| ^ : Ctrl | |
| $ : Shift |
| #!/bin/bash | |
| TOKEN="Get token from https://cloud.digitalocean.com/settings/applications" | |
| DOMAIN=example.com | |
| RECORD_ID=12345 | |
| IP=`curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'` | |
| # to get record id: | |
| # curl -X GET -H 'Content-Type: application/json' -H "Authorization: Bearer $TOKEN" "https://api.digitalocean.com/v2/domains/$DOMAIN/records" |
| /* GraphicGlDemoActivity.java | |
| * Author: Yong Bakos | |
| * Since: 11/26/2012 | |
| * Thanks to: | |
| * Cube: http://intransitione.com/blog/create-a-spinning-cube-with-opengl-es-and-android/ | |
| * OpenGL Boilerplate: http://www.jayway.com/2009/12/03/opengl-es-tutorial-for-android-part-i/ | |
| */ | |
| package com.humanoriented.sudoku; | |
| import java.nio.ByteBuffer; |
| REM Replaces notepad.exe with notepad++. Here for reference since I can never find it | |
| REM Taken from here: http://blogs.itramblings.com/post/2009/02/08/How-to-replace-notepadexe-on-Windows-Server-2008.aspx | |
| @echo off | |
| echo Create Backup copies of the original notepad.exe | |
| copy C:\Windows\notepad.exe C:\Windows\notepad32.exe | |
| copy C:\Windows\System32\notepad.exe C:\Windows\System32\notepad32.exe | |
| copy C:\Windows\SysWOW64\notepad.exe C:\Windows\SysWOW64\notepad32.exe | |