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
\documentclass{article} | |
\usepackage{amsmath} | |
\usepackage{amssymb} | |
\usepackage{parskip} | |
\author{Or something \\ \small By Luc} | |
\title{Math by intuition} | |
\begin{document} | |
\begin{titlepage} |
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 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.
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
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' | |
}); |
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 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) |
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 <Servo.h> | |
//todo trigger pin echo pin distout distin | |
// linksachter motor2 | |
// linksvoor M1 | |
// rechtsvoor m4 | |
// rechtsachter m3 | |
bool manual = 0; |
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
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; |
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 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 |
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
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 |
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 ieee; | |
USE ieee.std_logic_1164.ALL; | |
USE ieee.numeric_std.ALL; | |
ENTITY pwmmer IS | |
GENERIC ( | |
refgen : std_logic_vector(3 DOWNTO 0) := "0001" | |
); |