I hereby claim:
- I am zettt on github.
- I am zettt (https://keybase.io/zettt) on keybase.
- I have a public key ASAEMOLtmYzMeH7C9fffIxFRfc8f9xURmBnh9c5hkgz7pQo
To claim this, I am signing this object:
set currentHour to hours of (current date) | |
set currentMinute to minutes of (current date) | |
if (currentMinute ≥ 0) and (currentMinute ≤ 7) then | |
set currentMinute to "00" | |
else if (currentMinute > 7) and (currentMinute ≤ 23) then | |
set currentMinute to "15" | |
else if (currentMinute > 23) and (currentMinute ≤ 37) then | |
set currentMinute to "30" | |
else if (currentMinute > 37) and (currentMinute ≤ 52) then |
I hereby claim:
To claim this, I am signing this object:
-- Things to Pomodoro App for iPad | |
-- This script asks Things for the currently selected todos | |
-- and generates a Pomodoro App for iPad compatible JSON file | |
-- for you to import in to the app (using Dropbox) | |
-- | |
-- Created by Thomas on 2011-02-17 | |
-- Inspired by Andreas on 2011-02-17 | |
-- Modified by Andreas on 2011-02-17 | |
-- Original: https://gist.github.com/832075 | |
-- https://gist.github.com/831942 |
#!/bin/sh | |
file="$1" | |
extension=${file##*.} | |
if [[ $extension == "dmg" ]]; then | |
echo "yes" | hdiutil attach "$1" | |
fi |
#!/bin/sh | |
hours=`date "+%H"` | |
let minutes=`date "+%M"` | |
if [[ $minutes -ge 0 ]] && [[ $minutes -le 7 ]]; then | |
minutes="00" | |
elif [[ $minutes -gt 7 ]] && [[ $minutes -le 23 ]]; then | |
minutes="15" | |
elif [[ $minutes -gt 23 ]] && [[ $minutes -le 37 ]]; then |
-- Day Projects | |
-- | |
-- Created by Zettt on 2011-11-28 | |
-- Mac OS X Screencasts. | |
-- | |
-- This script creates "Day Projects" in OmniFocus. | |
-- | |
-- I use these "Day Projects" to put stuff, that I need to | |
-- do on a specific day, but aren't big enough to be their own project. | |
-- Things like "Call the doctor on Wednesday" or |
-- Week Projects | |
-- | |
-- Created by Zettt on 2015-12-28 | |
-- zCasting 3000. | |
-- | |
-- This script creates "Week Projects" in OmniFocus. | |
-- | |
-- I use these "Week Projects" to put stuff, that I need to | |
-- do during a specific week, but aren't big enough to be their own project. | |
-- Things like "Call the doctor on Wednesday" or |
tell application "Spotify" | |
if player state is playing then | |
set playPos to player position + 3.0 | |
set player position to playPos | |
end if | |
end tell |
import webbrowser | |
import urllib | |
# http://duckduckgo.com/?q=asdf | |
ddg_url = "googlechromes://duckduckgo.com/?" | |
query_url = "q=" | |
# input | |
prompt = "> " | |
query = raw_input("Query: \n" + prompt) |
-- Toggle Notification Center's DND on Yosemite | |
tell application "System Events" | |
option key down | |
delay 0.1 | |
try | |
click menu bar item "Notification Center" of menu bar 2 of application process "SystemUIServer" | |
end try | |
try | |
click menu bar item "NotificationCenter, Do Not Disturb enabled" of menu bar 2 of application process "SystemUIServer" |