This is a series of MATLAB style relational operators for Handlebars.
- eq - equal to
- ne - not equal to
- lt - less than
- gt - greater than
| /* | |
| * Handling Errors using async/await | |
| * Has to be used inside an async function | |
| */ | |
| try { | |
| const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
| // Success 🎉 | |
| console.log(response); | |
| } catch (error) { | |
| // Error 😨 |
| <?php | |
| /** | |
| * Filter a few parameters into YouTube oEmbed requests | |
| * | |
| * @link http://goo.gl/yl5D3 | |
| */ | |
| function iweb_modest_youtube_player( $html, $url, $args ) { | |
| return str_replace( '?feature=oembed', '?feature=oembed&modestbranding=1&showinfo=0&rel=0', $html ); | |
| } | |
| add_filter( 'oembed_result', 'iweb_modest_youtube_player', 10, 3 ); |
This is a series of MATLAB style relational operators for Handlebars.