d3js Multiline chart with brushing and mouseover
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
#!/usr/bin/env python | |
""" | |
- read subprocess output without threads using Tkinter | |
- show the output in the GUI | |
- stop subprocess on a button press | |
""" | |
import logging | |
import os | |
import sys | |
from subprocess import Popen, PIPE, STDOUT |
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
#!/usr/bin/env bash | |
PS4='+(${BASH_SOURCE:-}:${LINENO:-}): ${FUNCNAME[0]:+${FUNCNAME[0]:-}(): }' | |
# script path name | |
declare -r SCRIPT_PN="${0%/*}" | |
# script filename | |
declare -r SCRIPT_FN="${0##*/}" | |
declare -r APP_PN="${SCRIPT_PN/%\/${SCRIPT_FN}.app\/Contents\/MacOS/}" | |
declare -r APP_MACOS_PN="${APP_PN}/${SCRIPT_FN}.app/Contents/MacOS" | |
declare -r APP_RESOURCES_PN="${APP_PN}/${SCRIPT_FN}.app/Contents/Resources" |
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
#!/usr/bin/env bash | |
PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' | |
### customize parameters here | |
# show debug messages | |
Debug=${1:-false} | |
# the languages for the user templates | |
declare -a UserTemplateLanguageArray | |
UserTemplateLanguageArray[${#UserTemplateLanguageArray[@]}]="English.lproj" | |
UserTemplateLanguageArray[${#UserTemplateLanguageArray[@]}]="German.lproj" |
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
#!/usr/bin/python | |
import AppKit | |
import Foundation | |
def notify(title, subtitle, info_text, sound=False, appImage=None, contentImage=None, delay=0): | |
notification = Foundation.NSUserNotification.alloc().init() | |
notification.setTitle_(title) | |
notification.setSubtitle_(subtitle) | |
notification.setInformativeText_(info_text) | |
if appImage: |
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 | |
USER=${1:-gniemetz} | |
declare -i PER_PAGE=100 | |
declare -r ANSWER="$( | |
curl \ | |
-s `# Silent or quiet mode. Don't show progress meter or error messages.` \ | |
-I `# (HTTP FTP FILE) Fetch the headers only!` \ | |
"https://api.github.com/users/${USER}/starred?per_page=1" | |
)" |