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 python3 | |
import sys | |
import re | |
import os | |
import tempfile | |
import shutil | |
import uuid | |
from subprocess import Popen, PIPE, STDOUT |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# copyright 2010 Eric Gradman | |
# free to use for any purpose, with or without attribution | |
# from an algorithm by James McNeill at | |
# http://playtechs.blogspot.com/2007/04/hex-grids.html | |
# the center of hex (0,0) is located at cartesian coordinates (0,0) | |
import numpy as np | |
# R ~ center of hex to edge |
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
# create a file named .env containing: | |
#username=<username> | |
#password=<password> | |
#student_id=<student_id> | |
#facility_id=<facility_id> | |
#find the facility id by inspecting the page once you've selected your school | |
from selenium import webdriver | |
from selenium.webdriver.common.by import 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
Homebrew build logs for osrf/simulation/gazebo9 on macOS 10.14.6 | |
Build date: 2020-09-14 21:57:47 |
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
Homebrew build logs for osrf/simulation/gazebo9 on macOS 10.14.6 | |
Build date: 2020-09-12 22:50:48 |
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
# cross-compile raspberry pi openframeworks | |
Tested for my setup: | |
- Ubuntu 12.04 32-bit | |
- 2014-01-07-wheezy-raspbian | |
- OpenFrameworks 0.8 (release) | |
- My Pi is NFS booting from the Ubuntu box, FWIW. | |
Follow the directions here: |
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 tropo | |
coroutines = {} | |
def prompt_text(self, prompt, number): | |
""" | |
initiate a conversation with <phone>, asking a prompt | |
(merely pings the outbound session endpoint) | |
""" |
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 | |
''' | |
print_win32_vector.py | |
This extension will generate vector graphics printout, specifically for Windows GDI32. | |
Copyright (C) 2012 Alvin Penner, penner@vaxxine.com | |
This is a modified version of the file dxf_outlines.py by Aaron Spike, aaron@ekips.org | |
It will write only to the default printer. | |
The printing preferences dialog will be called. |
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
@interface VideoSpriteBatchNode: CCSpriteBatchNode | |
{ | |
AVURLAsset *asset; | |
AVAssetTrack *videoTrack; | |
AVAssetReader *assetReader; | |
AVAssetReaderTrackOutput *trackOutput; | |
} | |
@property(nonatomic,retain) AVURLAsset *asset; | |
@property(nonatomic,retain) AVAssetTrack *videoTrack; | |
@property(nonatomic,retain) AVAssetReader *assetReader; |
NewerOlder