This file contains hidden or 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
| /* TRIANGLE */ | |
| .triangle { | |
| width: 0; | |
| height: 0; | |
| border-width: 10px; | |
| border-style: solid; | |
| border-color: transparent; | |
| font-size: 0; | |
| } |
This file contains hidden or 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
| import math | |
| import sys | |
| ''' | |
| python haar.py | |
| python haar.py 1 5 3 1 | |
| ''' | |
| def wrap(value, ubound): |
This file contains hidden or 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
| sites: | |
| apidoc: | |
| scheme: http | |
| host: apidoctest.elephone.vb | |
| api: | |
| scheme: http | |
| host: api.elephone.vb | |
| nginx_sites: | |
| <<<<<<< HEAD |
This file contains hidden or 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 | |
| use Illuminate\Database\Migrations\Migration; | |
| use Illuminate\Session\FileSessionHandler; | |
| use Illuminate\Session\DatabaseSessionHandler; | |
| use Symfony\Component\Finder\Finder; | |
| /** | |
| * @author Bouke Versteegh | |
| */ |
This file contains hidden or 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
| Constanten gebruiken voor ENUM waardes | |
| <?php | |
| class Ticket { | |
| /** | |
| * @ORM\Column(type="string", nullable=false, options={"default":"available"}, columnDefinition="enum('available','assigned','blocked','cancelled')") | |
| */ | |
| public $status = 'available'; | |
| } | |
| $ticket = new Ticket(); |
This file contains hidden or 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; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Relations\BelongsToMany; | |
| use Illuminate\Database\Eloquent\Relations\HasMany; | |
| /** | |
| * Class BaseModel |
This file contains hidden or 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
| /** | |
| * Sorts all arrays together with the first. Pass either a list of arrays, or a map. Any key is accepted. | |
| * Array|Object arrays [sortableArray, ...otherArrays]; {sortableArray: [], secondaryArray: [], ...} | |
| * Function comparator(?,?) -> int optional compareFunction, compatible with Array.sort(compareFunction) | |
| */ | |
| function sortArrays(arrays, comparator = (a, b) => (a < b) ? -1 : (a > b) ? 1 : 0) { | |
| let arrayKeys = Object.keys(arrays); | |
| let sortableArray = Object.values(arrays)[0]; | |
| let indexes = Object.keys(sortableArray); | |
| let sortedIndexes = indexes.sort((a, b) => comparator(sortableArray[a], sortableArray[b])); |
This file contains hidden or 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
| // run this script in your browser on: | |
| // | |
| // https://dartpad.dev/000ff368df58b18627652d5c6dc2cfc3 | |
| import 'dart:math'; | |
| // number of participants: | |
| const n_participants = 18300; | |
| // that will receive a skill between: |
This file contains hidden or 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
| void main() { | |
| print(Number.one); | |
| print(Number.two); | |
| print(Number.three); | |
| print(Number.fromInt(1)); | |
| print(Number.fromInt(2)); | |
| print(Number.fromInt(3)); | |
| print(Number.fromString('1')); |
This file contains hidden or 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
| import 'dart:io'; | |
| import 'dart:math'; | |
| import 'dart:typed_data'; | |
| const KB = 1024; | |
| const MB = 1024 * KB; | |
| const GB = 1024 * MB; | |
| const sizes = {'B': 1, 'KB': KB, 'MB': MB, 'GB': GB}; | |
| const blockSize = 16 * MB; |