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 | |
namespace Drupal\contextual\Plugin\views\field; | |
use Drupal\Component\Serialization\Json; | |
use Drupal\Component\Utility\Html; | |
use Drupal\Component\Utility\UrlHelper; | |
use Drupal\Core\Routing\RedirectDestinationTrait; | |
use Drupal\Core\Url; | |
use Drupal\views\Plugin\views\field\Links; |
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 | |
# Add Vagrant's NFS setup commands to sudoers, for `vagrant up` without a password | |
# Updated to work with Vagrant 1.3.x | |
# Stage updated sudoers in a temporary file for syntax checking | |
TMP=$(mktemp -t vagrant_sudoers) | |
cat /etc/sudoers > $TMP | |
cat >> $TMP <<EOF | |
# Allow passwordless startup of Vagrant when using NFS. |
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
name = block_plugin | |
core = 7.x | |
dependencies[] = ctools |
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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
/** | |
* "Extend" using mixin | |
*/ | |
@mixin clearfix() { | |
&:before, |
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
public function transformDocument($docSource, $docDestination, $tempDir = null, $options = array(), $version = null) | |
{ | |
if (file_exists(dirname(__FILE__) . '/TransformDocAdv.inc')) { |
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 | |
$array = array( | |
'145' => 4, | |
'213' => 99, | |
'etc' => 'etc', | |
); | |
var_dump(isset($array['145'])); // Returns FALSE | |
var_dump(array_key_exists(145, $array)); // Returns 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
$process->setCommandLine(str_replace('\'&&\'', '&&', $process->getCommandline())); |
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
jQuery('input[type="checkbox"]').each(function(index, elem) { jQuery(elem).prop('checked', 'checked'); }); |
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 | |
function blgg_ord_helper($string) { | |
mb_internal_encoding("UTF-8"); | |
$char = mb_substr($string, 0, 1); | |
return hexdec(bin2hex($char)); | |
} |
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 | |
/** | |
* Class voor de communicatie met api.postcodeapi.nu | |
*/ | |
class PostcodeAPI { | |
/** | |
* @var String API URI | |
*/ | |
const API_URI = 'http://api.postcodeapi.nu'; |
NewerOlder