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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
namespace Generator | |
{ |
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
$xmlReader = new XMLReader(); | |
$xmlReader->open(dirname(__FILE__) . self::XML_FILE_PATH); | |
while ($element = $this->getNextElementFromXML($xmlReader, "Rubrique")) { | |
} | |
/** | |
* return an array of the next element specified |
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
def print_rangoli(size): | |
lineWidth = 3 + (4*(size-1)) - 2 | |
chars = [] | |
for i in range(0, size): | |
chars.append(chr(96+size-i)) | |
counter = 0 | |
s = "" | |
sarr = [] | |
for val in chars: | |
if counter == 0 : |
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
def minion_game(string): | |
wordlistKevin = [] | |
vowels = ['A', 'E', 'I', 'O', 'U'] | |
scoreKevin = 0 | |
scoreStuart = 0 | |
for i in range (0, len(string)): | |
for j in range(i+1, len(string)+1): | |
if string[i] in vowels: | |
scoreKevin += 1 | |
else: |
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
// | |
// PoneyContainer.swift | |
// PetitPonaay | |
// | |
// Created by Developer on 20/03/2017. | |
// Copyright © 2017 Developer. All rights reserved. | |
// | |
import Foundation |
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
// ==UserScript== | |
// @name LogicImmo | |
// @namespace hide stuff | |
// @description Hide scams | |
// @include http://www.logic-immo.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
//Remove useless stuff |
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
//Apply filter behaviour after the document is finished loading | |
$(document).on('as4-After-Document-Ready', () => { | |
new Filters() | |
}); | |
/** | |
* Controls the bevahiour of the filter container | |
*/ | |
class Filters { | |
constructor() { |
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
/** | |
* Initiliaze the thumbnailslider | |
*/ | |
$(document).ready(() => { | |
new thumbnailSlider(); | |
}); | |
/** | |
* Thumbnail slider for products with more then a configurable amount of images (3 by default) | |
*/ |
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
# docker-compose.yml | |
version: '3.7' | |
networks: | |
default: | |
name: local | |
services: | |
mysql: | |
image: mysql:5.7 |
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 | |
namespace App\Model; | |
use App\Entity\Adresse; | |
use App\Entity\Client; | |
use App\Entity\DetailsDevis; | |
use App\Entity\Entreprise; | |
use App\Entity\Produit; |
OlderNewer