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
## ==================
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
cinst nsis
@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
'''
@kellyelton
kellyelton / gist:8776309
Created February 2, 2014 23:01
Freshdesk c# sso /w timestamp
public ActionResult HelpLogin()
{
const string key = "abcdefghijklmnopqrtuvwxyz";
const string pathTemplate = "http://demo.freshdesk.com/login/sso?name={0}&email={1}&timestamp={2}&hash={3}";
var username = UserHelper.CurrentUser.UserName;
var email = UserHelper.CurrentUser.Email;
string timems = (DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds.ToString();
var hash = GetHash(key, username, email, timems);
@kellyelton
kellyelton / CLA.md
Last active October 3, 2017 13:32
CLA

Harmony Individual Contributor License Agreement

Thank you for your interest in contributing to OCTGN ("We" or "Us").

This contributor agreement ("Agreement") documents the rights granted by contributors to Us. This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us.

1. Definitions

  • "You" means the individual who Submits a Contribution to Us.