Skip to content

Instantly share code, notes, and snippets.

View scriptonian's full-sized avatar

I-am Konstantin scriptonian

View GitHub Profile
@scriptonian
scriptonian / bash_profile
Last active August 29, 2015 14:09
Unix Commands For bash_profile
#Show hidden file
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
#Hide hidden files
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
#Open Sublime text 2
alias sb='open -a "Sublime Text 2"'
@scriptonian
scriptonian / base.css
Last active September 15, 2015 14:38 — forked from planetoftheweb/base.css
Base CSS document with google fonts, Eric Meyer's reset.css, Ethan Schoonover's solarized palette and some basic responsive code.
@import url(http://fonts.googleapis.com/css?family=Roboto+Slab:700|Exo+2:300,600);
/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
/* Solarized Palette - http://ethanschoonover.com/solarized ---------
lightgray : #819090;
gray : #70
@scriptonian
scriptonian / Bootstrap CDN Starter
Created September 15, 2015 14:50
Bootstrap CDN Starter
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<title>Starter Template for Bootstrap</title>
bower install jquery-legacy=jquery#^1 jquery-modern=jquery
{
"jslint.options": {
"vars": true,
"plusplus": true,
"devel": true,
"nomen": true,
"maxerr": 50,
"es5": true
},
"defaultExtension": "js",
1.
git config alias.st status
Create an alias 'st' so that when you type that... it executes the command git status
2.
cat .git/config | grep -A 1 "\[alias\]"
Once the alias is setup you can view all aliases like this:
1.
git log
this allows you to see a history of commits
2.
git log --pretty=oneline
limit output to one line per commit. as oppose to the first one that shows quite a bit of info. like author and date, etc
git config --global user.email "kofi.addaquay@charter.com"
git config --global user.name "kofi"
//open or create a .bashrc file
vim ~/.bashrc
click I to start editing
add your alias or commands you would like to save
Hit Escape
Then type ':wq'
att is an attribute within an element. href, type, data-*, src, lang etc!
E:[att] : element with an attribute selector
E:[att=val] : element with an atttribute selector equal to val
E:[att~=val] : element E whose attribute selector att, has within its value the space separated full word val
E:[att|=val] : element E whose attribute selector att, has a value val or begins with val