Skip to content

Instantly share code, notes, and snippets.

View Sander-Kastelein's full-sized avatar

Sander Kastelein Sander-Kastelein

  • Kastelein ICT
  • The Netherlands
View GitHub Profile
@Sander-Kastelein
Sander-Kastelein / voorbeeld2.cs
Last active January 20, 2016 11:46
beter voorbeeld
static int getOnvoldoendesByStudent(Student student)
{
int onvoldoendeCount = 0;
foreach(Exam exam in exams)
{
if(exam.Student == student && exam.Score < 5.5m)
{
onvoldoendeCount++;
}
}
static void Main(string[] args)
{
Console.WriteLine(getWorstStudentName());
Console.ReadLine();
}
static string getWorstStudentName()
@Sander-Kastelein
Sander-Kastelein / csharp
Created December 17, 2015 12:35
csharp
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace ConsoleApplication1
{
class Program
double frontRightX = frontMiddleX + (width / frontInverseWidth * Math.Cos(rot + Math.PI * .5));
double frontRightY = frontMiddleY + (width / frontInverseWidth * Math.Sin(rot + Math.PI * .5));
double frontLeftX = frontMiddleX + (width / frontInverseWidth * -Math.Cos(rot + Math.PI * .5));
double frontLeftY = frontMiddleY + (width / frontInverseWidth * -Math.Sin(rot + Math.PI * .5));
@Sander-Kastelein
Sander-Kastelein / angular-sails.js
Last active May 6, 2021 10:22
just a little hack to make it work for me
/*! angular-sails-bind - v1.0.5 - 2014-05-20
* https://github.com/diegopamio/angular-sails-bind
* Copyright (c) 2014 Diego Pamio; Licensed MIT */
/*global angular:false */
/*global io:false */
/**
* Angular service to handle SailsJs resources.
*
* @author Diego Pamio - Github: diegopamio