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
| 1. TrashReg > all with name WinLicense 1.x | |
| 2. Del > c:\ProgramData\flwjycbm.bab |
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
| npm install -g browser-sync | |
| browser-sync start --files "/srv/www/crm/public_html/sites/all/themes/crm/css/*.css" --proxy --port 4000 | |
| //kill process | |
| sudo netstat -lpn |grep :4000 | |
| fuser -n tcp -k 4000 | |
| /// after add js file before </body> and go to http://194.177.20.106:3009/ |
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
| $view = views_get_view('lp_promoted_content'); | |
| $display_id = 'promoted_content'; | |
| // Set the display and arguments based on the pane's context. | |
| $view->set_display($display_id); | |
| $args = $view->args; | |
| $args[0] = $node->nid; | |
| $view->set_arguments($args); | |
| // ADD THESE 2 LINES IN TO REMOVE ERRORS |
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
| $result = views_get_view_result('my_view_name', 'default', $arg1, $arg2, ...); |
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
| drupal_add_js(array('YOURMODULE' => array('testvar' => $testvar)), array('type' => 'setting')); | |
| And in your JavaScript, you can the access the value in Drupal.settings.YOURMODULE.testvar: | |
| alert(Drupal.settings.YOURMODULE.testvar); |
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
| git clone --branch 7.x-1.x http://git.drupal.org/sandbox/mnico/2178611.git nodejs_debug |
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
| sudo npm -g install forever | |
| export PATH=$PATH:/usr/local/bin | |
| export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules | |
| ln -s /usr/bin/nodejs /usr/bin/node | |
| forever start test.js |
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
| '#value' => t('Edit this field'), | |
| '#value' => t('<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>'), |
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
| $url = "https://mysite.com/test/1234?email=xyz4@test.com&testin=123"; | |
| $query_str = parse_url($url, PHP_URL_QUERY); | |
| parse_str($query_str, $query_params); | |
| print_r($query_params); |
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
| # to map child array element without bu parent position | |
| $data = array_values($request)[0]; |