Skip to content

Instantly share code, notes, and snippets.

View artisin's full-sized avatar

te artisin

View GitHub Profile
@artisin
artisin / linuxSetup.md
Last active October 15, 2015 17:48
Basic Linux Setup For Web Development

Linux Setup

###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
  • Ati Graphic Card
@artisin
artisin / SublimeSetting.md
Last active October 5, 2015 16:54
Sublime Web Development Setup and Settings

Sublime Settings

A list of the packages and settings I use for Sublime.

Getting Started

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)
@artisin
artisin / Stylus-Material-Button-Mixin.markdown
Last active August 29, 2015 14:20
Stylus Material Button Mixin

Stylus Material Button Mixin

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,
@artisin
artisin / work-set.js
Created June 14, 2015 20:52
Traversing the social network
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
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"All Autocomplete",
"ApplySyntax",
"Babel",
#!/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
//oo
function Foo(who) {
this.me = who;
}
Foo.prototype.identify = function () {
return this.me;
}
function Bar (who) {
################################################################################
# Default Aliases
################################################################################
# Setup in `.zshrc`
# `source $HOME/.aliases`
# Easier navigation: .., ..., ...., ....., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."