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
public void move(String dir) {
Node currentNode = this.head;
String currentDir = dir;
while(currentNode != null) {
currentNode.dir = currentDir; //set the dir of the previous
currentDir = currentNode.dir; //set the currentDir so the next one in line can use it
currentNode.block.moveBlockDir(currentNode.dir); //move the block of the body part on the frame
currentNode = currentNode.next; //set the next so we can get the next node in the linked list
}
}
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <wiringPi.h>
std::string morseString;
bool exec = false;
#include <stdio.h>
#include <iostream>
#include <string>
std::string morseString;
void wait() {
printf("wait\n");
}
void dash() {
#!bin/bash
echo ryan
naam=ryan
echo $naam
echo "hello $naam"
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
}
#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

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:

.tap(function sendSalesUpgradeNotification({ newSubscription, newPayment}) {
const { name, price } = newSubscription.plan;
const { userId } = newPayment;
return mailer.sendSalesNotificationEmail(name, price, userId)
})
function myMeme(string $lmao) {
printf("%s",$string);
}
myMeme("hello");
type job struct {
fn func(...interface{}) interface{}
args []interface{}
}