A nice little Stylus mixin to create "material-like" buttons with ease and no js.
A Pen by Tyler Schultz on CodePen.
License MIT
*, | |
a, | |
input, | |
button, | |
img, | |
select, | |
a:focus, | |
input:focus, | |
button:focus, | |
img:focus, |
function Dict(elements) { | |
this.elements = elements || {}; | |
} | |
Dict.prototype.has = function (key) { | |
return {}.hasOwnProperty.call(this.elements, key); | |
}; | |
Dict.prototype.get = function (key) { | |
return this.has(key) ? this.elements[key] : undefined; | |
}; | |
Dict.prototype.set = function (key, val) { |
dbus-send --print-reply --dest=net.kevinmehall.Pithos /net/kevinmehall/Pithos net.kevinmehall.Pithos.PlayPause | |
dbus-send --print-reply --dest=net.kevinmehall.Pithos /net/kevinmehall/Pithos net.kevinmehall.Pithos.SkipSong | |
dbus-send --print-reply --dest=net.kevinmehall.Pithos /net/kevinmehall/Pithos net.kevinmehall.Pithos.GetCurrentSong |
A list of the packages and settings I use for Sublime.
import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
###Update We first need to make sure ubuntu is up to speed and updated. Easy way to do this is to use the following commands.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ubuntu-release-upgrader-core
sudo do-release-upgrade
{ | |
"bootstrapped": true, | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"All Autocomplete", | |
"ApplySyntax", | |
"Babel", |
//oo | |
function Foo(who) { | |
this.me = who; | |
} | |
Foo.prototype.identify = function () { | |
return this.me; | |
} | |
function Bar (who) { |
#!/bin/bash | |
## Linux setup. Still working on fine tuning, but its operational or I think it is. | |
### Echo Notification | |
fancy_echo() { | |
printf "\n%b\n" "$1" | |
} | |
### Check disto | |
if ! grep -qiE 'wheezy|jessie|precise|trusty' /etc/os-release; then |
################################################################################ | |
# Default Aliases | |
################################################################################ | |
# Setup in `.zshrc` | |
# `source $HOME/.aliases` | |
# Easier navigation: .., ..., ...., ....., ~ and - | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." |