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
// https://github.com/chocolatey/choco/blob/0.10.15/src/chocolatey.resources/redirects/RefreshEnv.cmd | |
@echo off | |
:: | |
:: RefreshEnv.cmd | |
:: | |
:: Batch file to read environment variables from registry and | |
:: set session variables to these values. | |
:: | |
:: With this batch file, there should be no need to reload command |
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 | |
# chmod +x ./enable-rdp.sh | |
sudo apt install xrdp | |
sudo systemctl enable --now xrdp | |
sudo ufw allow from any to any port 3389 proto tcp | |
sudo ufw allow from any to any port 3399 proto tcp |
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
// https://github.com/RobTillaart/Arduino/blob/master/libraries/Complex/complex.cpp | |
function format(real, imag){ | |
if(this.imag == 0){ | |
return real | |
} | |
if(real == 0){ | |
return 'i' + imag; | |
} | |
return `${real} ${imag < 0 ? `-` : `+`} ${Math.abs(imag)}i`; |
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
<html> | |
<head> | |
<title>IT Tasks for Users</title> | |
<HTA:APPLICATION | |
APPLICATIONNAME="IT Tasks for Users" | |
ID="IT Tasks for Users" | |
VERSION="1.0"/> | |
<STYLE></STYLE> |
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
// http://arc.id.au/Spectrogram.html | |
const [Waterfall, Rasterscan] = (function () { | |
Waterfall = function (ipBufAry, w, h, dir, options) { | |
var direction = typeof dir === "string" ? dir.toLowerCase() : "down"; | |
switch (direction) { | |
case "up": | |
return new Spectrogram(ipBufAry, w, h, "WF", false, true, options); | |
case "down": |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"noImplicitAny": false, | |
"strictFunctionTypes": false, | |
"strictPropertyInitialization": false, | |
"strictBindCallApply": false, | |
"noImplicitThis": false, | |
"noImplicitReturns": false, | |
"alwaysStrict": false, | |
"esModuleInterop": true, |
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
function drawBuffer( width, height, context, buffer ) { | |
var data = buffer.getChannelData( 0 ); | |
var step = Math.ceil( data.length / width ); | |
var amp = height / 2; | |
for(var i=0; i < width; i++){ | |
var min = 1.0; | |
var max = -1.0; | |
for (var j=0; j<step; j++) { | |
var datum = data[(i*step)+j]; | |
if (datum < min) |
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
#include <ArduinoSTL.h> | |
#include <iostream> | |
// helpers | |
template <typename T> | |
struct id { using type = T; }; | |
template <typename T> | |
using type_of = typename T::type; |
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
using System; | |
using System.Runtime.InteropServices; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Interop; | |
// Start Visual Studio | |
// File->New->Project->C#->WPF Application | |
// Replace MainWindow.Xaml.cs with this code |
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
using System.Collections.Specialized; | |
using System.Linq; | |
using JetBrains.Annotations; | |
// ReSharper disable CheckNamespace -- be available where Dictionary<,> is | |
namespace System.Collections.Generic | |
{ | |
/// <summary> | |
/// System.Collections.Specialized.OrderedDictionary is NOT generic. |