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() { | |
DigiMouse.begin();} | |
void loop() { | |
DigiMouse.moveY(2); | |
DigiMouse.delay(500); | |
DigiMouse.moveY(-2); | |
DigiMouse.delay(120000);} |
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 tkinter as tk | |
import os | |
import time | |
root = tk.Tk() | |
# keep the window from showing | |
root.withdraw() | |
# read the clipboard | |
content = root.clipboard_get() |
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
//LED Fire | |
int ledPin1=0; | |
int ledPin2=1; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(ledPin1,OUTPUT); | |
pinMode(ledPin2,OUTPUT); |
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/python | |
from tkinter import * | |
import random | |
root = Tk() | |
xs = 20 | |
y0 = 370 | |
def circle(Canvas,x,y,r,c): |
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/python | |
from tkinter import * | |
import random | |
root = Tk() | |
#position of first buidling | |
xs = 13 #from left | |
y0 = 370 #from streetlevel |
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
@echo off & title Swap left right buttons on mouse | |
set "s1=$m='[DllImport("user32.dll")]public static extern Int32 SwapMouseButton(Int32 bSwap);" | |
set "s2=public static void SwapMB(){ int isright=SwapMouseButton(1); if (isright != 0) { SwapMouseButton(0); } }';" | |
set "s3=add-type -name Import -member $m -namespace Dll; [Dll.Import]::SwapMB();" | |
set "ps_swapmousebutton=%s1%%s2%%s3%" | |
call powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -Command "%ps_swapmousebutton:"=\"%" |
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
@echo off | |
mode con:cols=180 lines=100 | |
PowerShell Invoke-RestMethod https://wttr.in/Vienna | |
pause |
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
from PIL import Image | |
import sys | |
datei=str(sys.argv[1])+".png" | |
im = Image.open(datei) | |
im1 = im.resize((512,512),Image.NEAREST) | |
im1 = im1.save(str(sys.argv[1])+"_big.png") |