Skip to content

Instantly share code, notes, and snippets.

View devnullone's full-sized avatar
🏠
Working from home

/dev/null devnullone

🏠
Working from home
View GitHub Profile
@devnullone
devnullone / acme.md
Last active December 5, 2023 20:35
Flask project setup

Install Flask

pip install Flask

Save depemdancies

pip freeze > requirement.txt

Checkig dependancie (Not Mandatory)

Go on pypi.org

@devnullone
devnullone / frame.html
Created February 9, 2023 11:24
flysearchapp frame
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- favicon -->
<!--<link rel="shortcut icon" href="{% static 'favicon.ico' %}" />-->
<?php
namespace App\Controllers;
use App\Models\ClientModel;
class Client extends BaseController
{
public $appname = 'Systeme de Collecte Automatiser des Déchets';
public $appnameshort = 'SYCAD';
import urllib.parse
url = "http://stackoverflow.com/search?q=question"
params = {'lang':'en','tag':'python'}
url_parts = urllib.parse.urlparse(url)
query = dict(urllib.parse.parse_qsl(url_parts.query))
query.update(params)
new_url = url_parts._replace(query=urllib.parse.urlencode(query)).geturl()
@devnullone
devnullone / Composer.json
Created June 21, 2022 18:06
Conposer Json file with all requirement to install net_routeros library
{
"require": {
"twbs/bootstrap": "5.1.3",
"pear2/net_transmitter": "1.0.0b1",
"pear2/cache_shm": "dev-develop",
"pear2/console_color": "dev-develop",
"pear2/console_commandline": "dev-master",
"phpunit/phpunit": "@stable",
"squizlabs/php_codesniffer": "@stable",
"pear2/net_routeros": "1.0.0b6"
@devnullone
devnullone / dbb
Last active June 17, 2022 00:50
Dossier 3 BTS 2016 TOGO Algorithmique TOGO
#include <stdio.h>
#include <stdlib.h>
int CalculEtudiantDepart(int, int matrice[5][3]);
CalculEtudiantAge(int j, int matrice[5][3]);
int main()
{ // <20 20-25 >25
// F1 4 5 2
// F2 7 3 1
// F3 5 8 9
// F4 12 4 7
@devnullone
devnullone / MariaDB Database Spring Boot application.properties
Last active June 9, 2022 03:02
Database Spring Boot Configuration (application.properties)
# ===============================
# = DATA SOURCE
# ===============================
# Set here configurations for the database connection
spring.datasource.url=jdbc:mariadb://localhost:3306/springboot_mariadb
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
# Keep the connection alive if idle for a long time (needed in production)
spring.datasource.testWhileIdle=true
# 10_basic.py
# 15_make_soup.py
# 20_search.py
# 25_navigation.py
# 30_edit.py
# 40_encoding.py
# 50_parse_only_part.py