The upstream script was failing with an error on the path.exists function call. So I forked the script and patched it. I am using node.js v12.16.2
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
# ##### BEGIN GPL LICENSE BLOCK ##### | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
// Anonymous "self-invoking" function | |
alert("Thank you for using this script created by Louis Hong (/u/loolo78)\n\nThe download will now begin."); | |
(function() { | |
// Load the script | |
var script = document.createElement("SCRIPT"); | |
script.src = 'https://code.jquery.com/jquery-latest.min.js'; | |
script.type = 'text/javascript'; | |
document.getElementsByTagName("head")[0].appendChild(script); |
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
################################################################# | |
# This script works on a single selected hair geometry object | |
# modify the stagePath before using | |
# | |
################################################################ | |
import bpy | |
from pxr import Usd, UsdGeom, Sdf, Gf | |
stagePath = r'C:\work\dumpTest.usda' |
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
class A(object): | |
def __init__(self): | |
self.var1 = None | |
self.var2 = None | |
class B(object): | |
def __init__(self): | |
self.var3 = None | |
self.var4 = None |
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
def reMap(value, maxInput, minInput, maxOutput, minOutput): | |
value = maxInput if value > maxInput else value | |
value = minInput if value < minInput else value | |
inputSpan = maxInput - minInput | |
outputSpan = maxOutput - minOutput | |
scaledThrust = float(value - minInput) / float(inputSpan) |
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 maya.cmds | |
import maya.utils | |
from SimpleWebSocketServer import SimpleWebSocketServer, WebSocket | |
from threading import Thread | |
class SimpleEcho(WebSocket): | |
def handleMessage(self): | |
# echo message back to client | |
#self.sendMessage(maya.utils.executeInMainThreadWithResult(self.data)) |
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
#!/bin/bash | |
# painting2sprites - A simple script to read an ORA, resize and trim output PNGs. | |
INPUT_FILE=$1 | |
OUTPUT_DIR=$2 | |
RESIZE_SCALE="25%" | |
if [ "$2" == "" ]; then |
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
# restart supervisor (and the notebook) every minute in case the machine has been restarted | |
*/1 * * * * /x/home/notebook_training/start_supervisord.sh >> /x/home/notebook_training/nbserver_start_log.txt | |
# separate user does something like: | |
# */1 * * * * /x/home/mhashemi/notebook_repo_update.sh >> /x/home/mhashemi/notebook_cron_log.txt 2>&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
from rx import Observable, Observer | |
from collections import defaultdict | |
users = [ | |
{ "id" : 0, "name" : "Hero" }, | |
{ "id" : 1, "name" : "Dunn" }, | |
{ "id" : 2, "name" : "Sue" }, | |
{ "id" : 3, "name" : "Chi" }, | |
{ "id" : 4, "name" : "Thor" }, | |
{ "id" : 5, "name" : "Clive" }, |
NewerOlder