- Instalar Node.js
- Rodar comando npm install
- Enjoy!
Link da apresentação: https://docs.google.com/presentation/d/1CGb01uev7BGgKAZGxs_NgsBZ0pjRYMP-irvPBlMak-k/edit#slide=id.p
| const find = ( Model ) => ( query, sort = {} ) => | |
| Model.find({}).or( query ).sort( sort ).exec() | |
| const findOne = ( Model ) => ( query, populate = '' ) => | |
| Model.findOne( query ).populate( populate ).exec() | |
| const count = ( Model ) => ( query ) => | |
| Model.count( query ).exec() | |
| const save = ( Model ) => |
| - Textos, imagens e css da landing page | |
| - Página de contato | |
| - Página de Termos | |
| - Criar página no g+ | |
| - Upload de fotos em perfil | |
| - Validar todos os formulários | |
| - Módulo de envio de emails | |
| - |
Link da apresentação: https://docs.google.com/presentation/d/1CGb01uev7BGgKAZGxs_NgsBZ0pjRYMP-irvPBlMak-k/edit#slide=id.p
| function carregarLocalizacao(dest) { | |
| navigator.geolocation.getCurrentPosition(showpos, error, options); | |
| function showpos(position) { | |
| var lat = position.coords.latitude | |
| , lng = position.coords.longitude; | |
| console.log(lat + " " + lng); | |
| location.href = 'https://maps.google.com/maps?saddr=' + lat + ',' + lng + '&daddr=' + dest; |
| <!DOCTYPE HTML> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title></title> | |
| </head> | |
| <body> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.min.js"></script> | |
| <script type="text/javascript"> | |
| var socket = io('ws://localhost:8000', { |
| /** | |
| * Main js file for WebRTC-Camera-Resolution finder | |
| * Created by chad on 7/19/2014. | |
| * Modified January 1, 2016 | |
| */ | |
| 'use strict'; | |
| //Global variables | |
| var video = $('#video')[0], //where we will put & test our video output |
| //check for getUserMedia | |
| navigator.getUserMedia = navigator.getUserMedia || | |
| navigator.webkitGetUserMedia || | |
| navigator.mozGetUserMedia; | |
| let devices = []; | |
| if (navigator.mediaDevices) { | |
| navigator.mediaDevices.enumerateDevices() | |
| .then(function (deviceInfos) { | |
| for (let i = 0; i !== deviceInfos.length; ++i) { |
| var bitcore = require('bitcore-lib'); | |
| bitcore.Networks.defaultNetwork = bitcore.Networks.testnet; | |
| var HDPrivateKey = bitcore.HDPrivateKey; | |
| var explorers = require('bitcore-explorers'); | |
| var client = new explorers.Insight(); | |
| var hdPrivateKey = new HDPrivateKey('tprv8ZgxMBicQKsPd194pj9j68Cc5vTVKdQzDKmN8G5EEhvuct5bg2pifdAGGJZoJUQm9McBpvKQqTwfoLuvxgaVKJhtCLHFjG9MiJ4xeemMFyz'); |
| <?php | |
| require __DIR__ . '/vendor/autoload.php'; | |
| use \Blocktrail\SDK\BlocktrailSDK; | |
| $client = new BlocktrailSDK("api_key", "secret", "BTC", true /* testnet */); | |
| $wallet = $client->initWallet("wallet_name", "password"); |
| <?php | |
| $country = Request::segment(1); | |
| $locale = Request::segment(2); | |
| if (Schema::hasTable('countries')) { | |
| $Country = \App\Countries::where('name_iso3166', $country)->get(); | |
| if (count($Country)) { | |
| $available_lang = explode(',', $Country[0]['available_languages']); |