Skip to content

Instantly share code, notes, and snippets.

View heiths's full-sized avatar

Heith Seewald heiths

View GitHub Profile
@heiths
heiths / .gitattributes
Last active March 31, 2017 20:10
.gitattributes for Unity3D with git-lfs
## 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
@heiths
heiths / .tmux.conf
Last active April 16, 2018 19:29
tmux.conf
# 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
@heiths
heiths / designer.html
Last active August 29, 2015 14:13
designer
<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 {
@heiths
heiths / designer.html
Last active August 29, 2015 14:07
designer
<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;
@heiths
heiths / 0_reuse_code.js
Created February 6, 2014 17:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@heiths
heiths / import_check.py
Created November 29, 2013 01:37
A simple way to search for and get info about a script.
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]
@heiths
heiths / cities_without_a.py
Created October 10, 2013 02:10
quick list of texas cities without letter A
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:
@heiths
heiths / vtxselect.py
Last active December 20, 2015 05:49
pymel vert selection example
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:
@heiths
heiths / gist:5641268
Created May 24, 2013 04:22
spiral basic
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])
@heiths
heiths / gist:5638764
Last active December 17, 2015 16:29
qubeQubed
from pymel.core import *
row = 10
column = 10
height = 10
x,y,z = 0, 0, 0
for i in range(0, row * column * height):