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
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying | |
# file Copyright.txt or https://cmake.org/licensing for details. | |
#[=======================================================================[.rst: | |
FindVcvars | |
---------- | |
Finds a "vcvars" batch script. | |
The module can be used when configuring a project or when running |
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
_LibUSB.__init__(<WinDLL 'C:\Users\blward\Workspace\PRJ\AAHU\fusecast\lib\libusb-1.0.dll', handle 7ffc14540000 at 0x1df2b761d90>) | |
_LibUSB._finalize_object() | |
2019-11-23 17:03:14,430 DEBUG:usb.backend.libusb1:_LibUSB._finalize_object() | |
_LibUSB.__init__(<WinDLL 'C:\Users\blward\Workspace\PRJ\AAHU\fusecast\lib\libusb-1.0.dll', handle 7ffc14540000 at 0x1df2b761d90>) | |
2019-11-23 17:03:14,433 DEBUG:usb.backend.libusb1:_LibUSB.__init__(<WinDLL 'C:\Users\blward\Workspace\PRJ\AAHU\fusecast\lib\libusb-1.0.dll', handle 7ffc14540000 at 0x1df2b761d90>) | |
find(): using backend "usb.backend.libusb1" | |
2019-11-23 17:03:14,437 INFO:usb.core:find(): using backend "usb.backend.libusb1" | |
_LibUSB.enumerate_devices() | |
2019-11-23 17:03:14,437 DEBUG:usb.backend.libusb1:_LibUSB.enumerate_devices() | |
2019-11-23 17:03:14,457 DEBUG:usb.backend.libusb1:_LibUSB.get_device_descriptor(<usb.backend.libusb1._Device object at 0x000001DF2BAF64F0>) |
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 javafx.scene.transform.Affine; | |
import javafx.application.Platform; | |
def field = ScriptingEngine.gitScriptRun( | |
"https://github.com/WPIRoboticsEngineering/RBELabCustomParts.git", // git location of the library | |
"2002/2002 Field/2002 Field STL.STL" , // file to load | |
null | |
) | |
.rotx(-90) | |
.toXMin() |
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 java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.time.DayOfWeek; | |
import java.time.LocalDate; | |
import java.time.ZoneId; | |
import java.time.temporal.TemporalAdjusters; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.GregorianCalendar; |
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
# -*- coding: utf-8 -*- | |
from urllib import request | |
from bs4 import BeautifulSoup | |
if __name__ == '__main__': | |
fiction_soup = BeautifulSoup(request.urlopen('http://royalroadl.com/fiction/XXXXXX'), "html.parser") | |
chapter_trs = fiction_soup.findAll('tr') | |
chapter_urls = [] |
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
/// Simple pooling for Unity. | |
/// Author: Benjamin Ward ([email protected]) | |
/// Latest Version: https://gist.github.com/WardBenjamin/991dfa64e94892924b67efe569e35050 | |
/// License: CC0 (http://creativecommons.org/publicdomain/zero/1.0/) | |
/// UPDATES: | |
/// N/A | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; |
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
using UnityEngine; | |
public static class TransformEXT | |
{ | |
public static void SetPosition(this Transform transform, float x = float.NaN, float y = float.NaN, float z = float.NaN) | |
{ | |
var pos = transform.position; | |
if (!float.IsNaN(x)) | |
pos.x = x; | |
if (!float.IsNaN(y)) |