Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.
So now, there's a scribe for that :
| /* | |
| This is free and unencumbered software released into the public domain. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. | |
| In jurisdictions that recognize copyright laws, the author or authors | |
| of this software dedicate any and all copyright interest in the |
| package cache | |
| import ( | |
| "container/list" | |
| "sync" | |
| ) | |
| type Cache[K comparable, V any] interface { | |
| Get(key K) V | |
| Put(key K, value V) V |
| class HashMap: | |
| def __init__(self, size): | |
| self.hashmap = [None for i in range(size)] | |
| def insert(self, key, value): | |
| self.resize() | |
| index = self.key_to_index(key) | |
| self.hashmap[index] = (key, value) |
| class HashMap: | |
| def __init__(self, size): | |
| self.hashmap = [None for i in range(size)] | |
| def insert(self, key, value): | |
| self.resize() | |
| index = self.key_to_index(key) | |
| self.hashmap[index] = (key, value) |
| #!/bin/bash | |
| # Colors | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| NO_COLOR='\033[0m' | |
| BLUE='\033[0;34m' | |
| YELLOW='\033[0;33m' | |
| NO_COLOR='\033[0m' |
| # 0 - 6. Always reset the session after these: | |
| defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 6 | |
| defaults -currentHost write -globalDomain NSStatusItemSpacing -int 6 | |
| # Revert to the original values | |
| defaults -currentHost delete -globalDomain NSStatusItemSelectionPadding | |
| defaults -currentHost delete -globalDomain NSStatusItemSpacing |
| package cu.spin.catalog.ui.components | |
| import android.annotation.SuppressLint | |
| import androidx.compose.animation.core.animateFloat | |
| import androidx.compose.animation.core.updateTransition | |
| import androidx.compose.runtime.State | |
| import androidx.compose.ui.Modifier | |
| import androidx.compose.ui.composed | |
| import androidx.compose.ui.draw.drawWithCache | |
| import androidx.compose.ui.geometry.Offset |
Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.
So now, there's a scribe for that :
| @HiltViewModel | |
| class UpdatingViewModel @Inject constructor() : ViewModel() { | |
| val offset = mutableStateOf(Offset(0f, 0f)) | |
| init { | |
| viewModelScope.launch { | |
| while(isActive) { | |
| delay(50) | |
| offset.value = offset.value.copy(x = offset.value.x + 1) |