Skip to content

Instantly share code, notes, and snippets.

View damiankloip's full-sized avatar

Damian Lee damiankloip

View GitHub Profile
@damiankloip
damiankloip / git-next-tag
Last active May 22, 2018 10:38
git next-tag script
#!/bin/sh
if ! [ -x "$(command -v semver)" ]; then
echo 'Error: semver is not installed. Install using `npm install --global --save semver`' >&2
exit 1
fi
# Get tags ordered correctly, and take the last one.
last="$(git tag --sort=v:refname | tail -n1)"
@damiankloip
damiankloip / keybase.md
Created August 3, 2017 10:16
keybase.md

Keybase proof

I hereby claim:

  • I am damiankloip on github.
  • I am damiankloip (https://keybase.io/damiankloip) on keybase.
  • I have a public key ASA52s524Oq3WxZhqwr2xtupiOpKQ-EfNIkDGMLMM-27igo

To claim this, I am signing this object:

wapply = "!f() { wget -O - $@ | git apply --index --3way; }; f"
<?php
/**
* @file
* Contains \Drupal\Core\Entity\EntityIterator.
*/
namespace Drupal\Core\Entity;
/**
diff --git a/src/OgAccess.php b/src/OgAccess.php
index 7ec5120..74cc29b 100644
--- a/src/OgAccess.php
+++ b/src/OgAccess.php
@@ -27,7 +27,6 @@ class OgAccess {
*/
protected static $permissionsCache = [];
-
/**
diff --git a/docroot/core/modules/views/src/Form/ViewsExposedForm.php b/docroot/core/modules/views/src/Form/ViewsExposedForm.php
index 36118c6..fe70bb1 100644
--- a/docroot/core/modules/views/src/Form/ViewsExposedForm.php
+++ b/docroot/core/modules/views/src/Form/ViewsExposedForm.php
@@ -155,7 +155,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
}
$view = $form_state->get('view');
- $view->exposed_data = $form_state->getValues();
+ $view->exposed_data = $form_state->getUserInput();
<?php
/**
* @file
* Contains \Drupal\Component\Utility\StringBuilder.
*/
namespace Drupal\Component\Utility;
/**
localhost:3060
gzip
ext .html
log log/access.log
errors {
log log/errors.log
}
package main
import (
"os"
"fmt"
"regexp"
"path/filepath"
"github.com/codegangsta/cli"
)
<?php
/**
* @file
* Contains \Drupal\Component\Discovery\YamlDirectoryIterator.
*/
namespace Drupal\Component\Discovery;
class YamlDirectoryIterator extends \FilterIterator {