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
# spam big yoshi | |
time.sleep(2) | |
kbd.press(Keycode.WINDOWS) | |
kbd.release_all() | |
time.sleep(0.25) | |
kbd_layout.write("chrome") | |
time.sleep(0.25) | |
kbd.press(Keycode.ENTER) | |
kbd.release_all() | |
time.sleep(0.25) |
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
$count = [Enum]::GetValues([System.ConsoleColor]).Count | |
$WShell = New-Object -Com "Wscript.Shell" | |
$idx = 1 | |
while (1) | |
{ | |
$WShell.SendKeys("a") | |
Write-Host ([string]::Format(“No sleeping! {0}”,$idx)) -f ([System.ConsoleColor](Get-Random -Minimum 1 -Maximum $count)).value__ | |
$idx++ | |
sleep 60 | |
} |
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
#include <AccelStepper.h> | |
#define dirPin 2 | |
#define stepPin 3 | |
#define motorInterfaceType 1 | |
AccelStepper stepper = AccelStepper(motorInterfaceType, stepPin, dirPin); | |
#define trigPin 4 | |
#define echoPin 5 | |
long duration; // variable for the duration of sound wave travel | |
int distance; // variable for the distance measurement |
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.Drawing; | |
namespace ImageGenerator | |
{ | |
internal class Program | |
{ | |
static Random RND = new Random(); | |
static void Main(string[] args) |
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.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
namespace picPosScatter | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
internal class Program | |
{ | |
private static readonly string dirPath = @"C:\Users\delta\Desktop\560_25p"; | |
static void Main(string[] args) | |
{ | |
string[] paths = GetSortedPicturesFrom(dirPath).ToArray(); | |
foreach (string path in paths) | |
{ |
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
static double _Scale = 0.03; | |
static void Main(string[] args) | |
{ | |
byte[] r1 = Zip(EncodeBitmap(new Bitmap(@"C:\Users\brad.martin\Desktop\highMag.jpg"))); | |
Bitmap bmp = DecodeBitmap(Unzip(r1)); | |
bmp.Save(@"C:\Users\brad.martin\Desktop\test.png"); | |
Console.WriteLine(Convert.ToBase64String(r1)); | |
Console.ReadKey(); | |
} |
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.Windows.Forms; | |
namespace PrintLogParser | |
{ | |
public partial class FormMain : Form | |
{ |
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
import os | |
import xml.etree.ElementTree as ET | |
import difflib | |
dataA = [] | |
dataB = [] | |
f = [] | |
for subdir, dirs, files in os.walk(os.getcwd()): | |
for file in files: |
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.IO; | |
using System.Linq; | |
namespace FolderCleaner | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |