Skip to content

Instantly share code, notes, and snippets.

@codedependant
codedependant / SassMeister-input-HTML.html
Created September 17, 2014 07:01
Generated by SassMeister.com.
<nav am-Nav='header'>
<ul am-Nav-List>
<li am-Nav-Item='active'><a href="#">Foo</a></li>
<li am-Nav-Item><a href="#">Bar</a></li>
</ul>
</nav>
@codedependant
codedependant / dabblet.css
Created July 16, 2014 07:27
Animated pie chart - style loader with CSS
/**
* Animated pie chart - style loader with CSS
*/
.pie {
width: 100px;
height: 100px;
border-radius: 50%;
background: yellowgreen;
background-image: linear-gradient(-90deg, currentColor 50%, transparent 0);
@codedependant
codedependant / SassMeister-input.scss
Created June 14, 2014 16:57
Generated by SassMeister.com.
// ----
// libsass (v0.8.6)
// ----
$group: 6;
$grid-column-namespace: "grid-namespace";
// For each column width from 1 to the column group...
@for $i from 1 through $group {
> .#{$grid-column-namespace}-#{$i}-of-#{$group} {
@codedependant
codedependant / dev_setup.sh
Created April 16, 2013 13:18
Development Machine Install Script
sudo apt-get update
sudo apt-get -y install openssh-server git-core zsh gcc make zlib1g-dev g++ mysql-server python-setuptools python-dev build-essential libmysqlclient-dev sqlite3 libsqlite3-dev nginx samba
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
chsh -s `which zsh`
@codedependant
codedependant / git_statuses.sh
Created March 13, 2013 17:37
Bash script to run "git status" in all child directories of a given parent directory
#!/bin/bash
FOLDER=`pwd`
if [ $# -eq 1 ]
then
FOLDER=`readlink -f $1`
fi
@codedependant
codedependant / GPSImage.py
Created March 1, 2013 22:01
Pulls GPS info from an image
from PIL import Image
from PIL.ExifTags import TAGS, GPSTAGS
def get_exif_data(image):
"""Returns a dictionary from the exif data of an PIL Image item. Also converts the GPS Tags"""
exif_data = {}
info = image._getexif()
if info:
for tag, value in info.items():
decoded = TAGS.get(tag, tag)
@codedependant
codedependant / FaceDetect.py
Last active December 14, 2015 09:50
Face Detection with OpenCV
import numpy as np
import cv2
import cv2.cv as cv
from video import create_capture
from common import clock, draw_str
import MySQLdb
@codedependant
codedependant / sublime.sh
Created January 25, 2013 09:58
Install Sublimte Text Ubuntu
#BECOME SUPER USER#
sudo -i
#add sublime to repository#
add-apt-repository ppa:webupd8team/sublime-text-2
#update#
@codedependant
codedependant / index.haml
Created December 30, 2012 15:34
A CodePen by Che.
%link(href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css')
%ul.row-fluid.grid
%li.span2
%h4 Header
%li.span2
%h4 Header
%li.span2
%h4 Header
%li.span2