Provider | Singleton | Instantiable | Configurable |
---|---|---|---|
Constant | Yes | No | No |
Value | Yes | No | No |
Service | Yes | No | No |
Factory | Yes | Yes | No |
Decorator | Yes | No? | No |
Provider | Yes | Yes | Yes |
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
<<CONNECT 8BITDO ZERO CONTROLLER TO POCKET CHIP AND CONFIGURE PICO-8>> | |
info gathered via https://bbs.nextthing.co/t/usb-controller-for-pico-8-on-pocketc-h-i-p/5077/8 | |
just follow the following steps | |
-=first pair controller using bluetooth=- | |
1. open terminal on pocketCHIP (or ssh using putty or something else with a regular keyboard) | |
2. type "bluetoothctl" to enter interactive shell |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
# Named boxes, like this one, don't need a URL, since the are looked up |
When dealing with arrays in PHP, checking for an index like if ($a['foo'])
throws a PHP warning.
There are two ways to avoid these warnings: one is using isset(), which checks the existance of an array index. The second one is empty(), which not only checks for the existence of the array index, but also that the value that contains is not empty (not NULL, 0, '' or FALSE).
Here are some console examples:
juampy@juampybox $ php -a
php > $a = array('foo' => 'asdfasd');
php >
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
/** | |
* Implements field_group_build_pre_render_alter. | |
*/ | |
function iniciativas_field_group_build_pre_render_alter(&$element) { | |
if (!isset($element['#view_mode']) && isset($element['group_edit_datos_basicos'])) { | |
$element['group_edit_datos_basicos'] += array( | |
'#states' => array( | |
'visible' => array( | |
'#edit-field-iniciativa-tipo-und' => array('value' => 'individual'), | |
), |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="YOUR_PROJECT_NAME" default="build" basedir="."> | |
<property name="source" value="src"/> | |
<property name="ignore" value="build"/> | |
<target name="clean" | |
description="Clean up and create artifact directories"> | |
<delete dir="${basedir}/build/api"/> | |
<delete dir="${basedir}/build/code-browser"/> |