float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
return mix(rand(fl), rand(fl + 1.0), fc);
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$(id -u)" != "0" ]; then | |
echo "Sorry, you are not root." | |
exit 1 | |
fi | |
# content of /usr/share/X11/xkb/symbols/ice-blaze_keyboard | |
/bin/cat <<EOM >"/usr/share/X11/xkb/symbols/ice-blaze_keyboard" | |
default partial alphanumeric_keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g_LastCtrlKeyDownTime := 0 | |
g_AbortSendEsc := false | |
g_ControlRepeatDetected := false | |
*CapsLock:: | |
if (g_ControlRepeatDetected) | |
{ | |
return | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IFS=$'\n'; set -f | |
for filepath in $(find ./ -name '*.avi' -or -name '*.mp4' -or -name '*.wmv'); do | |
if [[ $filepath == *".ignore"* ]]; then | |
continue | |
fi | |
dir=$(dirname $filepath) | |
base=$(basename $filepath) | |
encodeFolder="$dir/encode/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun dotspacemacs/user-config () | |
;; tab size in space | |
;; (setq-default indent-tabs-mode t) | |
(setq tab_size 2) | |
(setq-default js2-basic-offset tab_size | |
js-indent-level tab_size) | |
(setq web-mode-markup-indent-offset tab_size) | |
(setq web-mode-code-indent-offset tab_size) | |
(setq c-basic-offset tab_size) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
I1FS=$'\n\t' | |
mkdir -p /tmp/adodefont | |
cd /tmp/adodefont | |
wget -q --show-progress -O source-code-pro.zip https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip | |
unzip -q source-code-pro.zip -d source-code-pro | |
mkdir -p ~/.fonts | |
cp -v source-code-pro/*/OTF/*.otf ~/.fonts/ | |
fc-cache -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudo add-apt-repository ppa:ubuntu-x-swat/updates | |
sudo apt install cmake | |
sudo apt install python-minimal | |
sudo apt install libx11-devf | |
sudo apt-get install libpng-dev | |
sudo apt install mesa-vulkan-drivers |
- Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set hlsearch | |
set cursorline | |
syntax on | |
hi CursorLine cterm=NONE ctermbg=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KBD iceblaze "US ice-blaze with french accents" | |
COPYRIGHT "(c) 2018 Company" | |
COMPANY "Company" | |
LOCALENAME "en-US" | |
LOCALEID "00000409" |