This file contains hidden or 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 | |
| # Convert a GSettings schema dump to a set of shell commands that | |
| # populates the schema with the same values. | |
| # Example usage: | |
| # ```bash | |
| # gsettings list-recursively org.gnome.desktop.interface | ./gsettings-restore | |
| # gsettings set org.gnome.desktop.interface accent-color 'blue' | |
| # gsettings set org.gnome.desktop.interface avatar-directories '[]' | |
| # gsettings set org.gnome.desktop.interface can-change-accels false |
This file contains hidden or 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. Put it | |
| * somewhere in your filesystem and then, for each Silverstripe project, | |
| * add a `deploy.yaml` similar to this one: | |
| * ```yaml | |
| * import: /path/to/deployer8-silverstripe6.php | |
| * | |
| * config: |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 <ntd@entidi.it> | |
| 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'); |