- 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
| 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'); |
| //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) { |
| /** | |
| * 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 |
| <!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', { |
| 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; |
Link da apresentação: https://docs.google.com/presentation/d/1CGb01uev7BGgKAZGxs_NgsBZ0pjRYMP-irvPBlMak-k/edit#slide=id.p
| - 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 | |
| - |
| 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 ) => |
| $breakpoints: "palm" "(max-width: 480px)", "lap" "(min-width: 481px)", "portable" "(max-width: 1023px)", "desk" "(min-width: 1024px)", "desk-wide" "(min-width: 1200px)" !default | |
| =media-query($media-query) | |
| $breakpoint-found: false | |
| @each $breakpoint in $breakpoints | |
| $name: nth($breakpoint, 1) | |
| $declaration: nth($breakpoint, 2) | |
| @if $media-query == $name and $declaration | |
| $breakpoint-found: true | |
| @media only screen and #{$declaration} |
| const isImage = (name, msg, req) => { | |
| let proof = typeof req.files[name] !== "undefined" ? req.files[name] : undefined; | |
| if (!proof) { | |
| throw new Error(msg) | |
| } | |
| switch (proof.type) { | |
| case 'image/jpeg': | |
| return 'image/jpeg'; |