- Open Powershell as Administrator and run:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Open the Microsoft Store, search for Ubuntu, and install
- Launch Ubuntu and create your Linux user
- Open a shell into WSL (I like cmder so far: http://cmder.net/)
- In Windows, download and install MobaXterm (free version): https://mobaxterm.mobatek.net/download.html
- Make sure X server is running
- You’ll always need to run MobaXterm, and in the top right corner of the app there’s an "X server" button. Make sure it’s running.
- In mobaxterm settings -> x11 -> set OpenGL Acceleration to: Hardware
- WSL won't have a display environment variable set by default, so tell it manually to connect to the first display:
export DISPLAY=:0.0
- Test an x11 app:
sudo apt-get install x11-apps
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=4 | |
''' | |
Quick explanation from "Market Cipher - what is just a closed source of this script with alerts. (DO NOT PAY 1.500$ JUST FOR ALERT FUNCTION!)" | |
Market Cipher B is an all-in-one oscillator allowing for more quality indications than ever before. | |
It combines five algorithms (some well-known, some custom) that have all been fine-tuned and smoothed for optimal analysis and trading results. | |
When all of the algorithms converge, Market Cipher B will project a “Green Dot” which will aid you in longing the dips in bull markets as well as temporarily exiting shorts in bear markets. | |
The Green Dot is often accompanied by extreme sellers’ momentum and will warn you of potential market bottoms, giving you strong hands even when the night is at its darkest. | |
Market Cipher B certainly excels on the small time frames, but is a particularly deadly tool for isolating large swings in the market. |
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
const express = require('express') | |
const bodyParser = require('body-parser') | |
const {WebhookClient} = require('dialogflow-fulfillment'); | |
const app = express() | |
app.use(bodyParser.json()) | |
const port = process.env.PORT || 3000 | |
app.post('/dialogflow-fulfillment', (request, response) => { | |
dialogflowFulfillment(request, response) |
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
'use strict'; | |
const admin = require('firebase-admin'); | |
admin.initializeApp(); | |
const functions = require('firebase-functions'); // Cloud Functions for Firebase library | |
const DialogflowApp = require('actions-on-google').DialogflowApp; // Google Assistant helper library | |
exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) => { | |
console.log('Dialogflow Request headers: ' + JSON.stringify(request.headers)); | |
console.log('Dialogflow Request body: ' + JSON.stringify(request.body)); | |
if (request.body.queryResult) { |
Os nomes das tabelas e colunas devem estar minúsculas e as palavras devem ser separadas por underscore, seguindo o padrão snake case. E todos os termos devem estar em inglês, exceto alguns termos que não há tradução apropriada para o inglês. Sempre prefira nomes descritivos, evitando ao máximo contrações.
Os nomes das tabelas devem estar no plural.