This file contains 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
print("je") |
This file contains 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 re | |
import sqlite3 | |
import string | |
from pathlib import Path | |
from pprint import pprint | |
import jwt | |
from faker import Faker | |
This file contains 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
.contacts { | |
display: grid; | |
width: 90%; | |
grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); | |
gap: 1.5rem; | |
margin: auto; | |
} | |
.contact { |
This file contains 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 django.db import models | |
#from django.contrib.auth.models import User | |
#class Category(models.Model): | |
# name = models.CharField(max_length=36) | |
#class BlogPost(models.Model): | |
# title = models.CharField(max_length=50) |
This file contains 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
if max_nb_chars < 25: | |
# join words | |
while not text: | |
size = 0 | |
# determine how many words are needed to reach the $max_nb_chars | |
# once; | |
while size < max_nb_chars: | |
word = (self.word_connector if size else '') + \ | |
self.word(ext_word_list=ext_word_list) | |
text.append(word) |
This file contains 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 the Servo library | |
#include <Servo.h> | |
Servo ServoPen; // create a servo object | |
unsigned short sensors_enabled = 0; | |
const unsigned short touch_sensor_pin = 10; | |
const unsigned short servo_pen_pin = 9; | |
const unsigned short ball_pin = 2; |
This file contains 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 <Arduino.h> | |
#include <TimeLib.h> | |
#include <LiquidCrystal.h> | |
#include <Wire.h> | |
#define CURRENT_TIMESTAMP 1631014463 | |
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
byte smile[8] = { 0b00000, 0b00000, 0b01010, 0b00000, 0b10001, 0b01110, 0b00000, 0b00000 }; // :) | |
byte no_smile[8] = { 0b00000, 0b00000, 0b01010, 0b00000, 0b01110, 0b10001, 0b00000 ,0b00000 }; // :( |