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 | |
$colors = [ | |
1 => '#7E7EEB', | |
'#D483E5', | |
'#F693DB', | |
'#EF6B8F', | |
'#EF9A5A', | |
'#FBD263', | |
'#C0DC83', |
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 | |
parse_yaml() { | |
local prefix=$2 | |
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') | |
sed -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \ | |
-e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | | |
awk -F$fs '{ | |
indent = length($1)/2; | |
vname[indent] = $2; | |
for (i in vname) {if (i > indent) {delete vname[i]}} |
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
# Go to personnal deploy folder | |
cd ~/deploy/ | |
# Enter to SF source forlder | |
cd semantic_forms_play-1.0-SNAPSHOT | |
# Stops running application | |
./scripts/stop.sh | |
# ? Go to forms | |
cd /var/www/data/scala/forms_play/ | |
# ? Script missing | |
./scripts/update_server.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 | |
/** | |
* @file | |
* User Profile2 MYPROFILE2TYPE. | |
*/ | |
/** | |
* Page callback for user profile2 MYPROFILE2TYPE form. | |
*/ | |
function MYMODULE_load_profile2_MYPROFILE2TYPE_form($form, &$form_state, $user = NULL) { |
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
function YOURMODULE_form($form, &$form_state) { | |
$form = array(); | |
$form['myfield'] = array( | |
'#type' => 'text', | |
'#value' => 'Do Cool Things', | |
); | |
return $form; | |
} | |
/** |