👀 VISION To give music lovers better access to more artists | |||
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 Student | |
{ | |
readonly studentnummer : number; | |
readonly volledigenaam : string; | |
constructor(nummer : number, naam : string) | |
{ | |
this.studentnummer = nummer; | |
this.volledigenaam = naam; | |
} |
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
@extends('adminlte::page') | |
@section('title', '[Title as shown in browser tab]') | |
@section('content_header') | |
<h1>Title as shown on top of page</h1> | |
@stop | |
@push('js') | |
{{-- place your javascripts here --}} |
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
// include the library code: | |
#include <LiquidCrystal.h> | |
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2; | |
LiquidCrystal lcd(rs, en, d4, d5, d6, d7); | |
void setup() { | |
lcd.begin(16, 2); | |
lcd.print("program me daddy"); | |
lcd.setCursor(0,1); |
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 | |
//Now, let's play | |
$returnText = 'You have not played yet. Select your weapon and hit the Play button'; | |
if (userHasValidSelection()) { | |
$userChoice = $_GET['userSelect']; | |
//Let the computer make a choice | |
$computerChoice = letComputerChoose(); | |
//Now, let's play, and return the result text! | |
$returnText = "The server chose $computerChoice. "; | |
$result = compare($userChoice, $computerChoice); |
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
/** | |
* This class represents a mathematical (Euclidian) Vector mainly used in | |
* physics and engineering to represent directed quantities. Basically it's | |
* responsible for holding a x- and y-coordinate, length and angle. It can also | |
* perform basic vector operations like adding, subtracting and scaling. | |
* | |
* The state of a vector object is immutable. This means that it is by design | |
* not allowed to change the internal state of the vector. The different | |
* computation methods that perform different computations like adding, | |
* subtracting, scaling and mirroring all return a new Vector object or just a |
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\Console\Commands; | |
use App\User; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Hash; | |
class CreateAdminCommand extends Command | |
{ |
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\Rules; | |
use Illuminate\Contracts\Validation\Rule; | |
class StrongPassword implements Rule | |
{ | |
/** | |
* Create a new rule instance. |
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
/** | |
* This class handles the keyboard events. It knows the last known state of its | |
* keys | |
* | |
* Some parts of this class are pretty complex, but the class itself is fairly | |
* easy to use. You just instantiate one object in your game and us the method | |
* `isKeyDown()` to check if a specific key is currently pressed down by the | |
* user. | |
* | |
* NOTE: It is known that the MouseEvent.keyCode property is deprecated, which |
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
/** | |
* This class implements a game loop using the "Play catch up" method. It will | |
* update the game using a fixed time step because that makes everything simpler | |
* and more stable for physics and AI. But it will allow flexibility in when we | |
* render in order to free up some processor time. | |
* | |
* It goes like this: A certain amount of real time has elapsed since the last | |
* turn of the game loop. This is how much game time we need to simulate for the | |
* game’s “now” to catch up with the player’s. We do that using a series of | |
* fixed time steps. |
OlderNewer