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 | |
/** | |
* This is the shared deployer code I use in my projects. I put it | |
* somewhere in the filesystem and then, in each SilverStripe project, | |
* I add `deploy.php`: | |
* ``` | |
* <?php | |
* require '/path/to/my/deployer-silverstripe4.php'; | |
* Deployer\set('application', 'my_application_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
Core/Injector/InjectorLoader | |
instance | |
Core/Injector/Injector | |
instance | |
Core/Config/ConfigLoader | |
instance | |
Core/ClassInfo | |
_cache_all_tables | |
_cache_ancestry | |
_cache_parse |
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
#include <stdio.h> | |
#include <string.h> | |
#include <math.h> | |
#include <unistd.h> // for sleep function | |
#include <libserialport.h> // cross platform serial port lib | |
//#include "protocol.h" | |
const char* desired_port = "COM8"; |
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 | |
// Code submitted by Nicola Fontana <[email protected]> | |
Director::addRules(100, array('hangman/$Tiles' => 'Hangman')); | |
class Hangman extends Controller { | |
public function index(SS_HTTPRequest $request) { | |
if(!($this->Tiles = $request->param('Tiles'))) { | |
$reflection = new ReflectionClass(array_rand(ClassInfo::allClasses())); | |
Session::set('Word', $reflection->name); // Just to have the class name in CamelCase | |
} | |
$this->Word = Session::get('Word'); |