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
date -u +"%Y-%m-%d_%H-%M-%S" |
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 "DigiMouse.h" | |
void setup() { | |
// don't need to set anything up to use DigiKeyboard | |
// DemonSeed EDU per https://twitter.com/_MG_/status/1209883487353757697 | |
// Enable D- pull-up resistor to attach DemonSeed EDU onto USB as a low-speed (1.5Mbit/s) device | |
pinMode(2, OUTPUT); | |
digitalWrite(2, HIGH); |
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
[assembly: IgnoresAccessChecksTo("SecretProgram")] |
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
colordiff -y <(xxd foo1.bin) <(xxd foo2.bin) |
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
#!/usr/bin/bash | |
find . -name $'*\n*' -exec rename -n 's/\n//g' {} \; |
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.Text.RegularExpressions; | |
namespace MainColorConsole | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
ColorConsole.WriteWrappedHeader("Color Console Examples"); |
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
/* | |
Library for getting info from a specific explorer window (if window handle not specified, the currently active | |
window will be used). Requires AHK_L or similar. Works with the desktop. Does not currently work with save | |
dialogs and such. | |
Explorer_GetSelected(hwnd="") - paths of target window's selected items | |
Explorer_GetAll(hwnd="") - paths of all items in the target window's folder | |
Explorer_GetPath(hwnd="") - path of target window's folder | |
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
import os | |
import sys | |
import glob | |
import re | |
from typing import List | |
def find_video_files(dir: str): | |
return glob.glob(os.path.join(dir, "*.mp4")) + glob.glob(os.path.join(dir, "*.mkv")) |
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
module Input (isKeyDown, handleInput) where | |
import Common | |
import Coordinates | |
import qualified Data.Set as S (Set, empty, delete, insert, member) | |
import Graphics.Gloss.Interface.IO.Game | |
import Model | |
data World = World | |
{ scene :: Scene, |
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
import Graphics.Gloss | |
( Color, | |
Picture, | |
blank, | |
blue, | |
color, | |
white, | |
pictures, | |
rectangleSolid, | |
rgbaOfColor, |
NewerOlder