In your command-line run the following commands:
brew doctorbrew update
In your command-line run the following commands:
brew doctorbrew update| openssl key pair generate | |
| //client - using meteor.js | |
| const nodersa = Npm.require('node-rsa'); | |
| import { HTTP } from 'meteor/http'; | |
| const syncPost = Meteor.wrapAsync( HTTP.post, HTTP ); | |
| encryptStringWithRsaPublicKey( data ) { | |
| const absolutePath = Assets.absoluteFilePath( "public.key" ); //public key file path | |
| const publicKey = fs.readFileSync( absolutePath, "utf8" ); |
| { | |
| "name": "basic", | |
| "version": "1.0.0", | |
| "main": "index.js", | |
| "license": "MIT", | |
| "scripts": { | |
| "start": "parcel index.html --open", | |
| "build": "parcel build index.html" | |
| }, | |
| "devDependencies": { |
| var max = 500000; | |
| $(document).ready(function(){ | |
| var slider = $('.slider'); | |
| var output = $('.output'); | |
| var sliderRight = $('.slider-right'); | |
| function getPercentage (val) { | |
| return val * 50 / max; | |
| } |
| :root { | |
| --white: #ffffff; | |
| --neon-blue: #03e4ff; | |
| } | |
| body{ | |
| padding: 0; | |
| margin: 0; | |
| background-color: #0d162c; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <title>Page Title</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" type="text/css" media="screen" href="css/main.css" /> | |
| <link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet"> | |
| <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet"> |
| export const renderNode = (render, node, parent) => { | |
| const _node = d.querySelector(`[data-unique-id='${node.getAttribute('data-unique-id')}']`) | |
| if (_node == null && render) { | |
| const _parent = d.querySelector(parent) | |
| _parent.appendChild(node) | |
| } else if (_node != null && !render) { | |
| _node.parentNode.removeChild(_node) | |
| } | |
| } |
| import React from 'react' | |
| import renderer from 'react-test-renderer' | |
| import Todos from '../Todos' | |
| it('should render an empty component', () => { | |
| const tree = renderer.create( | |
| <Todos /> | |
| ).toJSON() |
| // defaults/index.js | |
| import development from './development'; | |
| import production from './production'; | |
| export default { | |
| development, | |
| production | |
| }[process.env.NODE_ENV || 'development']; | |
| const buildObject = actions => { | |
| const buildObjectRecursive = (actions, result) => { | |
| for (let key in actions) { | |
| if (actions[key].activity !== 'branch') { | |
| result[actions[key].name] = { | |
| ...actions[key] | |
| }; | |
| } | |
| for (let k in actions[key]) { |