Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
building compilers and assemblers

Ryan Vlaming fabulousduck

💭
building compilers and assemblers
View GitHub Profile
View thing.java
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
}
}
View main.cpp
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <wiringPi.h>
std::string morseString;
bool exec = false;
View gist:d8ce224c17a088be51f2545a26fbb0df
#include <stdio.h>
#include <iostream>
#include <string>
std::string morseString;
void wait() {
printf("wait\n");
}
void dash() {
View gist:0021526b475d06d77dfd675146674b32
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
}
View m.h
#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
View keybase.md

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:

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