Skip to content

Instantly share code, notes, and snippets.

@kaziridwan
kaziridwan / typethedate.workflow
Last active December 3, 2020 15:29
Apple scripts for productivity
on zero_pad(value, string_length)
set string_zeroes to ""
set digits_to_pad to string_length - (length of (value as string))
if digits_to_pad > 0 then
repeat digits_to_pad times
set string_zeroes to string_zeroes & "0" as string
end repeat
end if
set padded_value to string_zeroes & value as string
return padded_value
@kaziridwan
kaziridwan / Package Control.sublime-settings
Last active January 21, 2017 09:20
Preferences: Package Control Settings - User
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"Babel",
"HTML-CSS-JS Prettify"
]
@kaziridwan
kaziridwan / .xmodmap
Created March 23, 2016 19:21
My mac style shortcut for ubuntu 15.10
clear control
clear mod1
clear mod4
keycode 37 = Super_L
keycode 64 = Control_L
keycode 133 = Alt_L Meta_L
add control = Control_L Control_R
add mod1 = Alt_L Meta_L
add mod4 = Super_L Hyper_L
@kaziridwan
kaziridwan / timestamp.py
Last active December 11, 2015 13:48 — forked from kmorey/timestamp.py
# -*- coding: utf-8 -*-
from datetime import datetime
import time
import sublime, sublime_plugin
class TimestampCommand(sublime_plugin.EventListener):
"""Expand `isoD`, `now`, `datetime`, `utcnow`, `utcdatetime`,
`date` and `time`
@kaziridwan
kaziridwan / .bash_profile
Last active July 4, 2016 17:30
My osx bash profile
#Paths
export PATH="~/.composer/vendor/bin:$PATH"
export XAMPP_HOME=/Applications/XAMPP
export PATH=${XAMPP_HOME}/bin:${PATH}
export PATH="/Volumes/secondary/apps/apache-ant-1.9.6/bin:$PATH"
export PATH="/Users/ridwan/Library/Android/sdk/platform-tools/":$PATH
export PATH="/usr/local/lib/express:$PATH"
export PATH="/Users/ridwan/Library/Android/sdk/platform-tools:/Users/ridwan/Library/Android/sdk/tools:$PATH"