Skip to content

Instantly share code, notes, and snippets.

View digitalfun's full-sized avatar

Florian Schmid @github digitalfun

  • Switzerland
View GitHub Profile
@digitalfun
digitalfun / ronj-autohotkey.ahk
Created May 13, 2012 14:45 — forked from ronjouch/ronj-autohotkey.ahk
Collection of AutoHotkey scripts I use
; Variables definition
; -----------------------------------------------------------------------------
EnvGet, userProfile, USERPROFILE
Software := userProfile . "\Dropbox\software\"
; Launch or toggle program, http://lifehacker.com/5468862/create-a-shortcut-key-for-restoring-a-specific-window
; -----------------------------------------------------------------------------
ToggleWinMinimize(WindowTitle)
{
SetTitleMatchMode,2
@digitalfun
digitalfun / [iMacros] preview markdown clipboard content - joncom.iim
Last active August 29, 2015 14:06
[iMacros] Preview markdown text from the clipboard inside an online-editor.
VERSION BUILD=8820413 RECORDER=FX
'open a new tab
TAB OPEN
TAB T=2
'goto online-editor and paste markdown from clipboard
URL GOTO=http://joncom.be/experiments/markdown-editor/edit/
TAG POS=1 TYPE=TEXTAREA ATTR=TXT:Start<SP>typing<SP>in<SP>the<SP>blue<SP>box... CONTENT={{!CLIPBOARD}}
@digitalfun
digitalfun / [BATCH] Using SwissFileKnife to remove duplicate files
Created September 29, 2014 13:42
Lists/Deletes all duplicates in the active directory using command line tool "SwissFileKnife" from Stahlworks.
@ECHO OFF
REM Lists/Deletes all duplicates in the active directory.
REM Uses: sfk.exe | SwissFileKnife | http://stahlworks.com/dev/swiss-file-knife.html
REM Configuration ++++++++++++++++++++
SET FILE_EXT=txt
SET SEARCH_PATH=.
REM ----------------------------------
ECHO.
@echo off
sfk echo -spat "<html><body><pre>\n" >sfkhelp.html
sfk -html >>sfkhelp.html
sfk echo " " >>sfkhelp.html
call sub-make-html.bat filefind
call sub-make-html.bat alias
call sub-make-html.bat bin-to-src
call sub-make-html.bat color
call sub-make-html.bat crlf-to-lf
call sub-make-html.bat deblank
@digitalfun
digitalfun / [iMacros] Preview markdown text from clipboard using online editor | jrmoran.iim
Last active October 25, 2016 09:57
Preview markdown text from clipboard using online editor - jrmoran
VERSION BUILD=8820413 RECORDER=FX
'open a new tab
TAB OPEN
TAB T=2
'goto online-editor, clear input and paste markdown from clipboard
URL GOTO=http://jrmoran.com/playground/markdown-live-editor/
TAG POS=1 TYPE=BUTTON ATTR=ID:clear
TAG POS=1 TYPE=TEXTAREA ATTR=ID:wmd-input CONTENT={{!CLIPBOARD}}
@digitalfun
digitalfun / [AHK] Hide Desktop icons | hideDesktopIcons.ahk
Last active October 25, 2016 10:06
Toggle (hide/show) desktop icons using a hotkey.
/* ahk script
+ source: <http://thegeekdaily.com/how-to-create-hotkey-to-showhide-desktop-icons-using-ahk-script/>
Do you have too many icons on your Desktop?
You always think of cleaning it up but they’re just TOO many filled all over your desktop.
So what would you do? Clean them by sorting out the most used
or just press a simple shortcut key (or Hotkey technically) to hide them when not needed
and again press the same hotkey to show them up.
Obviously, the second one (the lazy man’s hack). Right?
@digitalfun
digitalfun / js_module_template.js
Last active October 5, 2016 08:18
[js] Javascript Module Template
//create namespace if not existing
var testProject = testProject || {};
//create a "module" inside the namespace
// this is a so called "power constructor"
testProject.module = (function () {
'use strict';
var that = {}; //create new base object or for inheritance use a "power constructor" or create a new object from a class to set the parent.
var privateElement = 10;
@digitalfun
digitalfun / [nppExec script] npp startup
Created March 30, 2016 19:23
Notepad++ startup script using nppExec plugin.
// add our binaries path
env_set path = $(SYS.PATH);D:\Tools;
@digitalfun
digitalfun / [NppExec script] yaml2json
Created March 30, 2016 19:25
Notepad++: Convert open file from YAML to JSON and opens the json file. Using NppExec Plugin.
cd $(CURRENT_DIRECTORY)
yaml2json.exe "$(FILE_NAME)"
//python yaml2json.py "$(FILE_NAME)"
npp_open "$(NAME_PART).json"
@digitalfun
digitalfun / [NppExec script] yamllint
Created March 30, 2016 19:26
Notepad++: lint a yaml file. Using NppExec plugin.
yamllint -f parsable "$(FULL_CURRENT_PATH)"