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
base_config: &base_config | |
base_image: ubuntu | |
dns: | |
- 8.8.8.8 | |
- 8.8.4.4 | |
containers: | |
- lb: | |
config: &lb_container_config | |
<<: *base_config | |
user: haproxy |
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 | |
// module code | |
function hook_form_alter(&$form, &$form_state) { | |
$form['field_foo'][LANGUAGE_NONE][0]['value']['#description_top'] = $form['field_foo'][LANGUAGE_NONE]['#description']; | |
} | |
?> | |
<?php | |
// template.php |
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
from twisted.internet import inotify | |
from twisted.python import filepath | |
import zmq | |
from pprint import pprint | |
class FileSystemWatcher(object): | |
def __init__(self, path_to_watch): | |
self.path = path_to_watch | |
self.context = zmq.Context() |
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 | |
/** | |
* @file | |
* Provides a web service for logging in. | |
*/ | |
/** | |
* Implements hook_menu(). | |
*/ | |
function altlogin_menu() { |
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 | |
/* | |
* Password Hashing With PBKDF2 (http://crackstation.net/hashing-security.htm). | |
* Copyright (c) 2013, Taylor Hornby | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright notice, |
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
angular.module('kalabox.dprogress', []) | |
.directive('dprogress', ['_', function (_) { | |
var bar_data = []; | |
function makeChart() { | |
var chart = d3.select('#chart') | |
.append("div").attr("class", "chart") | |
.selectAll('div') | |
.data(bar_data) |
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
drush cr | |
drush pmu commerce_payment_example -y | |
composer remove drupal/commerce_payment_example | |
drush pmu commerce_payment -y | |
drush pmu commerce_checkout -y | |
drush pmu commerce_cart -y | |
drush pmu commerce_order -y | |
drush pmu commerce_product -y | |
drush pmu commerce_store -y | |
drush pmu commerce_price -y |
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/sh | |
source ~/.bashrc | |
platform project:list --pipe|awk '{cmd="platform snapshot:create --no-wait -q -e master -p "$1; print cmd}'|sh |
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 Motorcycle { | |
private $make; | |
private $model; | |
/** | |
* Returns the motorcycle make. | |
* | |
* @return string The motorcycle make |
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 App\Command; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Console\Style\SymfonyStyle; |
OlderNewer