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
| <section class="comments"> | |
| <div class="g-comments" data-href="{{@blog.url}}{{url}}" data-first_party_property="BLOGGER" data-view_type="FILTERED_POSTMOD">Loading Google+ Comments ...</div> | |
| <script async type="text/javascript" src="//apis.google.com/js/plusone.js?callback=gpcb"></script> | |
| <noscript>Please enable JavaScript to view the <a href="https://plus.google.com/">comments powered by Google+.</a></noscript> | |
| </section> |
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
| useradd someuser | |
| mkdir -p /home/someuser/www | |
| mount --bind /var/www /home/someuser/www | |
| chmod g+s /home/someuser/www | |
| chown -R someuser:www-data /home/someuser/www | |
| setfacl -d -m g::rwx /home/someuser/www | |
| # In /etc/fstab file ... | |
| /var/www /home/someuser/www none bind 0 0 |
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
| var asyncEach = function(array, fn, callback, chunk, context) { | |
| context = context || window; | |
| chunk = chunk || 100; | |
| var index = 0; | |
| function process() { | |
| var count = chunk; | |
| while (count-- && index < array.length) { | |
| // callback called with args (value, index, array) | |
| fn.call(context, array[index], index, array); |
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
Show hidden characters
| { | |
| // -------------------------------------------------------------------- | |
| // JSHint Configuration, Strict Edition | |
| // -------------------------------------------------------------------- | |
| // | |
| // This is a options template for [JSHint][1], using [JSHint example][2] | |
| // and [Ory Band's example][3] as basis and setting config values to | |
| // be most strict: | |
| // | |
| // * set all enforcing options to true |
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
| <?php | |
| // Fill the informations below with your own credentials | |
| $domain = 'http://my-domain.com'; | |
| $data = array( | |
| 'grant_type' => "password", | |
| 'username' => "[MY_MAIL_ADDRESS]", | |
| 'password' => "[MY_PASSWORD]", | |
| 'client_id' => "ghost-admin" | |
| ); |
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
| #!/bin/bash | |
| download_path=. | |
| name=default | |
| osmosis_path=../osmosis/bin | |
| bbox=2.25151,46.96151,2.55981,47.19391 | |
| usage() | |
| { | |
| cat << EOF |
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
| @echo off | |
| set iconcache=%localappdata%\IconCache.db | |
| echo The Explorer process must be killed to delete the Icon DB. | |
| echo. | |
| echo Please SAVE ALL OPEN WORK before continuing. | |
| echo. | |
| pause | |
| echo. | |
| If exist "%iconcache%" goto delID |
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
| // ES6 for loops | |
| // ============= | |
| // Things in ES6 can be "iterable". Arrays are iterable by default. | |
| var fruits = ['Apple', 'Banana', 'Grape']; | |
| for (var fruit of fruits) | |
| console.log('Fruit: ' + fruit); |
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
| var api = ($q, $http, $log) => { | |
| let get = (api, params) => { | |
| let defered = $q.defer(); | |
| // Let's encode our params | |
| for (let key of Object.keys(params)) { | |
| params[key] = encodeURI(params[key]); | |
| } | |
| // Build our http request |
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
| export default function Component ({ | |
| restrict = "E", | |
| replace = true, | |
| scope = {}, | |
| bindToController = {}, | |
| controllerAs = "ctrl", | |
| controller = () => {}, | |
| template = null, | |
| link = () => {}, | |
| transclude = false |