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> | |
| <html> | |
| <head> | |
| <title></title> | |
| <script type="text/javascript" src="node_modules/exceljs/dist/exceljs.min.js"></script> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1-rc1/jquery.min.js"></script> | |
| <script type="text/javascript" src="http://sheetjs.com/demos/Blob.js"></script> | |
| <script type="text/javascript" src="http://sheetjs.com/demos/FileSaver.js"></script> | |
| </head> |
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
| version: '2' | |
| services: | |
| postgres: | |
| container_name: postgres | |
| image: postgres | |
| restart: always | |
| ports: | |
| - "5432:5432" | |
| volumes: |
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
| sudo apt-get update | |
| sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' | |
| sudo apt-get update | |
| apt-cache policy docker-engine | |
| sudo apt-get install -y docker-engine | |
| sudo usermod -aG docker $(whoami) | |
| sudo curl -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose |
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 { | |
| 'fr': { | |
| 'Hello world': 'Bonjour le monde', | |
| 'Goodbye': 'Au Revoir' | |
| }, | |
| 'fr_CA': { | |
| 'Hello world': 'Bonjour tout le monde, du Canada' | |
| } | |
| } |
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
| <h1>{{ $t('Hello world', { locale: 'es' }) }}</h1> |
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
| <template> | |
| <h1>{{ 'Hello world' | translate }}</h1> | |
| </template> | |
| <script> | |
| export default { | |
| data () { | |
| return { | |
| locale: 'en' | |
| } |
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
| import Vue from 'vue' | |
| import i18n from 'voo-i18n' | |
| const translations = { | |
| 'es': { | |
| 'Hello world': 'Hola Mundo' | |
| }, | |
| 'fr': { | |
| 'Hello world': 'Bonjour le monde' | |
| }, |
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
| ## run update | |
| apt-get update -qy | |
| # install the required dependencies | |
| apt-get install -y git python-dev autoconf g++ build-essential libffi-dev libssl-dev libxml2-dev libxslt1-dev python-dev | |
| # install redis server | |
| apt-get install redis-server | |
| redis-server --daemonize yes |
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
| // prtsc = http://i.imgur.com/slXDaAn.png | |
| var request = require('request'); | |
| var INTERVAL=864000; | |
| var TOKEN=''; | |
| var USER_ID=''; | |
| // privacy_setting='286958161406148' # only me | |
| var API_ENDPOINT = 'https://graph.facebook.com/v2.8/'; |
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
| { | |
| "status": "ok", | |
| "value": { | |
| "farms": [ | |
| { | |
| "id": 1, | |
| "name": "Khu vườn tình yêu", | |
| "tree": "Hoa hồng", | |
| "ageTree": 0.5, | |
| "address": "Vườn ươm Đà Lạt", |