Skip to content

Instantly share code, notes, and snippets.

View H-Gomez's full-sized avatar

Harvey Gomez H-Gomez

  • MMT Digital
  • London
View GitHub Profile
@oupirum
oupirum / mobx-cheatsheet.js
Created April 17, 2019 19:02
MobX cheatsheet
// MobX - state manager with functional reactive programming paradigm.
// version 5.8.0
// The philosophy behind MobX is very simple:
// Anything that can be derived from the application state,
// should be derived. Automatically.
// Events
// ↓
// [ Actions ] ← ----- ← --•
//author @TraderX0
//script to plot daily Open high and low
//version 1.1
//last edited 22/11/2018
//title
study(title="TraderX0__O_H_L", shorttitle="TraderX0_O_H_L", overlay=true)
// holds the daily price levels
openPrice = security(tickerid, 'D', open)
@cfaria
cfaria / README.md
Last active November 17, 2020 16:25
Vagrant Scotch Box 3.5 with XDebug and configuration for debugging with VSCode

Enter the vagrant machine with
ssh vagrant

Install xdebug

sudo apt-get update
sudo apt-get install php-xdebug

Config PHP to accept xdebug connections
sudo nano /etc/php/7.0/apache2/php.ini

@cryppadotta
cryppadotta / 001-Tradingview-Watchlist.md
Last active January 13, 2024 07:16
Tradingview Watchlist Import Files for Crypto Exchanges

Tradingview Watchlist Import Files for Crypto Exchanges

Below you'll find Tradingview import files for Bittrex and Binance BTC-base markets

Ordered by CMC's Market Cap

I use Tradingview and I like to quickly click through all coins on a particular exchange. The files below can be imported into a Tradingview watchlist.

★ ★ ★ If you use these, leave a comment or a star above ★ ★ ★

@renshuki
renshuki / wordpress_tag_search.md
Last active November 1, 2021 18:42
Wordpress SQL query to find posts having both tags

Please replace TAG ID 1 and TAG ID 2 by the tags you are looking for.

SELECT p.id
FROM wp_posts AS p
JOIN wp_term_relationships AS tr ON p.id = tr.object_id
JOIN wp_term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id
JOIN wp_terms AS t ON tt.term_id = t.term_id
WHERE t.term_id=_TAG ID 1_ OR t.term_id=_TAG ID 2_ AND p.post_type LIKE 'post'
GROUP BY p.id

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@mandiwise
mandiwise / Update remote repo
Last active April 17, 2024 07:41
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
@bradmontgomery
bradmontgomery / dummy-web-server.py
Last active April 15, 2024 14:27
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python (Updated for Python 3.7)
Usage:
./dummy-web-server.py -h
./dummy-web-server.py -l localhost -p 8000
Send a GET request: