This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am infojunkie on github. | |
* I am kratib (https://keybase.io/kratib) on keybase. | |
* I have a public key whose fingerprint is 242A D815 51B9 39D4 7013 0F1F E814 5192 B6EA 54BC | |
To claim this, I am signing this object: |
This file contains 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 = Token Theme | |
description = Create tokens for theme settings. | |
core = 7.x |
This file contains 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
// Taken from: https://gist.github.com/1170000 | |
// Gremlin user-defined defined tree() steps | |
// inTree() and outTree() | |
// closure can't have the same name as the defined step | |
_tree = { vertices -> | |
def results = [] | |
vertices.each() { | |
results << it |
This file contains 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
#!/usr/bin/env php | |
<?php | |
$_SERVER['HTTP_USER_AGENT'] = 'cli'; | |
$cwd = getcwd(); | |
$dir = dirname(__FILE__) . '/..'; | |
chdir($dir); | |
include('includes/bootstrap.inc'); | |
drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE); |
This file contains 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 | |
/** | |
* Implements hook_views_data_alter(). | |
*/ | |
function views_join_translation_views_data_alter(&$data) { | |
$data['node']['translation']['relationship']['join_handler'] = 'views_join_translation'; | |
} | |
/** |
This file contains 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 | |
/** | |
* Implements hook_views_query_alter(). | |
*/ | |
function demo_i18n_views_query_alter(&$view, &$query) { | |
unset($query->relationships['node_node']); | |
unset($query->relationships['node_node_1']); | |
unset($query->relationships['node_node_2']); | |
unset($query->table_queue['node_node']); |
This file contains 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
#!/usr/bin/python | |
import sys | |
from music21 import * | |
mf = midi.MidiFile() | |
mf.open(sys.argv[1]) | |
mf.read() | |
s = midi.translate.midiFileToStream(mf) | |
for n in s.flat.notes: | |
for p in n.pitches: |
This file contains 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
license: gpl-3.0 | |
height: 300 |
This file contains 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
#!/usr/bin/php | |
<?php | |
require('PHPExcel/Classes/PHPExcel.php'); | |
$workbook = PHPExcel_IOFactory::load($argv[1]); | |
$sheet = $workbook->getSheet(0); | |
foreach ($rit = $sheet->getRowIterator() as $row) { | |
foreach ($cit = $row->getCellIterator() as $cell) { | |
echo $cell->getCoordinate() . " - "; |
This file contains 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
"scripts": { | |
"test": "mocha --grep /${TEST:-'.*'}/i", | |
}, |
OlderNewer