Skip to content

Instantly share code, notes, and snippets.

Raymon S raymonschouwenaar

Block or report user

Report or block raymonschouwenaar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@raymonschouwenaar
raymonschouwenaar / var-global-function.js
Last active Aug 5, 2019
JavaScript Scoping Var Global
View var-global-function.js
var globalVariable;
globalVariable = 'I Love Pizza!';
function iChangeTheVariable() {
globalVariable = [59, 600, 843];
}
iChangeTheVariable();
View howitshouldbe.js
function average(numbers) {
let total = 0;
for (let i = 0; i < numbers.length; i++) {
total += numbers[i];
}
return total / numbers.length;
}
@raymonschouwenaar
raymonschouwenaar / day1.md
Last active May 27, 2019
NG Vikings 2019 - Notes day 1
View day1.md

Top things

  • Angular Schematics

John Papa

  • Angular Launch Angular

  • vikings2019-ext

View index.js
const jsonServer = require('json-server')
const server = jsonServer.create()
const middlewares = jsonServer.defaults()
const port = process.env.PORT || 3000
server.use(jsonServer.bodyParser)
server.use(middlewares)
server.listen(port, () => {
console.log('JSON Server is running')
View index.js
const casual = require('casual').nl_NL
View index.js
const casual = require('casual')
@raymonschouwenaar
raymonschouwenaar / index.js
Last active Mar 27, 2019
/users/index.js
View index.js
module.exports = () => {
casual.define("user", function() {
return {
name: casual.first_name,
surname: casual.last_name,
address: casual.street,
phone: casual.phone,
email: casual.email,
postalCode: casual.zip,
city: casual.city,
View program.js
const ANIMALS = [
{
date: '2019-02-10',
location: 'A',
code: 1,
},
{
date: '2019-03-17',
location: 'B',
code: 15,
@raymonschouwenaar
raymonschouwenaar / bingo.py
Last active Feb 18, 2018
Custom (NL) Music Bingo cards - with Python! Thanks to http://matthiaseisen.com/articles/bingo/
View bingo.py
# The MIT License (MIT)
#
# Copyright (c) 2014 Matthias Eisen (http://www.matthiaseisen.com)
# Edit by Raymon Schouwenaar
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@raymonschouwenaar
raymonschouwenaar / report.json
Created Jan 15, 2018
Lighthouse report: raymonschouwenaar.nl - 15-01-2018
View report.json
This file has been truncated, but you can view the full file.
You can’t perform that action at this time.