Skip to content

Instantly share code, notes, and snippets.

View TimCastelijns's full-sized avatar

Tim Castelijns TimCastelijns

  • Coolblue
View GitHub Profile
val input = "738576468625144447399791512378297253634373265751783467175946279546121378242834293189618169557899627432131741924235953478395737293295377433633811848896717272765186249883819531765428979755868345851112699621795332281722937237345586217784447844339183548459152523565186346489117792724495492582778679943653659256137426929947473832129357538589943844655856924123627877977998358791243139547524479653888837328718692164742686623775673734273197676395949914999631559158471612219918329527743987291137131392459448676647943854441741652974349511481982598452443736722523418477261794252595496113697687532518272575476837268453197261445513452359633835537444427352211536223873438316477812937662862149766296545676163179617835359962988766593952189244736121947964648397879839271611979328271773952489738595827372677631815497767554628778987426533968875397718512933492971548638187528627852824769646416229769169815471277558954194526357489726657599645554762553794792797249797933393211516515146274221632732111629137239658561866447571532129812
val input = "738576468625144447399791512378297253634373265751783467175946279546121378242834293189618169557899627432131741924235953478395737293295377433633811848896717272765186249883819531765428979755868345851112699621795332281722937237345586217784447844339183548459152523565186346489117792724495492582778679943653659256137426929947473832129357538589943844655856924123627877977998358791243139547524479653888837328718692164742686623775673734273197676395949914999631559158471612219918329527743987291137131392459448676647943854441741652974349511481982598452443736722523418477261794252595496113697687532518272575476837268453197261445513452359633835537444427352211536223873438316477812937662862149766296545676163179617835359962988766593952189244736121947964648397879839271611979328271773952489738595827372677631815497767554628778987426533968875397718512933492971548638187528627852824769646416229769169815471277558954194526357489726657599645554762553794792797249797933393211516515146274221632732111629137239658561866447571532129812
@TimCastelijns
TimCastelijns / foo.kt
Created November 9, 2018 15:07
onSizeChanged with linear gradient set up
override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {
super.onSizeChanged(w, h, oldw, oldh)
val colors = intArrayOf(
typedArray.getColor(R.styleable.SlickGraph_gradColorStart, defaultColor),
typedArray.getColor(R.styleable.SlickGraph_gradColorEnd, defaultColor)
)
val gradient = LinearGradient(
0f,
Hi Tim,
You are clearly a very strong developer with an abundance of skills in mobile development.
Your profile was actually one that a client of mine used as an example of the exact type
of person they are looking to add to their team.
We wondered if you would be interested in working for the Globally leading Microsoft
Business Solution provider - situated in their Dutch office but having the ability
to work with as much flexibility and freedom as you require - who are actually part
owned by Microsoft.
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/secondaryButtonPressedBorderColor">
<item android:id="@android:id/mask">
<shape android:shape="rectangle">
<corners android:radius="28dp"/>
<stroke android:width="2dp"/>
// Devices
private val uiView: View = LayoutInflater.from(container.context).inflate(R.layout.devices, container, true)
// Menu
private val uiView: View = LayoutInflater.from(container.context).inflate(R.layout.menu, container, true)
// Constraints
private fun layoutUiComponents(rootContainer: ConstraintLayout) {
val constraintSet = ConstraintSet()
constraintSet.clone(rootContainer)
<androidx.constraintlayout.widget.ConstraintLayout
@@ -20,6 +21,7 @@
android:onClick="@{(view) -> cmdHandler.enterEntity(UIStorage.id)}"
android:onLongClick="@{(view) -> cmdHandler.editEntity(UIStorage)}">
<TextView
+ tools:text="Sample storage name"
android:id="@+id/txt_storage_name"
style="@style/wrap_content"
app:layout_constraintTop_toTopOf="parent"
@@ -46,13 +48,14 @@
Faulting application name: qemu-system-x86_64.exe, version: 0.0.0.0, time stamp: 0x5dcec479
Faulting module name: ucrtbase.dll, version: 10.0.18362.1, time stamp: 0x5cbddb81
Exception code: 0xc0000409
Fault offset: 0x000000000006d3be
Faulting process id: 0x964
Faulting application start time: 0x01d5a4a64f21adc5
Faulting application path: C:\Users\Tim\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe
Faulting module path: C:\Windows\System32\ucrtbase.dll
Report Id: ce848883-6cd5-43a1-b3e9-996cf20268eb
Faulting package full name:
Instabug.Builder(this, BuildConfig.INSTABUG_TOKEN).apply {
setInvocationEvents(InstabugInvocationEvent.SCREENSHOT)
setConsoleLogState(Feature.State.ENABLED)
setInstabugLogState(Feature.State.DISABLED)
setReproStepsState(State.DISABLED)
setTrackingUserStepsState(Feature.State.DISABLED)
setUserEventsState(Feature.State.DISABLED)
setViewHierarchyState(Feature.State.DISABLED)
2019-11-29 16:34:00.821 31161-31354/com.xxx D/DecorView: onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@d1ace99[MainActivity]
2019-11-29 16:34:05.866 31161-31260/com.xxx D/IB-ScreenshotGestureInvoker: Screenshot taken: /storage/emulated/0/Pictures/Screenshots/Screenshot_20191129-163401.jpg, invoking SDK
2019-11-29 16:34:05.874 31161-31260/com.xxx D/IB-DiskUtils: Target file path: /storage/emulated/0/Android/data/com.xxx/files/instabug/attachments/screenshot_20191129-163401.jpg
2019-11-29 16:34:05.877 31161-31260/com.xxx V/IB-a: plugin: com.instabug.crash.CrashPlugin@4b5e79d
2019-11-29 16:34:05.877 31161-31260/com.xxx V/IB-a: plugin: com.instabug.survey.SurveyPlugin@e73a412
2019-11-29 16:34:05.877 31161-31260/com.xxx V/IB-a: plugin: com.instabug.chat.ChatPlugin@b2687e3
2019-11-29 16:34:05.877 31161-31260/com.xxx V/IB-a: plugin: com.instabug.bug.BugPlugin@96135e0
2019-11-29 16:34:05.888 31161-31260/com.xxx V/IB-a: plugin: com.instabug.featuresrequest.FeaturesRequestPlugin@80e6099
2019-11-29 16:34:05