Skip to content

Instantly share code, notes, and snippets.

View sun's full-sized avatar
👌
Happy

Daniel Kudwien sun

👌
Happy
View GitHub Profile
@sun
sun / 0_reuse_code.js
Created April 14, 2016 01:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@sun
sun / ConfigObject.php
Created May 29, 2012 05:59
simple config object
<?php
namespace Drupal\Core\Config;
use Drupal\Core\Config\StorageInterface;
class ConfigObject {
protected $name = '';
@sun
sun / gist:2822341
Created May 29, 2012 03:20
config() new
<?php
function config($name, $config_class = NULL, $storage_class = NULL) {
static $config_instances = array(), $storage_instances = array();
// Set defaults.
if (!isset($config_class)) {
$config_class = 'Drupal\Core\Config\DrupalConfig';
}
if (!isset($storage_class)) {
# d.o collaboration
- http://drupal.org/project/issues/webmasters
- http://drupal.org/project/issues/infrastructure
- http://drupal.org/project/issues/drupalorg
- http://drupal.org/project/issues/project
- http://drupal.org/project/issues/project_issue
# Code
- http://drupal.org/project/issues/git_dev
- http://drupal.org/project/issues/project_git_instructions