-
Install Homebrew:
$ ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) $ brew install git $ brew update
$ brew install drush
| <?php | |
| include_once './includes/bootstrap.inc'; | |
| drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); | |
| drupal_flush_all_caches(); | |
| ?> |
This article walks you through how to get the ID of any YouTube video.
You may be watching the video or just happened to visit a link to a video. The video ID will be located in the URL of the video page, right after the v= URL parameter.
Note: Unix-like systems only.
code --list-extensions | sed -e 's/^/code --install-extension /' > my_vscode_extensions.shJust migrated it from Codepen.io to markdown. Credit goes to David Conner.
| Working with DOM | Working with JS | Working With Functions |
|---|---|---|
| Accessing Dom Elements | Add/Remove Array Item | Add Default Arguments to Function |
| Grab Children/Parent Node(s) | Add/Remove Object Properties | Throttle/Debounce Functions |
| Create DOM Elements | Conditionals |
| <?php | |
| /** | |
| * Get Vimeo video id from url | |
| * | |
| * Supported url formats - | |
| * | |
| * https://vimeo.com/11111111 | |
| * http://vimeo.com/11111111 |
| <?php | |
| // Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored) | |
| // http://youtu.be/dQw4w9WgXcQ | |
| // http://www.youtube.com/embed/dQw4w9WgXcQ | |
| // http://www.youtube.com/watch?v=dQw4w9WgXcQ | |
| // http://www.youtube.com/?v=dQw4w9WgXcQ | |
| // http://www.youtube.com/v/dQw4w9WgXcQ | |
| // http://www.youtube.com/e/dQw4w9WgXcQ | |
| // http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ |
| <?php> | |
| function myfunction($app) { | |
| // ~~ Core. | |
| // debug($app); | |
| // dump($app); | |
| // var_dump($app); | |
| // ~~ Devel + kint library + settings | |
| // dpr($app); | |
| // kint($app); |