Skip to content

Instantly share code, notes, and snippets.

View Wqrld's full-sized avatar
🌍
Discord: Wqrld#7373

Wqrld Wqrld

🌍
Discord: Wqrld#7373
View GitHub Profile
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{parskip}
\author{Or something \\ \small By Luc}
\title{Math by intuition}
\begin{document}
\begin{titlepage}
import json
from pathlib import Path
from random import SystemRandom
import ujson
from PIL import Image, ImageSequence
from loguru import logger as log
cwd = Path(__file__).parent
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const fetch = require("node-fetch")
var mysql = require('mysql');
var suggestedChanges = [];
var pool = mysql.createPool({
connectionLimit : 3,
user : 'root',
database : 'panel',
socketPath : '/var/run/mysqld/mysqld.sock'
});
from manim import *
%%manim -qm -v WARNING PointMovingOnShapes
class PointMovingOnShapes(Scene):
def construct(self):
circle = Circle(radius=2, color=BLUE)
P = Arrow(ORIGIN, [2, 0, 0], buff=0)
Q = Arrow(ORIGIN, [0, -2, 0], buff=0)
S = Arrow(ORIGIN, [np.sqrt(2), -np.sqrt(2), 0], buff=0)
self.add(circle)
@Wqrld
Wqrld / lucdoel4.ino
Last active June 20, 2022 08:12
doel zoeken als we aan het draaien zijn en minder forward delays dus vaker scannen.
#include <Servo.h>
//todo trigger pin echo pin distout distin
// linksachter motor2
// linksvoor M1
// rechtsvoor m4
// rechtsachter m3
bool manual = 0;
package sample;
import javafx.application.Application;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import math
primes = [2, 3, 5, 7, 11, 13, 17, 19]
for prime in primes:
sqrt = math.sqrt(prime)
decimalpart = math.modf(sqrt)[0] # modf gets the fractional part of our float
number = int(decimalpart * 2 ** 32) # * 2^32 because we want the first 32 bits of the fractional part
print(hex(number)) # print as hex
arr = {}
def main():
print("Range: ")
r = int(input())
# For each number 0-r
# If number not yet marked off
# mark all multiples of the number that are under r
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
USE ieee.numeric_std.ALL;
ENTITY pwmmer IS
GENERIC (
refgen : std_logic_vector(3 DOWNTO 0) := "0001"
);