Skip to content

Instantly share code, notes, and snippets.

View fabulousduck's full-sized avatar
💭
building compilers and assemblers

Ryan Vlaming fabulousduck

💭
building compilers and assemblers
View GitHub Profile
func (algorithm *algorithm) putRandomCandidateSolutions(dataPoints []point, amount int){
for i := 0; i < amount; i++ {
algorithm.candidateSolutions = append(algorithm.candidateSolutions,randomSolution(dataPoints))
}
}
func randomSolution(dataPoints []point) []point {
candidateSolution := []point{dataPoints[0]}
func (algorithm *algorithm) putRandomCandidateSolutions(dataPoints []point, amount int){
for i := 0; i < amount; i++ {
algorithm.candidateSolutions = append(algorithm.candidateSolutions,randomSolution(dataPoints))
}
}
func randomSolution(dataPoints []point) []point {
dpC := dataPoints
//solution with start point
type job struct {
fn func(...interface{}) interface{}
args []interface{}
}
function myMeme(string $lmao) {
printf("%s",$string);
}
myMeme("hello");
.tap(function sendSalesUpgradeNotification({ newSubscription, newPayment}) {
const { name, price } = newSubscription.plan;
const { userId } = newPayment;
return mailer.sendSalesNotificationEmail(name, price, userId)
})

Keybase proof

I hereby claim:

  • I am fabulousduck on github.
  • I am fabulousduck (https://keybase.io/fabulousduck) on keybase.
  • I have a public key whose fingerprint is EA91 3476 2814 AE38 CFB8 F760 81F7 3D1F 154D 8691

To claim this, I am signing this object:

#ifndef _NKH_
#define _NKH_
#include <GL/glew.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#define NK_INCLUDE_FIXED_TYPES
#define NK_INCLUDE_STANDARD_IO
#define NK_INCLUDE_STANDARD_VARARGS
private void updateVehicle(double dt) {
this.position.x += Math.cos ( Math.PI * this.orientation / 180.0) * dt *
(this.leftWheel.getSpeed () + this.rightWheel.getSpeed ()) / 2;
this.position.y += Math.sin ( Math.PI * this.orientation / 180.0) * dt *
(this.leftWheel.getSpeed () + this.rightWheel.getSpeed ()) / 2;
this.position.orientation += 0.5 * dt * ( this.rightWheel.getSpeed() - this.leftWheel.getSpeed());
this.position.orientation = ( this.position.orientation + 360) % 360; // keep orientation within range 0 -360
}
#!bin/bash
echo ryan
naam=ryan
echo $naam
echo "hello $naam"
#include <stdio.h>
#include <iostream>
#include <string>
std::string morseString;
void wait() {
printf("wait\n");
}
void dash() {