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 node | |
/* | |
npm install p-queue | |
*/ | |
import PQueue from "p-queue"; | |
process.on("uncaughtException", (err) => { | |
console.log("Uncaught!", err); |
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 | |
######################## | |
# Exports PlantUML diagrams using a Docker PlantUML Server. | |
# ARGS: | |
# $1 : Target directory to recursively search | |
# CONFIG: | |
# $port : Port to bind the PlantUML Server to | |
# $dockerName : Name of the Docker container | |
# $fileExt : File extensions that belong to PlantUML | |
# $dryRun : Detect files but not process them |
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
####################################### | |
# Please replace this values | |
$gitlabUrl = "https://gitlab.com" | |
$bearerToken = "abcdefg" | |
####################################### | |
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" | |
$headers.Add("Authorization", "Bearer $bearerToken") | |
$runners = Invoke-RestMethod "$gitlabUrl/api/v4/runners?status=offline" ` | |
-Headers $headers |
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 2020 Cardin Lee | |
MIT License | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
of the Software, and to permit persons to whom the Software is furnished to do |
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
''' | |
Injects HTML elements (specified by xpath, filtered by lambdas) | |
using a Javascript alert(), with auto-success detection | |
Requires: | |
pip install selenium | |
geckodriver | |
''' | |
import itertools | |
import json |
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
// MEL | |
$allWindows = `lsUI -windows`; | |
for ($window in $allWindows) | |
if ($window != "MayaWindow" && $window!= "scriptEditorPanel1Window") | |
deleteUI $window; | |
evalDeferred "deleteUI scriptEditorPanel1Window"; | |
# Python | |
import maya.cmds as cmds |
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
""" | |
Requirements: | |
Python 2.7x onwards (2.6 might work) | |
Not compatible with Python 3 | |
Purpose: | |
Help to update MAL list | |
Functions: | |
- Adds/updates/deletes new series from list |
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
package src.Lib | |
{ | |
/** | |
* Enumerable.as | |
* @version Dated 6 July 2011 | |
* --------------- | |
* Faux enumerations in Actionscript. Done through code reflection and static initializers. | |
* | |
* Adapted from: | |
* http://scottbilas.com/2008/06/01/faking-enums-in-as3/ |