Skip to content

Instantly share code, notes, and snippets.

View kukagg's full-sized avatar
💭
one more thing…

gg kukagg

💭
one more thing…
View GitHub Profile

Keybase proof

I hereby claim:

  • I am kuka on github.
  • I am kuanysh (https://keybase.io/kuanysh) on keybase.
  • I have a public key ASDhCD9zmcRw6ojmIM75_aCSObtwahZmfC4hHCJKM9dElQo

To claim this, I am signing this object:

@kukagg
kukagg / normalizeCase.ts
Created February 22, 2019 16:03
Typescript: normalizes string case
export const normalizeCase = (str: string) =>
str
.replace(/\b(?:[a-zA-Z]\.){2,}/, a => a.toUpperCase())
.replace(/(?!\b(?:[a-zA-Z]\.){2,})/, a => a.toLowerCase())
.replace(/(\w*[a-z0-9_]+\w*)/g, a => a.toLowerCase())
@kukagg
kukagg / autocadcolors.js
Last active June 29, 2022 16:48
AutoCAD colors index with HEX and RGB equivalents. https://github.com/kuka/autocad-colors-index
// AutoCAD 0-255 colors mapped with equivalents in HEX and RGB
// source: http://sub-atomic.com/~moses/acadcolors.html
export default [{
"aci": 0,
"hex": "#000000",
"rgb": "rgb(0,0,0)"
}, {
"aci": 1,
"hex": "#FF0000",
#!/usr/bin/env bash
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz
mkdir vim && tar xzvf vim.tar.gz -C vim
export PATH=$PATH:/app/vim/bin
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
@kukagg
kukagg / gist:e9973c53e6323dbeef7b
Created September 13, 2014 10:38
Pretty git log
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
– git lg
– git lg -p – with changes