Skip to content

Instantly share code, notes, and snippets.

View ForestMars's full-sized avatar
๐Ÿ’ญ
๐‘โ„Ž=๐‘๐‘ (๐›ผโˆ—(๐‘๐‘–+๐‘๐‘œ))

Forest Mars ForestMars

๐Ÿ’ญ
๐‘โ„Ž=๐‘๐‘ (๐›ผโˆ—(๐‘๐‘–+๐‘๐‘œ))
View GitHub Profile
<?php
/**
* @file
* Contains \Drupal\node\Plugin\Core\Condition\NodeType.
*/
namespace Drupal\node\Plugin\Core\Condition;
use Drupal\condition\Plugin\ConditionPluginBase;
@ForestMars
ForestMars / gist:3379937
Created August 17, 2012 15:32 — forked from davereid/custom.admin_menu.inc
Useful Drupal 7 functions
<?php
/**
* Implements hook_block_view().
*/
function custom_block_view($delta) {
$function = 'custom_block_view_' . strtr($delta, '-', '_');
module_load_include('inc', 'custom', 'custom.blocks');
if (function_exists($function)) {
return $function();
@ForestMars
ForestMars / hack.sh
Created April 1, 2012 00:38 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#