Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kellyelton
kellyelton / edge-autosample.js
Created September 18, 2023 20:47
Edge Data Acquisitioning autosampling button
var button = $('#input-start-sampling');
var enable_autosampling = false;
function start_autosampling() {
enable_autosampling = true;
autosample();
}
function stop_autosampling() {
@kellyelton
kellyelton / news.json
Last active July 12, 2023 21:06
Octgn News Feed 7/12/2023 9:06 PM 00:00:00
[
{
"Text": "The server is back up and running. Have fun!",
"Timestamp": "2023-03-09T03:19:38Z"
},
{
"Text": "Server is currently down, working with our hosting provider to get back up and running.",
"Timestamp": "2023-03-09T03:12:03Z"
},
{
# Copyright Kelly Elton 2020
# All Rights Reserved
set x to 0
set y to 0
function add with othervector vector
return vector
x: .x + othervector.x
y: .y + othervector.y
# Copyright Kelly Elton 2020
# All Rights Reserved
function pow with value int and power int
set result to value
foreach i in 1 to power
result = result * value
return result
function sqrt with value float
# Copyright Kelly Elton 2020
# All Rights Reserved
#fun get_files iter<string, int>: path str, recursive bool
# return .platform.get_files: path, recursive
## ==================
@kellyelton
kellyelton / CaesarCipher.py
Created October 29, 2019 06:29
Loran Cipher
'''
By Loran E.
Caesar Cipher w/ range to ascii table
A true Caesar Cipher would only inlcude the alphabet
ascii table: 127
extended: 255
'''
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions -EnableShowFullPathInTitleBar
Disable-BingSearch
Install-WindowsUpdate
Enable-RemoteDesktop
Set-TaskbarOptions -Size Small -Lock -Dock Right -Combine Never
cinst msysgit
cinst tortoisegit
cinst poshgit
@kellyelton
kellyelton / ProcessWatcher.cs
Last active February 21, 2017 21:22
Watches for new processes to be run and fires an event when they are.
using System;
using System.Management;
using System.Threading;
namespace KellyElton.Components
{
/// <summary>
/// Watches for new processes to be run and fires an event when they are.
/// </summary>
public class ProcessWatcher : IDisposable