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
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 | |
// 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
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 |
NewerOlder