Skip to content

Instantly share code, notes, and snippets.

View c5inco's full-sized avatar

Chris Sinco c5inco

View GitHub Profile
@c5inco
c5inco / launch.json
Last active February 14, 2016 19:09
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/bot.js",
"stopOnEntry": false,
"args": [],
#!/bin/sh
if [ $# -gt 0 ]
then
defaults write com.apple.finder CreateDesktop $@
killall Finder
else
echo 'Error: Missing boolean'
fi
find . -type f | cut -c 3- > list.csv
@c5inco
c5inco / useful-git-commands.sh
Created November 14, 2019 22:58
Useful git commands
# Fix .gitigore if added late
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@c5inco
c5inco / git-setup.config
Last active November 3, 2020 05:37
Some aliases for Git
[alias]
st = status
co = checkout
b = branch
a = add .
can = commit --amend --no-edit
hist = log --graph --pretty=format:'%Cred%h%Creset |%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
rh = reset --hard
cp = cherry-pick
cln = clean -xfd
@c5inco
c5inco / .zshrc
Last active February 21, 2021 06:42
# enable the default zsh completions!
autoload -Uz compinit && compinit
# Aliases
alias zshrc='code ~/.zshrc'
alias gitconfig='code ~/.gitconfig'
alias ..='cd ..'
alias ...='cd ../..'
alias ls='ls -GFh'
alias ll='ls -alh'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import android.graphics.Matrix
import android.graphics.RectF
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
@c5inco
c5inco / WearPreviewUtility.kt
Last active February 22, 2022 16:24
Small utility for framing a Compose Wear app in a watch bezel, whether round, square, or rectangular.
import android.content.res.Configuration
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.Alignment
package des.c5inco.experiments
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Email
import androidx.compose.material.icons.filled.KeyboardArrowRight