Skip to content

Instantly share code, notes, and snippets.

View sdboyer's full-sized avatar

sam boyer sdboyer

View GitHub Profile
=== RUN Test
OK: 74 passed
--- PASS: Test (0.00 seconds)
PASS
ok github.com/sdboyer/gogl 0.012s
=== RUN TestTslGeneration
--- PASS: TestTslGeneration (0.00 seconds)
PASS
ok github.com/sdboyer/gogl/dfs 0.008s
? github.com/sdboyer/gogl/generator [no test files]
<?php
class BlockNGInterface extends HtmlFragmentInterface, ConfigurablePluginInterface, PluginFormInterface, PluginInspectionInterface /*, CacheableInterface */ {
public function access(AccountInterface $account);
public function getMachineNameSuggestion();
// public function build(); // DIE DIE DIE
}

Keybase proof

I hereby claim:

  • I am sdboyer on github.
  • I am sdboyer (https://keybase.io/sdboyer) on keybase.
  • I have a public key whose fingerprint is 5FB9 1E0E 872C 304B B86F BCAB 8FFE 23FE E335 4C06

To claim this, I am signing this object:

{
"targets": [
{
"ipv4": "10.1.0.1"
},
{
"ipv4": "10.1.0.2"
}
],
"app-state": {
package transduce_mode_s
// HELLO FRIEND. this is an example implementation of transducers in Go,
// created in response to a suggestion on the golang-nuts mailing list:
// https://groups.google.com/d/msg/golang-nuts/pt8hRcvzeIQ/QXfLxvJrt5kJ
//
// this is untested (since it's mock code anyway), and may well contain
// bugs. as long as they're minor, that's fine, because this is just intended
// as an illustrative example.
@sdboyer
sdboyer / gist:825176
Created February 13, 2011 21:48
merge horribleness
Original LCAS:
set(['drumm@delocalizedham.com-20110114031905-tf0ean18fij48avq',
'hudson@util.drupal.org-20101231175052-vh23b2wb4m4fuyrf',
'hudson@util.drupal.org-20110115180021-3pa9rxlzj0b4m7ux',
'hudson@util.drupal.org-20110116201349-pt6bqho1lfldzmev',
'hudson@util.drupal.org-20110124022445-53hs3ux2ek0fjw23',
'hudson@util.drupal.org-20110126103810-nz8z9m6uk958031d',
'killes@util.drupal.org-20101222010347-tqtq6pn8q9g3622d'])
Using LCAS:
set(['hudson@util.drupal.org-20110115180021-3pa9rxlzj0b4m7ux'])
@sdboyer
sdboyer / plugin-type-controllers.php
Created March 31, 2011 22:57
gibbering funlets working on plugin type controller interfaces
<?php
interface PluginControllerInterface {
/**
* Retrieve plugin metadata for the named plugin of this type.
*/
public function getPluginMetadata($name);
/**
* Retrieve plugin metadata for all plugins of this type.
*/
@sdboyer
sdboyer / .gitconfig
Created April 13, 2011 16:08 — forked from rfay/.gitconfig
# Put this in your .gitconfig
[url "ssh://git@git.drupal.org/sandbox/"]
insteadOf = "dos:"
[url "ssh://git@git.drupal.org/project/"]
insteadOf = "do:"
@sdboyer
sdboyer / gist:2901057
Created June 9, 2012 13:57
quicker search of namespace array in universal class loader
<?php
foreach ($this->namespaces as $ns => $dirs) {
if (0 !== strpos($namespace, $ns)) {
continue;
}
foreach ($dirs as $dir) {
$file = $dir.DIRECTORY_SEPARATOR.$normalizedClass;
if (is_file($file)) {
return $file;
[root@git6staging drupalfr.git]# ls -la
total 472
drwxrwsr-x 6 drupal-git drupal-git 4096 Feb 25 2011 .
drwxrwsr-x 12171 drupal-git drupal-git 446464 May 12 16:21 ..
drwxrwsr-x 2 drupal-git drupal-git 4096 Feb 25 2011 branches
-rw-rw-r-- 1 drupal-git drupal-git 668 Feb 25 2011 config
-rw-rw-r-- 1 drupal-git drupal-git 104 Feb 25 2011 description
-rw-rw-r-- 1 drupal-git drupal-git 23 Feb 25 2011 HEAD
lrwxrwxrwx 1 drupal-git drupal-git 32 May 10 09:07 hooks -> /var/git/templates/hooks/project
drwxrwsr-x 2 drupal-git drupal-git 4096 Feb 25 2011 info