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 dom = function(el, parent) { | |
| var api = { el: null }; | |
| var qs = function(selector, parent) { | |
| parent = parent || document; | |
| return parent.querySelector(selector); | |
| }; | |
| var qsa = function(selector, parent) { | |
| parent = parent || document; | |
| return parent.querySelectorAll(selector); | |
| }; |
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
| [{ | |
| "id": "AD-02", | |
| "name": "Canillo", | |
| "country": "AD" | |
| }, | |
| { | |
| "id": "AD-03", | |
| "name": "Encamp", | |
| "country": "AD" | |
| }, |
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
| [ | |
| { | |
| "name": "abcd", | |
| "children": [ | |
| { | |
| "name": "fgtf", | |
| "children": [ | |
| ] | |
| }, |
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
| <!DOCTYPE html> | |
| <!-- | |
| Copyright 2015 Arnab Das | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.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
| http://michalostruszka.pl/blog/2015/05/21/angular-dependencies-naming-clash/ | |
| /* You can request a factory of a certain module explicitly (without dependency injection) */ | |
| var injector = angular.injector(['thirdParty1']); | |
| var hello1 = injector.get('hello'); | |
| var injector = angular.injector(['thirdParty2']); | |
| var hello2 = injector.get('hello'); |
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
| # http://davidwalsh.name/convert-video-mp3 | |
| ffmpeg -i music-video.webm -vn -ar 44100 -ac 2 -ab 192 -f mp3 music.mp3 |
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
| [{ | |
| "abbreviation": "A", | |
| "name": "Alpha Time Zone", | |
| "displayName": "Alpha Time Zone(UTC + 1)", | |
| "offset": "1 hours" | |
| }, | |
| { | |
| "abbreviation": "ACDT", | |
| "name": "Australian Central Daylight Time", | |
| "displayName": "Australian Central Daylight Time(UTC + 10:30)", |
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 generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
| <div class="row"> | |
| <div class="col-md-6 text-center"> | |
| <img | |
| ng-src="https://maps.googleapis.com/maps/api/staticmap?center={{location.latitude}},{{location.longitude}}&zoom=14&size=400x300&sensor=false" | |
| alt="Not Available"> | |
| </div> | |
| <div class="col-md-6"> | |
| <form> | |
| <div class="form-group"> | |
| <label>Latitude</label> |