Skip to content

Instantly share code, notes, and snippets.

View bazooka07's full-sized avatar

bazooka07 bazooka07

View GitHub Profile
@bazooka07
bazooka07 / gist:f6b801d24c577f93a4084baa000b1869
Last active August 30, 2017 20:07
Emmet with packed Ace
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Ace & Emmet Pack</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<style type="text/css">
#editor { font-size: 12pt; font-family: monospace; }
</style>
</head>
@bazooka07
bazooka07 / download.php
Last active February 18, 2018 09:59
Exemple de page statique pour PluXml : affiche liste de fichiers à télécharger
<div class="scrollable-table">
<table class="download full-width">
<thead>
<th>&nbsp;</th>
<th>Name</th>
<th>Date</th>
<th>Size</th>
<th>Description</th>
</thead>
<tbody>
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# pip3 install IP2Location
# (8.0.0) - Python API for IP2Location database
# https://www.ip2location.com/databases/db3-ip-country-region-city
import IP2Location
import ipaddress
@bazooka07
bazooka07 / qcm.html
Created April 7, 2018 10:44
QCM à Doucement
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Le sport</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<style type="text/css">
body { background-color: #444; font-family: sans-serif; }
.container { max-width: 40rem; padding: 1rem; margin: 50vh auto 0; transform: translateY(-50%); border: 3px outset #ccc; border-radius: 1rem; background-color: #f0f0f0; }
h1 { margin-top: 0; }
diff --git a/core/admin/top.php b/core/admin/top.php
index adcd25b..fe02892 100644
--- a/core/admin/top.php
+++ b/core/admin/top.php
@@ -21,10 +21,7 @@ if(isset($_GET["del"]) AND $_GET["del"]=="install") {
<link rel="stylesheet" type="text/css" href="<?php echo PLX_CORE ?>admin/theme/fonts/fontello.css?ver=<?php echo PLX_VERSION ?>" media="screen" />
<link rel="icon" href="<?php echo PLX_CORE ?>admin/theme/images/favicon.png" />
<?php if(is_file(PLX_ROOT.$plxAdmin->aConf['custom_admincss_file'])) echo '<link rel="stylesheet" type="text/css" href="'.PLX_ROOT.$plxAdmin->aConf['custom_admincss_file'].'" media="screen" />'."\n" ?>
- <?php
- if(file_exists(PLX_ROOT.$plxAdmin->aConf['racine_plugins'].'admin.css'))
<!DOCTYPE html>
<html lang="en">
<head>
<title>Clique-moi partout</title>
<meta charset="utf-8" />
<meta name="description" content="https://forum.alsacreations.com/topic-20-83298-1.html" />
<style>
body { background-color: #444; }
#congrats, form { width: 20rem; margin: 50vh auto 0; padding: 0.3rem 1rem; transform: translateY(-50%); background-color: #e8e8e8; text-align: center; border-radius: 1.5rem; }
p.warning { display: none; color: red; background-color: yellow; }
@bazooka07
bazooka07 / 4.html
Last active May 25, 2018 16:25
My Dear Diary ( démo gallery)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/style.css"/>
<link rel="stylesheet" href="css/galerie.css"/>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
@bazooka07
bazooka07 / inscriptions.json
Last active May 27, 2018 13:22
Voir forum http://forum.pluxml.org/viewtopic.php?id=6267 - Gestion des inscriptions à un studio de danses
{
"Orientale": {
"places": 20,
"titre": "Danse orientale moderne / Bollywood [mardi 19h - 15 ans et plus]",
"cotisation": 90,
"inscrits": [
"Lolita",
"Séhérazade",
"Salima",
"Patricia"
@bazooka07
bazooka07 / responsive.php
Last active May 30, 2018 15:14
Affiche une page dans différentes résolutions ( http://forum.pluxml.org/viewtopic.php?id=6283 )
<!DOCTYPE html>
<?php $url = 'https://www.mydevice.io/'; ?>
<html lang="en"><head>
<meta charset="utf-8" />
<title>Responsive Design</title>
<style>
body { background: #444; margin: 0; padding: 0; font-family: Sans-Serif; }
header { position: sticky; top: 0; padding: 0.3rem 0; background: inherit; text-align: center; z-index: 99; }
form { padding: 0.3rem 1rem 0; }
form input[type="text"] { width: 30rem; }
@bazooka07
bazooka07 / del-column.php
Created May 31, 2018 21:41
Hit a cross for hidding a column or a row
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hit a cross for hidding a column or a row</title>
<!-- See at https://forum.alsacreations.com/topic-5-83353-1.html -->
<!-- Play at https://codepen.io/bazooka07/pen/pKJaQa -->
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<style>
body { font-family: 'Noto Sans', Ubuntu, Arial; background: #666; }
table { border-collapse: collapse; border: 1px solid #444; background: #fff; }