This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul.carousel-dots | |
{ | |
font-family:Verdana, Arial, Helvetica, sans-serif; | |
text-align: center; | |
padding-bottom: 0px; | |
padding-top: 0px; | |
padding-left: 0; | |
margin-top: 0; | |
margin-left: 0; | |
width: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
After Dynamics Expression | |
global proc setPoint(float $_index,vector $_p){ | |
setAttr("bezierShape"+1+".controlPoints["+($_index)+"].xValue",$_p.x); | |
setAttr("bezierShape"+1+".controlPoints["+($_index)+"].yValue",$_p.y); | |
setAttr("bezierShape"+1+".controlPoints["+($_index)+"].zValue",$_p.z); | |
} | |
int $id = nParticleShape1.particleId; | |
vector $p = nParticleShape1.position; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pymel.core as pm | |
import maya.cmds as cmds | |
cmds.hyperShade(o="lambert1") | |
cmds.ConvertSelectionToVertices() | |
#shrink selected region to avoid border verticies | |
cmds.ShrinkPolygonSelectionRegion() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#BECOME SUPER USER# | |
sudo -i | |
#add sublime to repository# | |
add-apt-repository ppa:webupd8team/sublime-text-2 | |
#update# | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 | |
import cv2.cv as cv | |
from video import create_capture | |
from common import clock, draw_str | |
import MySQLdb | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FOLDER=`pwd` | |
if [ $# -eq 1 ] | |
then | |
FOLDER=`readlink -f $1` | |
fi | |
OlderNewer