Skip to content

Instantly share code, notes, and snippets.

@rawyler
rawyler / kojo_commands_de.scala
Created February 2, 2024 12:16
kojo_commands_de
:::scala
/**
* Deutsche Übersetzung der gängigsten Kojo Befehle
*/
def vorwärts(distanz: Double) = forward(distanz)
def rückwärts(distanz: Double) = back(distanz)
def nachHause() = home()
def spring(x: Double, y: Double) = jumpTo(x, y)
def setzePosition(x: Double, y: Double) = setPosition(x, y)
def geheZu(x: Double, y: Double) = moveTo(x, y)
@rawyler
rawyler / Iceland.icls
Last active April 30, 2021 09:54
IntelliJ IDEA - Iceland Color Theme - Based on real colors of Icelandic landscapes
<scheme name="Iceland" version="142">
<metaInfo>
<property name="created">2021-04-30T11:50:14</property>
<property name="ide">Idea</property>
<property name="ideVersion">2021.1.0.0</property>
<property name="modified">2021-04-30T11:50:43</property>
<property name="originalScheme">Iceland</property>
</metaInfo>
<colors>
<option name="ANNOTATIONS_COLOR" value="adb6bb" />
@rawyler
rawyler / b64
Created May 28, 2020 11:33
Base64 encode/decode shortcut
#!/bin/bash
ENCODED=$(echo -n $1 | base64)
DECODED=$(echo $1 | base64 --decode 2> /dev/null)
printf "\x1b[33mEncoded:\x1b[0m \x1b[32m$ENCODED\x1b[0m\n"
printf "\x1b[33mDecoded:\x1b[0m \x1b[36m$DECODED\x1b[0m\n"
@rawyler
rawyler / .gitconfig
Last active September 10, 2020 05:34
[alias]
s = status
a = add
ci = commit
co = checkout
b = branch
l = log --pretty=format:'%C(yellow)%h %C(blue)%>(12)%ad %Cgreen%<(7)%aN%C(bold red)%d %Creset%s' --abbrev-commit --decorate --date=relative
g = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(yellow)%h%C(reset) %C(blue)(%ar) %C(green)%an%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold red)%d%C(reset)'
ga = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(yellow)%h%C(reset) %C(blue)(%ar) %C(green)%an%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold red)%d%C(reset)' --all
p = pull
-- {{{ License
--
-- Awesome configuration
--
-- This work is licensed under the Creative Commons Attribution-Share
-- Alike License: http://creativecommons.org/licenses/by-sa/3.0/
-- based off Adrian C. <anrxc@sysphere.org>'s rc.lua and Tony N
-- }}}
@rawyler
rawyler / .bash_color_codes.sh
Last active September 27, 2018 11:31 — forked from daniel-illi/bash_color_codes.sh
Add to .bashrc: . ~/.bash_color_codes . ~/.git_svn_bash_prompt
#!/bin/bash
#
# DESCRIPTION:
#
# Set variables for various bash color codes to use in other bash scripts
#
# USAGE:
#
# 1. Save this file as ~/.bash_color_codes
# 2. Add the following line to your ~/.profile or ~/.bash_profile:
[Desktop Entry]
Encoding=UTF-8
Name=awesome
Comment=Highly configurable framework window manager
NoDisplay=true
TryExec=awesome
Exec=awesome
Type=Application
ctrlp-funky nerdtree vim-airline vim-markdown wildfire.vim
ctrlp.vim powerline vim-easymotion vim-multiple-cursors
JavaScript-Indent syntastic vim-fugitive vim-sbt
neocomplcache.vim tagbar vim-indent-guides vim-scala
nerdcommenter tern_for_vim vim-javascript-syntax vim-signify
----------------------------------
-- "Iceland" awesome theme --
-- By Thomas Rawyler --
-- based on Zenburn by anrxc --
-- and zhongguo by tony --
-- License: GNU GPL v2 --
----------------------------------
-- {{{ Main
terminal = 'urxvt' -- can be app in path, or full path e.g. /usr/bin/xterm
editor = "vim"
editor_cmd = terminal .. " -e " .. editor
wallpaper_dir = os.getenv("HOME") .. "/Pictures/Wallpaper/" -- grabs a random bg
taglist_numbers = "arabic" -- we support arabic (1,2,3...),
-- arabic, chinese, {east|persian}_arabic, roman, thai, random
cpugraph_enable = true -- show CPU graph