Skip to content

Instantly share code, notes, and snippets.

Avatar

Vitor Santos rockerbacon

View GitHub Profile
@rockerbacon
rockerbacon / floatpoint-associativity-problems-example.c
Created Aug 6, 2020
Showcase of float point associativity "problems"
View floatpoint-associativity-problems-example.c
/*
* This small program is designed to showcase associativity problems with float point numbers
* Even though both sums below are mathematicaly equivalent, they differ in float point arithmetic
*/
#include <stdio.h>
#include <math.h>
int main (void) {
@rockerbacon
rockerbacon / run-parsec.sh
Created Jul 29, 2018
Bash script for easily running Parsec's web app in Linux distros. Remember to edit the PARSEC_APP variable according to your browser
View run-parsec.sh
#!/bin/bash
#Command for running the web app
PARSEC_APP="google-chrome-stable ui.parsecgaming.com"
#PARSEC_APP="google-chrome --profile-directory=Default --app-id=heklcdmcmclhhhaholelehcafdpbemdn"
#If the daemon is already running, you can either restart the daemon or attempt to join the web app with the currently running daemon
#This variable determines if a join is to be attempted
ATTEMPT_JOIN_DAEMON=false
You can’t perform that action at this time.