AppChat
<html>| const gulp = require('gulp') | |
| const batch = require('gulp-batch') | |
| const plumber = require('gulp-plumber') | |
| const notify = require('gulp-notify') | |
| const gutil = require('gulp-util') | |
| const source = require('vinyl-source-stream') | |
| const buffer = require('vinyl-buffer') | |
| const pug = require('gulp-pug') | |
| const sass = require('gulp-sass') | |
| const postcss = require('gulp-postcss'); |
| * { | |
| box-sizing: border-box; | |
| } | |
| .App { | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| bottom: 0; | |
| left: 0; |
| <?php | |
| // Ajoute l'image à la une aux pages et articles | |
| add_theme_support( 'post-thumbnails' ); | |
| set_post_thumbnail_size( 1200, 800, true ); | |
| // Déclare des tailles d'images | |
| function image_size() { | |
| add_image_size( 'post-list', 600, 200, true ); | |
| } |
| <?php | |
| /** | |
| * The default template for displaying content | |
| * | |
| * Used for both single and index/archive/search. | |
| * | |
| * @package WordPress | |
| * @subpackage Twenty_Fifteen | |
| * @since Twenty Fifteen 1.0 | |
| */ |
| <?php | |
| $yearsStart = $wpdb->get_col("SELECT YEAR(FROM_UNIXTIME((meta_value / 1000))) FROM wp_postmeta WHERE meta_key LIKE 'start_date' ORDER BY meta_value ASC"); | |
| $yearsEnd = $wpdb->get_col("SELECT YEAR(FROM_UNIXTIME((meta_value / 1000))) FROM wp_postmeta WHERE meta_key LIKE 'end_date' ORDER BY meta_value ASC"); | |
| $tempyears = array_unique(array_merge($yearsStart, $yearsEnd)); | |
| $currentYear = date('Y'); | |
| $currentMonth = date('m'); | |
| foreach (array_unique($yearsStart) as $year) { | |
| if($year >= $currentYear) { |
| /* | |
| |¯¨´ `¨¯| .-----------------------. | |
| \ ` ´ / | This script | | |
| \ ` ´ / | will output | | |
| ' `´ ' | something like this | | |
| / ´ ` \ | dummy-team.github.io | | |
| | dummy `| '-----------------------' | |
| `~------~´ |
| name = require('optimist').argv.name | |
| if name | |
| name = '../export/' + name + '.zip' | |
| else | |
| now = new Date() | |
| Y = now.getFullYear() | |
| M = now.getMonth()+1 | |
| D = now.getDate() | |
| H = now.getHours() | |
| name = '../export/music-story-static-'+Y+'-'+M+'-'+D+'-'+H+'h.zip' |
| function Class(variante) { | |
| this.methods[variante] | |
| return this; | |
| } | |
| Class.prototype.bar = function(a, b) { | |
| return a + b; | |
| }; | |
| Class.prototype.methods = { | |
| bim: function() { |