Skip to content

Instantly share code, notes, and snippets.

View noobermin's full-sized avatar

noobermin

View GitHub Profile
/*
* Animal Crossing Toy Day on an Arduino, by noobermin (or awindywalker)
*
* Everything except the transcription of the song is in the public domain.
*/
// The tone library conflicts with the Arduino core `tone` and `noTone` routines! They
// register the similar ISR's leading to a conflict. It is needed though as `tone` doesn't work
// with more than one buzzer (port).
// What I did to make it work is I deleted the file in a clean copy of the arduino IDE, commented
#PBS -l walltime=1:00:00
#PBS -l select=2:ncpus=32:mpiprocs=32
#PBS -N debugrun
#PBS -S /bin/bash
#PBS -j oe
#PBS -m ae
#PBS -M [email protected]
#PBS -A __projectid__
#PBS -q debug
@noobermin
noobermin / noif.c
Last active February 5, 2016 06:21
triangle numbers no ifs
#include <stdio.h>
/* to compile
* cc noif.c -o noif
*
* Usage: ./noif
* ./noif <N>
* where <N> is an integer.*/
fn(int n){ ((n>0) && (n = fn(n-1)+n)) || (n = 0); return n; }
main(int argc, char *argv[]){
>>> Completed installing gcc-5.1.0 into /var/tmp/portage/cross-avr/gcc-5.1.0/image/
removing executable bit: usr/lib64/libcc1.la
* QA Notice: Package triggers severe warnings which indicate that it
* may exhibit random runtime failures.
* /var/tmp/portage/cross-avr/gcc-5.1.0/work/gcc-5.1.0/gcc/config/avr/gen-avr-mmcu-texi.c:84:17: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
* Please do not file a Gentoo bug and instead report the above QA
* issues directly to the upstream developers of this software.