Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@amitkeret
amitkeret / Toggle_.dot_notation.sh
Created December 29, 2018 09:48
Nautilus script - Toggle .dot notation
for file in $NAUTILUS_SCRIPT_SELECTED_URIS; do
file_name=$(echo $file | sed -e 's/file:\/\///g' -e 's/\%20/\ /g' -e 's/.*\///g')
file_folder=$(echo $file | sed -e 's/file:\/\///g' -e 's/\%20/\ /g' -e "s/$file_name//g")
case "$file_name" in
.*)
new_file_name=$(echo $file_name | sed -e 's/\.//')
;;
*)
new_file_name=".$file_name"
@amitkeret
amitkeret / app.coffee
Last active May 6, 2018 13:16
radiology slices scroller app
q = (q)-> document.querySelector q
qa = (q)-> document.querySelectorAll q
createImgTag = (url) ->
img = document.createElement 'img'
img.src = url
q '#slices-container'
.appendChild img
imgIndex = 0
// https://codepen.io/anon/pen/MQKZWq
#loader-wrapper: #loader
@amitkeret
amitkeret / loader-etg.pug
Last active February 3, 2018 06:49
eTG-inspired loader, pure HTML (pug) + CSS (stylus)
#etg-loader: .loader
each i in [0,1,2,3]
div
@amitkeret
amitkeret / .gitconfig
Last active December 16, 2015 05:59
Master .gitconfig file
[user]
name = Name Here
email = [email protected]
[gitweb]
owner = Name Here
[core]
editor = nano
whitespace = cr-at-eol
eol = lf
autocrlf = input