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