Skip to content

Instantly share code, notes, and snippets.

View vector.ava
# 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
View math.ava
# 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
View fs.ava
# Copyright Kelly Elton 2020
# All Rights Reserved
#fun get_files iter<string, int>: path str, recursive bool
# return .platform.get_files: path, recursive
## ==================
View CaesarCipher.py
'''
By Loran E.
Caesar Cipher w/ range to ascii table
A true Caesar Cipher would only inlcude the alphabet
ascii table: 127
extended: 255
'''
View RichTextBlock.cs
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;
View boxstarter-work.ps1
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 Feb 21, 2017
Watches for new processes to be run and fires an event when they are.
View ProcessWatcher.cs
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
View example.cs
public static void Main(string[] args){
var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "tester.txt");
using(var eve = new AutoResetEvent(false))
using(var file = new FileStream(path, FileMode.Create, FileAccess.ReadWrite, FileShare.Delete)){
Task.Run(()=>{
File.Delete(path);
if(File.Exists(path))
Console.WriteLine("File Exists");
eve.Set();
});
View boxstarter.ps1
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
View taco.md

prosecutor: "On the night of Aug 25, 2015, what operating system were you using?"

defendant: "...uhh...ww...windows..."

prosecutor: "WHICH windows"

defendant: mumbles "xp"

image

You can’t perform that action at this time.