Skip to content

Instantly share code, notes, and snippets.

View xslendix's full-sized avatar
👁️
Hello

Slendi xslendix

👁️
Hello
View GitHub Profile
@xslendix
xslendix / box_gen.py
Created January 18, 2018 22:08
Create boxes in python! Usage: python box_gen [lenght] [height] (--help)
# -*- coding: utf-8 -*-
from time import sleep
import sys
def gen_box(lenght, height):
box = ""
i = 0
while i != height:
y = 0
@xslendix
xslendix / dice.py
Created February 4, 2018 21:22
A simple dice rolling program made in Python 3.6
from random import randint
from time import sleep
dicenum = randint(1, 6)
print("Rolling dice...")
print("")
print(" _______ \n /\ \ \n /()\ () \ \n/ \_______\ \n\ /() / \n \()/ () / \n \/_____()/")
print("")
@xslendix
xslendix / sine.py
Created March 24, 2018 11:25
A simple turtle application.
import math
import turtle
x = -700
a = 0.0
wn = turtle.Screen()
wn.bgcolor('lightblue')
fred = turtle.Turtle()
@xslendix
xslendix / code.ino
Created April 14, 2018 09:40
A simple circuit
#include <Password.h>
#include <Wire.h>
#include <Key.h>
#include <Keypad.h>
#define trigPin_1 3
#define echoPin_1 4
@xslendix
xslendix / code.ino
Created April 14, 2018 09:40
A simple circuit
#include <Password.h>
#include <Wire.h>
#include <Key.h>
#include <Keypad.h>
#define trigPin_1 3
#define echoPin_1 4
@xslendix
xslendix / code.ino
Created April 14, 2018 09:40
A simple circuit
#include <Password.h>
#include <Wire.h>
#include <Key.h>
#include <Keypad.h>
#define trigPin_1 3
#define echoPin_1 4
#include <Password.h>
#include <Keypad.h>
#define led 5
const byte ROWS = 4;
//four rows
const byte COLS = 4;
//four columns
//define the cymbols on the buttons of the keypads
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
int buttonState = 0;
int program = 1;
int programs = 1;
/build
Dim arr1(200)
Set oShell = WScript.CreateObject ("WScript.Shell")
For i = 0 to 110 Step 1
arr1(i) = CStr(i)
oShell.run "cmd.exe /C Z: & cd Z:/info/Desktop & mkdir " & CStr(i)
Next
Dim objShell, strProgram
Set objShell = CreateObject("Wscript.Shell")