This file contains hidden or 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
## Unity ## | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
*.anim merge=unityyamlmerge eol=lf | |
*.asset merge=unityyamlmerge eol=lf | |
*.controller merge=unityyamlmerge eol=lf | |
*.mat merge=unityyamlmerge eol=lf |
This file contains hidden or 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
# set window split | |
bind-key v split-window -h | |
bind-key b split-window | |
#set -g window-style 'fg=colour247,bg=colour236' | |
#set -g window-active-style 'fg=colour254,bg=colour235' | |
set-option -g prefix C-Space | |
bind-key C-Space last-window | |
# Start numbering at 1 |
This file contains hidden or 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 rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<link rel="import" href="../topeka-elements/category-icons.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
This file contains hidden or 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 rel="import" href="../paper-toast/paper-toast.html"> | |
<link rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<polymer-element name="dhs-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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 os | |
import sys | |
def main(script_name=None): | |
g = globals() | |
#pass it a value or get a prompt. Example: file_name.py | |
script_name = raw_input("Name of the file:\n#") if script_name is None else script_name | |
base_name = script_name.split('.')[0] |
This file contains hidden or 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 bs4 import BeautifulSoup | |
import requests | |
r = requests.get('http://en.wikipedia.org/wiki/List_of_cities_in_Texas') | |
soup = BeautifulSoup(r.text) | |
links = soup.find_all('li') | |
cities = [] | |
for i in links: | |
try: |
This file contains hidden or 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 pymel.core import * | |
ball = polySphere()[0] | |
bs = ball.getShape() | |
#Basic selection | |
select([i for i in bs.vtx if i.getPosition().y >= 0]) | |
#more interesting things: |
This file contains hidden or 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 pymel.core import * | |
cvCount = 1000 | |
cvPoints = [] | |
for i in range(cvCount): | |
x = dt.sin(i) * i | |
y = dt.cos(i) * i | |
z = 0 | |
cvPoints.append([x, y, z]) | |
This file contains hidden or 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 pymel.core import * | |
row = 10 | |
column = 10 | |
height = 10 | |
x,y,z = 0, 0, 0 | |
for i in range(0, row * column * height): |