Skip to content

Instantly share code, notes, and snippets.

View fabiotnt's full-sized avatar

Fabio Nicolau fabiotnt

View GitHub Profile
@fabiotnt
fabiotnt / convertMP4ToGifs.sh
Last active July 16, 2023 19:26
Simple Bash Script using FFMpeg to convert MP4 files to GIF
#!/bin/bash
#Check Dependecies
if ! command -v ffmpeg &> /dev/null
then
echo "ffmpeg command could not be found. It's a dependency to run this script"
exit
fi
if ! command -v ffprobe &> /dev/null
@fabiotnt
fabiotnt / robot.js
Created December 5, 2012 17:03 — forked from Ghabriel/robot.js
Robot04
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.rotateCannon(360);
@fabiotnt
fabiotnt / robot.js
Created December 5, 2012 17:00
The Monkey
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@fabiotnt
fabiotnt / robot.js
Created December 5, 2012 16:56 — forked from Shipow/robot.js
Shipow#001
var Robot = function(robot) {
robot.rotateCannon(-90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead();
//i'll add a clone but i need to refactor collision
//robot.clone();
};
@fabiotnt
fabiotnt / gist:4215723
Created December 5, 2012 14:02
HowIDeleteThis?
We couldn’t find that file to show.
@fabiotnt
fabiotnt / robot.js
Created December 5, 2012 05:54 — forked from cgardner/robot.js
derp
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if (robot.parentId) {
robot.ahead(1);
robot.turnGunRight(1);
}
else {