Skip to content

Instantly share code, notes, and snippets.

@kent1D
kent1D / phpcs.xml
Last active September 18, 2017 13:31 — forked from brunob/phpcs.xml
PHP_CodeSniffer pour SPIP
<?xml version="1.0"?>
<ruleset name="SPIP">
<!--
Liens utiles
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
https://github.com/ucfcdl/fuelphp-phpcs/tree/master/Standards/FuelPHP
https://github.com/vanilla/addons/tree/master/standards/Vanilla
-->
<description>Coding rules for SPIP</description>
@brunob
brunob / phpcs.xml
Created December 8, 2015 19:57
PHP_CodeSniffer pour SPIP
<?xml version="1.0"?>
<ruleset name="SPIP">
<!--
Liens utiles
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
https://github.com/ucfcdl/fuelphp-phpcs/tree/master/Standards/FuelPHP
https://github.com/vanilla/addons/tree/master/standards/Vanilla
-->
<description>Coding rules for SPIP</description>
@knarf18
knarf18 / Liste bonnes pratiques sous-titrage web .md
Last active June 19, 2022 13:16
Bonnes pratiques pour un meilleur sous-titrage sur le web

Liste bonnes pratiques sous-titrage web

Bien que certains font l'effort de sous-titrer les vidéos qu'il mettent en ligne sur les différentes plates-formes de type youtube, viméo, je m’aperçois que souvent, le sous-titrage comporte des erreurs qui font que celui-ci devient presque inutile car difficilement lu par les principaux intéressés.

J'ai lu de nombreux articles, tutoriels mais souvent il existe des différences ou ce qui se trouve sur l'un n’apparaît pas sur l'autre.

L'idée est donc d'essayer de mettre en place une liste de bonnes pratiques pour essayer d'améliorer le sous-titrage sourds et malentendants (S-M, S-M-E) sur le web et aider les personnes de bonne volonté à le faire le mieux possible.

Pour l'instant cette liste est une base par rapport à mes multiples lectures à ce sujet qui parfois se contredisent donc elle est là pour être corrigée, améliorée, et que l'on y ajoute tout ce qui peut aider à l'amélioration des sous-titrages sur le web.

@brunob
brunob / backup.sh
Created July 22, 2015 17:05
Simple backup
#!/bin/bash
date=$(date +%Y%m%d)
old=$(date +%Y%m%d -d '7 days ago')
###
# Pamrametres du script
###
# Chemin du repertoire de la sauvegarde
@squarism
squarism / elk_stack_install.md
Last active October 22, 2023 12:25
Quick Elasticsearch / Kibana / Logstash (ELK stack) Install (for your local mac dev box)

Elasticsearch / Kibana / Logstash Quick Install

Instructions for getting an ELK stack set up quick on Mac. Paths are opinionated. You'll have to infer and change. Sorry mate. 🍰

Install Homebrew if not already. You probably have. If not, you should.

brew install elasticsearch nginx

do yourself a favor and get a better services command than launchctl

@eiriklv
eiriklv / component-using-mixin.js
Last active June 4, 2019 09:09
React Masonry Mixin Example
/** @jsx React.DOM */
'use strict';
var React = require('react');
var MasonryMixin = require('./react-masonry-mixin.js');
var masonryOptions = {
transitionDuration: 0
@leftclickben
leftclickben / gist:322b7a3042cbe97ed2af
Last active June 7, 2023 10:58
Steps to migrate from SVN to GitLab

Steps to migrate from SVN to GitLab

This process worked for me. I take no responsibility for any damage or loss incurred as a result of following or not following these steps or, for that matter, anything else you might do or not do.

Setup

  • SVN is hosted at svn.domain.com.au.
  • SVN is accessible via http (other protocols should work).
  • GitLab is hosted at git.domain.com.au and:
@zross
zross / index.html
Last active July 25, 2016 23:57
TopoJSON to LeafletJS Using D3.js
<html>
<head>
<title>HTML5</title>
<!--D3 code stolen from: http://bost.ocks.org/mike/leaflet/#init-->
<!--This file used in blog post Spatial data on a diet: tips
for file size reduction using TopoJSON (http://bit.ly/1jvHiqF)-->
<meta charset="utf-8" />
@guifromrio
guifromrio / compress-pdf-with-gs.md
Created August 30, 2013 14:39
Compress PDF files with ghostscript

This can reduce files to ~15% of their size (2.3M to 345K, in one case) with no obvious degradation of quality.

ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

Other options for PDFSETTINGS:

  • /screen selects low-resolution output similar to the Acrobat Distiller "Screen Optimized" setting.
  • /ebook selects medium-resolution output similar to the Acrobat Distiller "eBook" setting.
  • /printer selects output similar to the Acrobat Distiller "Print Optimized" setting.
  • /prepress selects output similar to Acrobat Distiller "Prepress Optimized" setting.
@msievers
msievers / ungroup_grouped_objects_in_fabricjs.js
Last active October 14, 2022 12:46
Ungroup programatically grouped objects in fabric.js (simply past this code into the "execute" tab of fabricjs kitchensink demo)
// clear canvas
canvas.clear();
// add red rectangl
canvas.add(new fabric.Rect({
width: 50, height: 50, left: 50, top: 50, fill: 'rgb(255,0,0)'
}));
canvas.add(new fabric.Rect({
width: 50, height: 50, left: 110, top: 50, fill: 'rgb(255,0,0)'