Skip to content

Instantly share code, notes, and snippets.

Avatar
🏃‍♂️
migrated to my own gitlab and gitlab.com #ByeMicrosoft

Charles-Édouard Coste charlycoste

🏃‍♂️
migrated to my own gitlab and gitlab.com #ByeMicrosoft
View GitHub Profile
@ilhooq
ilhooq / phpls.plugin
Last active Jun 21, 2021
A gnome-builder plugin to provide PHP Language Server integration with Phpactor
View phpls.plugin
[Plugin]
Authors=Sylvain PHILIP <contact@sphilip.com>
Copyright=Copyright © 2021 Sylvain PHILIP
Description=Provides auto-completion for PHP, diagnostics, and other IDE features, working with Phpactor
Loader=python3
Module=phpls_plugin
Name=PHP Language Server Integration
X-Completion-Provider-Languages=php
X-Diagnostic-Provider-Languages=php
X-Formatter-Languages=php
@Benoitlecorre
Benoitlecorre / algo_apb_proper.sql
Last active Jun 16, 2020
Code source d'Admission post-bac envoyé par le ministère de l'Education nationale
View algo_apb_proper.sql
-- Génération automatique de classements aléatoires en production, pour les FNS
-- ===================================
FUNCTION gen_class_aiea_v1_relatif_grp( o_g_ea_cod_ins IN varchar2, o_g_ti_cod IN number, o_c_gp_cod IN number, o_g_tg_cod IN number, iogin IN varchar2, type_login IN number, mode_dev IN number, confirm IN number, saio IN number, nip IN varchar2, indic IN number, mess_err out varchar2, mess_aff out varchar2)
RETURN number IS
retour number;
X varchar2(2);
dummy number;
dummy2 number;
l_c_gp_fIg_seI c_grp.c_gp_flg_sel%type;
@martijnvermaat
martijnvermaat / nixos.md
Last active Jun 12, 2021
Installation of NixOS with encrypted root
View nixos.md
View php-cli_ovh_mutu.md

PHP-CLI (PHP en ligne de commande) sur les hébergements mutualisés OVH

More complete info here http://cluster015.ovh.net/infos/ (thanks to @42antoine)

(cli)

/usr/local/php5.3/bin/php => PHP 5.3.29 (cli) (built: Nov 21 2017 08:55:07)
/usr/local/php5.4/bin/php => PHP 5.4.45 (cli) (built: Nov 21 2017 08:35:51)
/usr/local/php5.5/bin/php => PHP 5.5.38 (cli) (built: Nov 21 2017 08:46:45)
View FadeTransitionRegion.coffee
FadeTransitionRegion = Backbone.Marionette.Region.extend
show: (view)->
@ensureEl()
view.render()
@close ->
return if @currentView and @currentView isnt view
@currentView = view
@mbajoras
mbajoras / loginModule.coffee
Last active Dec 18, 2015
Marionette.js module for my blog article about Marionette.js stateful views.
View loginModule.coffee
# Initializes Marionette.js global application object.
@gApp = new Backbone.Marionette.Application()
# Prepares the DOM by assigning regions to various elements.
@gApp.addInitializer (options) ->
@addRegions(content: 'body')
# Login page controller.
@gApp.module 'LoginPage', (module, app, backbone, marionette, $, _) ->
module.addInitializer (options) ->
View form.html
<!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></title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form method="post" action="/">
<fieldset>
<legend>Login</legend>
@n1k0
n1k0 / proposition.eml
Created Nov 12, 2012
Proposition de conférence parisweb 2011 (archive email)
View proposition.eml
Bonjour,
Sans grand espoir d'être retenu faute d'avoir pu trouver le temps de
formuler plus finement le sujet, je prends tout de un moment pour vous
soumettre une idée de conférence sur une thématique qui me turlupine
depuis plus de 10 ans tant elle pleine d'enjeux et dure à cerner dans
nos métiers…
Le titre (provisoire, car relativement moisi) est "Quand, comment et
pourquoi faut-il savoir dire non ?" (oui, je sais, ça va)
@nhoizey
nhoizey / screenshots.js
Created Nov 12, 2012
Take screenshots at different viewport sizes using CasperJS
View screenshots.js
/*
* Takes provided URL passed as argument and make screenshots of this page with several viewport sizes.
* These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed
*
* Usage:
* $ casperjs screenshots.js http://example.com
*/
var casper = require("casper").create();
@brian-mann
brian-mann / FadeTransitionRegion.js
Created Oct 24, 2012
Allows jQuery animation transitions between marionette regions
View FadeTransitionRegion.js
var FadeTransitionRegion = Backbone.Marionette.Region.extend({
show: function(view){
this.ensureEl();
view.render();
this.close(function() {
if (this.currentView && this.currentView !== view) { return; }
this.currentView = view;