npm install cordova
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
| { | |
| "@context": "context.jsonld", | |
| "@graph": [ | |
| { | |
| "@id": "_:g70333128676980", | |
| "@type": "ContactPoint", | |
| "name": "Macháček", | |
| "telephone": "+420 728 585 881", | |
| "type": { | |
| "@value": "Kontaktní osoba", |
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 Utils = { | |
| /* modified version of https://gist.github.com/1243697 | |
| * adds detection of file extension rather than hard-coding .jpg as in the original | |
| */ | |
| _getExtension: function(fn) { | |
| // from http://stackoverflow.com/a/680982/292947 | |
| var re = /(?:\.([^.]+))?$/; | |
| var tmpext = re.exec(fn)[1]; | |
| return (tmpext) ? tmpext : ''; | |
| }, |
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
| // Mocked Service | |
| angular.module('mock.users', []). | |
| factory('UserService', function($q) { | |
| var userService = {}; | |
| userService.get = function() { | |
| return { | |
| id: 8888, | |
| name: "test user" | |
| } |
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
| cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git |
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/sh | |
| # Config for SSL. | |
| echo "--- Making SSL Directory ---" | |
| mkdir /etc/nginx/ssl | |
| echo "--- Copying $i SSL crt and key ---" | |
| openssl req -nodes -new -x509 -keyout /etc/nginx/ssl/server.key -out /etc/nginx/ssl/server.crt -subj "/C=US/ST=NY/L=NYC/O=Dis/CN=www.example.com" | |
| echo "--- Turning SSL on in nginx.conf. ---" |
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
| # .config/i3/config | |
| set $mod Mod4 | |
| set $alt Mod1 | |
| font pango:Segoe UI 8 | |
| # Use Mouse+$mod to drag floating windows to their wanted position | |
| floating_modifier $mod | |
| # class border backgr. text |
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
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => { | |
| return [1, 2, 3]; |