Skip to content

Instantly share code, notes, and snippets.

View marktellez's full-sized avatar

Mark Tellez marktellez

View GitHub Profile
https://www.instagram.com/p/Bx5MDOLl8Hy/
@marktellez
marktellez / 2018-07-17.md
Last active July 18, 2018 04:18
Dia 1 - July 17 2018

Instrucciones de configuración

Escriba estos comandos en su terminal

  1. cd ~/projects/dayan/
  2. git clone https://github.com/marktellez/dayan-homework.git homework
  3. cd homework/2018-07-17

JavaScript Arrays

@marktellez
marktellez / dayan-programming-homework.md
Last active July 18, 2018 04:16
Esta es tu tarea las dos semanas que nos hemos ido

// Esta es tu tarea para el miércoles 18

@marktellez
marktellez / mp3player.js
Last active July 16, 2018 15:57 — forked from TooTallNate/mp3player.js
node.js command line MP3 player in 9 lines of code!
var fs = require('fs')
var lame = require('lame')
var Speaker = require('speaker')
fs.createReadStream("./applaud.mp3").pipe(new lame.Decoder()).on('format', function (format) {
this.pipe(new Speaker(format))
})
@marktellez
marktellez / tradingview-extract-pt-results.js
Created July 15, 2018 17:00
Extract your tradingview paper trade journal into a csv file
trs = $($(".paper_trading table.balances")[2]).find(".tv-data-table__tbody tr").map((_, value) => $(value).find("td").map((_, value) => value.innerText))
trades = Object.values(trs.map((_, tr) => [Object.values(tr).slice(0,5)]))
var toTimestamp = val => {
var parts = val.split(' ')
switch(parts[1]) {
case "Minutes":
var d = new Date(new Date().getTime() - (parts[0] * 60 * 60))
break;
case "Hours":
@marktellez
marktellez / 20-habits-wealthy-traders.md
Last active July 4, 2018 21:39
TRADING: 20 Habits of Wealthy Traders
  1. Wealthy Traders are patient with their winning trades and enormously impatient with their losing trades
  2. Wealthy Traders realize quickly that making money is more important than being right
  3. Wealthy Traders look at charts and see where other traders are lining up to buy and sell
  4. Before Wealthy Traders enter a trade, they know exactly where they will exit for a gain or loss
  5. Wealthy Traders approach trade number 5 with the exact same mindset they did on the 4 preious losing trades
  6. Wealthy Traders use naked charts and focus on trading zones
  7. Wealthy Traders realized a long time ago that being uncomfortable while trading is ok
  8. Wealthy Traders know that their workplace is the market - they are a participant not an onlooker
  9. Wealthy Traders stopped trying to picks tops and bottoms
  10. Wealthy Traders stopped thinking about the market being cheap or expensive
require('es6-promise').polyfill()
require('isomorphic-fetch')
// get listings - https://api.coinmarketcap.com/v2/listings/
// get ticker - https://api.coinmarketcap.com/v2/ticker/1
function getAssets(symbols) {
return fetch('//api.coinmarketcap.com/v2/listings/')
.then(resp => resp.json())
.then(json => {
@marktellez
marktellez / readme.md
Last active May 27, 2018 22:16
Installing a new Miner - Instructions

Installing a new Miner - Instructions

Steps

Install Ubuntu 17.04

Update Ubuntu

  1. sudo apt-get update
  2. sudo apt-get upgrade
{
"product": {
"regions": [
{
"vendor-ids": [
2098
],
"subcategories": [
{
"attributes": [