https://github.com/BShakhovsky/PolyphonicPianoTranscription
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
/** | |
* Splits a Pascal-Case word into individual words separated by spaces. | |
* @param {Object} word | |
* @returns {String} | |
*/ | |
function splitPascalCase(word) { | |
var wordRe = /($[a-z])|[A-Z][^A-Z]+/g; | |
return word.match(wordRe).join(" "); | |
} |
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
/** | |
* Converts a value to a string appropriate for entry into a CSV table. E.g., a string value will be surrounded by quotes. | |
* @param {string|number|object} theValue | |
* @param {string} sDelimiter The string delimiter. Defaults to a double quote (") if omitted. | |
*/ | |
function toCsvValue(theValue, sDelimiter) { | |
var t = typeof (theValue), output; | |
if (typeof (sDelimiter) === "undefined" || sDelimiter === null) { | |
sDelimiter = '"'; |
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
<# | |
.SYNOPSIS | |
Finds an SDK tool in .NET SDK folders | |
.INPUTS | |
Name of tool (exe filename) to search for. (E.g., svcutil.exe) | |
.OUTPUTS | |
Outputs a list of matching filenames along with properties about the directories | |
* Windows SDK version | |
* .NET version | |
* 32- or 64-bit exe |
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
class Token { | |
[string] $token | |
[System.DateTimeOffset] $expires | |
Token($response) { | |
$this.token = $response.token; | |
$this.expires = [System.DateTimeOffset]::FromUnixTimeMilliseconds($response.expires) | |
} | |
} | |
$rootUri = "https://www.arcgis.com/sharing/rest" |
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
{ | |
"Black": "#000000", | |
"White": "#FFFFFF", | |
"Red": "#880000", | |
"Cyan": "#AAFFEE", | |
"Violet / purple": "#CC44CC", | |
"Green": "#00CC55", | |
"Blue": "#0000AA", | |
"Yellow": "#EEEE77", | |
"Orange": "#DD8855", |
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
pip list --outdated --format json | ConvertFrom-Json | foreach { $_.name } | Out-File outdated.txt | |
pip install -r .\outdated.txt --update |
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
<html> | |
<head> | |
<link rel="stylesheet" href="min.css"> | |
<meta charset="utf-8" /> | |
<meta | |
name="viewport" | |
content="initial-scale=1,maximum-scale=1,user-scalable=no" | |
/> | |
<!-- | |
ArcGIS API for JavaScript, https://js.arcgis.com |
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.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
namespace FileSystemHelper | |
{ | |
public static class FileSystemExtensions | |
{ |
NewerOlder