Skip to content

Instantly share code, notes, and snippets.

View Battletoad21's full-sized avatar

Kylo Bren Battletoad21

View GitHub Profile
# PART ONE
gctr = 0
File.foreach( 'inputs.txt' ) do |line|
l = line
chars = l.split(' ')
climit = chars[0].split('-')
climit1 = climit[0].to_i
climit2 = climit[1].to_i
@Battletoad21
Battletoad21 / index.php
Last active December 1, 2020 15:15
advent_1
Some stuff
<?php
session_start();
if ((isset($_POST['loginname'])) && (!empty($_POST['loginname']))){
$_SESSION['loginname'] = $_POST['loginname'];
header('location: index.php');
exit();
}
if ((isset($_SESSION['loginname'])) && (!empty($_SESSION['loginname']))){
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>File Gun</title>
</head>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
<div>
/La/g
/[0-9]{2}\/[0-9]{2}\/[0-9]{4}/g
/\b[0-9]\/[0-9]{2}/g
/format[a-z]*/g
/\(.*?\)/g
<?php ?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<?php ?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<?php
class Personne {
// Attributs
public $nom;
public $prenom;
public $adresse;
public $dateDeNaissance;
public function __construct($nom,$prenom,$adresse,$dateDeNaissance)
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
--
-- Host: localhost Database: sql2
-- ------------------------------------------------------
-- Server version 5.7.21-0ubuntu0.16.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;