http://www.wellnet.it/en/blog/webprofiler-meets-devel
https://speakerdeck.com/johnkary/writing-extensible-code-using-event-dispatcher
| <?php | |
| /** | |
| * @file | |
| * Local development override configuration feature. | |
| * | |
| * To activate this feature, copy and rename it such that its path plus | |
| * filename is 'sites/example.com/settings.local.php', where example.com | |
| * is the name of your site. Then, go to the bottom of | |
| * 'sites/example.com/settings.php' and uncomment the commented lines that |
| <?php | |
| use Drupal\Core\Url; | |
| function hal_theme_theme_suggestions_select_alter(&$suggestions, &$vars, $hook) | |
| { | |
| // This will grab the view_id from the request | |
| $request = \Drupal::request()->attributes->get('view_id'); | |
| if (!empty($request)) { | |
| $suggestions[] = 'select__' . $request; |
I will be following the official documentation here but they take some things for granted, many users could get frustrated and confused that's why I created this gist.
I have downloaded the mongo files in my root user directory for example: /Users/israel/mongodb therefore if you want to do the same first enter cd in your terminal.
then enter pwd command in your terminal and you should be able to se something similar to /Users/<yourmacuser>
If the previous is correct you may want to proceed and open the terminal then download the tar:
| arraynumbers = [5,2,1,4,9,12,4,3,2,12]; | |
| completed = false; | |
| while(!completed) { | |
| function reOrder() { | |
| for (var i = 0; i < arraynumbers.length; i++) { | |
| if(compareTwo(arraynumbers[i], arraynumbers[i+1]) || isEqual(arraynumbers[i], arraynumbers[i+1])) { | |
| tmp = arraynumbers[i+1]; | |
| arraynumbers[i+1] = arraynumbers[i]; | |
| arraynumbers[i] = tmp; | |
| console.log(arraynumbers); |
| /** Module **/ | |
| var MyModule = (function() { | |
| var DEFAULT = { | |
| param: 'Hello World' | |
| } | |
| return { | |
| name: 'Israel Morales!', | |
| say: 'Because YOLO!', | |
| speak: function() { | |
| console.log('Hello World'); |
| /** | |
| * Function | |
| */ | |
| function myfunction() { | |
| $variables = array( | |
| 'message' => 'Hi Bitches!', | |
| 'name' => 'Monk' | |
| ); | |
| return theme('mobile-nav', $variables); | |
| } |
| #block-system-main-menu { | |
| ul.menu { | |
| li { | |
| display: inline-block; | |
| padding-bottom: 9px; | |
| ul { | |
| display: none; | |
| padding-left: 0; | |
| background: #ffffff; | |
| border: 1px solid #000000; |
| App.Person.reopenClass({ | |
| FIXTURES: [ | |
| { | |
| id: 1, | |
| name:'Israel Morales', | |
| age: 30, | |
| position: 'Web Developer', | |
| gender:'Male', | |
| },{ | |
| id: 2, |