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 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 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 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 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
[user] | |
name = Heith Seewald | |
email = heiths@gmail.com | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[push] | |
default = matching | |
[color] |
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
## 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 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
#!/usr/bin/env bash | |
# Make sure we’re running with root permissions. | |
if [ ${USER} != root ]; then | |
echo Please run this script using sudo | |
exit | |
fi | |
# Make ubuntu is > 16.10 | |
if [ ${USER} != root ]; then |
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 socket import socket | |
from OpenSSL import SSL | |
def callback(conn, cert, errno, depth, result): | |
if depth == 0 and (errno == 9 or errno == 10): | |
return False # or raise Exception("Certificate not yet valid or expired") | |
return True | |
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
#!/usr/bin/env python | |
# (c) 2013, Jesse Keating <jesse.keating@rackspace.com, | |
# Paul Durivage <paul.durivage@rackspace.com>, | |
# Matt Martz <matt@sivel.net> | |
# | |
# This file is part of Ansible. | |
# | |
# Ansible is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
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/sh | |
set -e | |
# This script is meant for quick & easy install via: | |
# $ curl -fsSL get.docker.com -o get-docker.sh | |
# $ sh get-docker.sh | |
# | |
# For test builds (ie. release candidates): | |
# $ curl -fsSL test.docker.com -o test-docker.sh | |
# $ sh test-docker.sh |
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
## | |
## Poppy | |
## | |
## | |
FROM ubuntu:14.04 | |
MAINTAINER Amit Gandhi <amit.gandhi@rackspace.com> | |
RUN apt-get -qq update | |
RUN apt-get -qq upgrade |