This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ezcPersistentXmlManager extends ezcPersistentDefinitionManager | |
{ | |
private $file; | |
public function __construct( $file ) | |
{ | |
if( file_exists($file) ) | |
$this->file = $file; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.onmousemove = function(e){ | |
var rect = document.getElementById('r'); | |
rect.setAttribute('x',e.clientX-(rect.getAttribute('width')/2)); | |
rect.setAttribute('y',e.clientY-(rect.getAttribute('height')/2)); | |
}; | |
document.onclick = function(e){ | |
var point = document.createElementNS("http://www.w3.org/2000/svg",'rect'); | |
var rect = document.getElementById('r'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<w:p> | |
<w:pPr> | |
<w:pStyle w:val="Corpsdetexte"/> | |
<w:numPr> | |
<w:ilvl w:val="0"/> | |
<w:numId w:val="15"/> | |
</w:numPr> | |
<w:tabs> | |
<w:tab w:val="left" w:pos="0" w:leader="none"/> | |
</w:tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
login = "<login>" | |
password = "<password>" | |
directory = "<directory>" | |
organization = "<organization>" | |
casper = require('casper').create | |
verbose: true | |
logLevel: "debug" | |
getLinks = -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ancien solde | |
/^01(.{5})(.{4})(.{5})(.{3})(.{1})(.{1})(.{11})(.{2})(.{6})(.{50})(.{14})(.{16})$/ | |
Mouvement | |
/^04(.{5})(.{4})(.{5})(.{3})(.{1})(.{1})(.{11})(.{2})(.{6})(.{2})(.{6})(.{31})(.{2})(.{7})(.{1})(.{1})(.{14})(.{16})$/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dir = './Relevés/'; | |
$files = scandir($dir); | |
$regex = [ | |
'/SOLDE INTERMEDIAIRE[^\d]+([\d ]+,\d{2})/'=>'intermediaire', | |
'/^\s+$/'=>'vide', | |
'/du \d{2}.\d{2}.\d{4} au \d{2}.\d{2}.\d{4}.*N°\s+\d+/'=>'numérotation', | |
'/RELEVE DE COMPTE COURANT/'=>'Titre', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Perceptron | |
{ | |
private $weights; | |
public function __construct($n) | |
{ | |
for ($i=0; $i<$n; $i++) { | |
$this->weights[$i] = rand()/getrandmax()-0.5; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Movable extends Backbone.View | |
events: | |
'mousedown': 'grab' | |
'mouseup': 'release' | |
'mouseleave': 'release' | |
'mousemove': 'move' | |
'mouseover': -> @$el.css 'cursor', 'grab' | |
move: (e)-> | |
return unless @moving |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E=" crossorigin="anonymous"></script> | |
<script> | |
$(function(){ | |
$('body').html($('#tpl-form').html()); | |
}); | |
$(document).on('submit', function(e){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: build install test | |
build: | |
composer install --no-scripts | |
bin/console assets:install | |
bin/console sylius:install:assets | |
bin/console sylius:theme:assets:install | |
yarn install | |
yarn run build | |
yarn encore dev |