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
//our landed costs | |
ocn = 1000 | |
fsc = 75 | |
//our material cost | |
material_cost = 1000 | |
unit_landed = (ocn / material_cost) + (fsc / material_cost); //this summation would loop for each cost code. | |
//unit_landed will be $1.075 a unit in this example. |
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
//let drush have some memory. | |
if (drupal_is_cli()) { | |
ini_set('memory_limit', '2048M'); | |
} |
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
<snippet> | |
<tabTrigger>dlog</tabTrigger> | |
<content><![CDATA[ | |
watchdog('${TM_FILENAME/([^.]*)\..*$/$1/}', '${1}Mylog %data', array('%data' => ${2}), ${3}WATCHDOG_ERROR, ${4}null); | |
]]></content> | |
</snippet> |
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
<a href="http://www.adctoday.com/diagnostix/embed" target="_blank" onClick="window.open(this.href,'mywindow','width=920,height=700,resizable=yes,location=no,scrollbars=yes'); return false;"><img src="http://www.adctoday.com/sites/default/files/embed_button.png"></a> |
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
//example of building a link from an text field. | |
$nid = 1; | |
$node = node_load($nid); | |
$field = field_get_items('node', $node, 'field_link'); | |
$link = array( | |
'#theme' => 'link', | |
'#text' => $field[0]['safe_value'], | |
'#path' => $field[0]['safe_value'], | |
'#options' => array( |
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 nickgs on github. | |
* I am nickgs (https://keybase.io/nickgs) on keybase. | |
* I have a public key whose fingerprint is 030E 3C42 3D23 3948 CF5B D186 CF31 48D2 87E5 915F | |
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
<?php | |
function myblock1() { | |
$blocks = array(); | |
$blocks['myblock1'] = array( | |
'info' => t("Block 1"), | |
); | |
//... |
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
<a href="http://www.adctoday.com/diagnostix/embed" target="_blank" onClick="window.open(this.href,'mywindow','width=920,height=700,resizable=yes,location=no,scrollbars=yes'); return false;"><img src="http://www.adctoday.com/sites/default/files/embed_button.png"></a> |
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
$conf['mail_system'] = array( | |
'default-system' => 'DevelMailLog', | |
); | |
$conf['devel_debug_mail_directory'] = '/tmp/develmail'; |
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
Verifying my Blockstack ID is secured with the address 19pMr7PMm8bVyCeCN7xbNbmxfpiqH51k8n https://explorer.blockstack.org/address/19pMr7PMm8bVyCeCN7xbNbmxfpiqH51k8n |
OlderNewer