{
"version": "0.2.0",
"configurations": [
{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceRoot}/target/debug/${workspaceRootFolderName}",
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
private static void CreateRandomTempFile(string fileName, long lengthInMb) | |
{ | |
// https://stackoverflow.com/questions/4432178/creating-a-random-file-in-c-sharp | |
byte[] data = new byte[lengthInMb * 1024 * 1024]; | |
Random rng = new Random(); | |
rng.NextBytes(data); | |
File.WriteAllBytes(fileName, data); | |
} |
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
# Hoe een leerling toevoegen | |
1. Ga naar www.vrijzinniggrootlier.be | |
2. Ga op de homepage helemaal naar vanonder. | |
3. Klik op de link Leraars. | |
4. Geef je eigen code in (zie Excel bestand met de codes). | |
5. Nu kan je ofwel een nieuwe leerling toevoegen, aanpassen of verwijderen. | |
6. Kijk goed na dat de leerling in de juiste school en feest zit. |
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
# Hoe een leerling toevoegen | |
1. Ga naar www.vrijzinniggrootlier.be | |
2. Ga op de homepage helemaal naar vanonder. | |
3. Klik op de link Leraars. | |
4. Geef je eigen code in (zie Excel bestand met de codes). | |
5. Nu kan je ofwel een nieuwe leerling toevoegen, aanpassen of verwijderen. | |
6. Kijk goed na dat de leerling in de juiste school en feest zit. |
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
{ | |
name: 'Het molentje', | |
city: 'Lier', | |
teachers: [ | |
{ | |
_id: 1111111, | |
name: 'Jan Piet' | |
}, | |
{ | |
_id: 2222222, |
I experienced that installing your Postgres database server on your local machine as a Docker container is not that evident. So this explains how you need to do it and what you need to take into account.
To setup your Postgres Docker container you need to run:
docker run -d -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=mysecretpassword --name postgres-server -p 5432:5432 -v pgdata:/var/lib/postgresql/data --restart=always postgres
And to run your pgadmin instance as a Docker container:
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "debian/jessie64" | |
config.vm.network :forwarded_port, guest: 3000, host: 3000 | |
config.vm.network :forwarded_port, guest: 15672, host: 15672 | |
config.vm.network :forwarded_port, guest: 5672, host: 5672 | |
config.vm.network :forwarded_port, guest: 5671, host: 5671 |
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
require 'sinatra' | |
get '/hi' do | |
"Hello world!" | |
end |
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
public class TipCalculatorViewModel : INotifyPropertyChanged | |
{ | |
private readonly TipCalculation _model; | |
private readonly ITipCalculatorRepository _repository; | |
public event PropertyChangedEventHandler PropertyChanged; | |
public TipCalculatorViewModel(ITipCalculatorRepository repository) | |
{ | |
_model = new TipCalculation(); |
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
public class Guest : UntypedActor | |
{ | |
private IActorRef _receptionist; | |
public Guest() | |
{ | |
var receptionist = Context.ActorSelection("/user/Klara"); | |
receptionist.Tell(new Identify("111"), Self); | |
} |
NewerOlder