This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
currentDirectory=$(dirname "$PWD/$0") | |
cd $currentDirectory/roms/snes | |
$currentDirectory/scraper \ | |
-output_file="$currentDirectory/emulationstation/gamelists/snes/gamelist.xml" \ | |
-rom_path="/recalbox/share/roms/snes" \ | |
-download_images=true \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core_options_path = /recalbox/configs/retroarch/cores/retroarch-core-options.cfg | |
system_directory = /recalbox/share/bios/ | |
config_save_on_exit = false | |
video_threaded = true | |
#aspect_ratio_index = "21" | |
video_aspect_ratio_auto = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
processor : 0 | |
model name : ARMv7 Processor rev 5 (v7l) | |
BogoMIPS : 57.60 | |
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm | |
CPU implementer : 0x41 | |
CPU architecture: 7 | |
CPU variant : 0x0 | |
CPU part : 0xc07 | |
CPU revision : 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
snapshotDir=/path/to/backup/dir | |
if [ -d $snapshotDir/daily.2 ] | |
then | |
rm -rf $snapshotDir/daily.2 | |
fi | |
if [ -d $snapshotDir/daily.1 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source=myLogin@hostname: | |
snapshotDir=/path/to/backup/dir | |
if [ -d $snapshotDir/hourly.3 ] | |
then | |
rm -rf $snapshotDir/hourly.3 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$image = file_get_contents('/path/to/file'); | |
$base64 = base64_encode($image); | |
echo 'data:image/png;base64,'.$base64."\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Get parameters | |
$arguments = $_SERVER['argv']; | |
array_shift($arguments); | |
if (empty($arguments)) { | |
die("File path is undefined\n"); | |
} | |
$filePath = array_shift($arguments); | |
if (!is_file($filePath)) { | |
die("File not found : $filePath\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function __get($name) | |
{ | |
if (method_exists($this, "get_$name")) { | |
return $this->{"get_$name"}(); | |
} else if (method_exists($this, "set_$name")) { | |
throw new Exception("Writeonly property $name"); | |
} else { | |
throw new Exception("Undefined property $name"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Here we go, show the magazine */ | |
$('#viewer').booklet({ | |
width: bookWidth * 2, | |
height: bookHeight, | |
speed: 750, | |
pagePadding: 0, | |
pageNumbers: false, | |
closed: true, | |
autoCenter: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
this.mainInstance; | |
this.enemyFound = false; | |
setInterval(this.move, 1000); | |
}; | |
Robot.prototype.move = function() { |
OlderNewer