Setup
- in
.vscode
folder in your project root, create a filelaunch.json
{
"version": "0.1.0",
"configurations": [
{
"name": "[Your Tool] Debugger",
"type": "chrome",
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
function Get-1NotePage { | |
<# | |
.SYNOPSIS | |
Finds the ID of a OneNote page | |
.DESCRIPTION | |
http://thebackend.info/powershell/2017/12/onenote-read-and-write-content-with-powershell/ | |
.EXAMPLE | |
Get-1NotePage -Name "PowerShell Test" | |
#> | |
[cmdletbinding()] |
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
ffmpeg -i in.mkv -f srt -i in.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s srt out.mkv |
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
javascript:(function(){var inputId='plex-season-title-hack';var input=document.getElementById(inputId);if(!input){var html= '<label for="'+inputId+'">Title</label><div class="input-group"><input type="text" name="title" id="'+inputId+'"></div></div></div>';document.getElementById('lockable-summary').parentElement.insertAdjacentHTML('afterend', html);}})(); |
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
/** | |
* This javascript snippet is able to split a merged audio track to parts by silence analysis | |
* It is based on ffmpeg (https://ffmpeg.org), especially on the silencedetect filter (https://ffmpeg.org/ffmpeg-filters.html#silencedetect) | |
* | |
* Assumptions: | |
* - nodejs is installed | |
* - ffmpeg is installed | |
* | |
* Usage: | |
* - fill the options object |
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
#Run script in python view on script editor | |
#Select all objects that need apply vray subdivision | |
#Execute in maya python console makeVrayAttributes(1) | |
import maya.cmds as cmds | |
import maya.mel as mel | |
def makeVrayAttributes(startID=1): | |
sel = cmds.ls(sl=1) | |
currentID=startID |
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
// This script will loop through layers in the first two layer groups | |
// in a photoshop file toggling them one by one and exporting a png of | |
// each flattened combination | |
// NOTE: Start the file with all the grouped layers set invisible, | |
// but the groups themselves visible, and any non-grouped layets you want | |
// to put in all the files visible. | |
#target photoshop |
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 System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Linq.Expressions; | |
using System.Runtime.CompilerServices; | |
namespace BasicListView | |
{ | |
public class BaseViewModel : INotifyPropertyChanged | |
{ |
NewerOlder