View main.py
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 pyperclip | |
import time | |
import re | |
reg = re.compile("\"[A-Za-z0-9:-]+\"") | |
while True: | |
inp = pyperclip.paste() | |
t = reg.findall(inp) |
View jpSearch.sh
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
#!/usr/bin/env bash | |
PROGNAME="$(basename "$0")" | |
usage() { | |
echo "$PROGNAME: usage: $PROGNAME name" >&2 | |
exit 1 | |
} | |
results_open() { |
View resume.json
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
{ | |
"meta": { "theme": "flat" }, | |
"basics": { | |
"name": "Andrew Reitz", | |
"label": "Android Developer", | |
"picture": "", | |
"email": "andrew@andrewreitz.com", | |
"website": "http://andrewreitz.com", | |
"summary": "Passionate Android Developer.", | |
"location": { |
View jvm-args-abi.scenarios
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
default-scenarios = [ | |
"abi-assemble-default", | |
"abi-assemble-2gb", | |
"abi-assemble-4gb", | |
"abi-assemble-6gb", | |
"abi-assemble-8gb" | |
] | |
abi-assemble-default { | |
tasks = ["assembleDebug"] |
View profiler.scenarios
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
config { | |
tasks = ["help"] | |
} | |
cleanAssemble { | |
tasks = ["assemble"] | |
cleanup-tasks = ["clean", "cleanBuildCache"] | |
} | |
abiAssemble { |
View build.gradle
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
dependencies { | |
implementation("com.jakewharton.rxbinding2:rxbinding:2.2.0") | |
implementation("com.jakewharton:process-phoenix:2.0.0") | |
implementation("com.jakewharton.timber:timber:4.7.1") | |
implementation("com.jakewharton.byteunits:byteunits:0.9.1") | |
debugImplementation("com.readystatesoftware.chuck:library:1.1.0") | |
releaseImplementation("com.readystatesoftware.chuck:library-no-op:1.1.0") | |
buildFlavorOneImplementation("com.squareup.leakcanary:leakcanary-android:1.6.3") |
View settings.gradle.kts
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( | |
"raytracer-core", | |
"raytracer-math", | |
"raytracer-console", | |
"raytracer-parsing" | |
) | |
rootProject.name = "kotlin-raytracer" | |
rootProject.children.forEach { |
View LazySetters.kt
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
fun <T: Any> lazy(initializer: () -> T): LazySetter<T> = LazySetter(initializer) | |
class LazySetter<T: Any>(private val initializer: () -> T) { | |
private var _value: T? = null | |
var value: T | |
get() = _value ?: initializer() | |
set(value) { _value = value } | |
} | |
inline operator fun <reified T: Any> LazySetter<T>.setValue(thisRef: Any?, property: KProperty<*>, value: T) { |
View serialVersionTest.kts
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 | |
//usr/bin/env echo ' | |
/**** BOOTSTRAP kscript ****\'>/dev/null | |
command -v kscript >/dev/null 2>&1 || curl -L "https://git.io/fpF1K" | bash 1>&2 | |
exec kscript $0 "$@" | |
\*** IMPORTANT: Any code including imports and annotations must come after this line ***/ | |
import java.io.File | |
import java.util.concurrent.TimeUnit |
View app.js
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
const noble = require('noble'); | |
noble.on('stateChange', state => { | |
if (state === 'poweredOn') { | |
noble.startScanning(['1816']); | |
} else { | |
noble.stopScanning(); | |
} | |
}); |
NewerOlder