Skip to content

Instantly share code, notes, and snippets.

@egohub
egohub / coin.js
Last active November 7, 2021 15:17
Crypto
var request = require('request');
class CoinMarketCap {
constructor(options={}){
this.API_URL = options.API_URL || "https://api.coinmarketcap.com/v1/ticker";
this.convert = options.convert || "USD";
this.convert = this.convert.toLowerCase();
this.events = options.events || false;
if(this.events){
@egohub
egohub / api.js
Created November 7, 2021 15:12
Counmarket
var request = require('request');
class CoinMarketCap {
constructor(options={}){
this.API_URL = options.API_URL || "https://api.coinmarketcap.com/v1/ticker";
this.convert = options.convert || "USD";
this.convert = this.convert.toLowerCase();
this.events = options.events || false;
if(this.events){
@egohub
egohub / Readme.md
Last active September 20, 2021 21:37
medium scrape

scrape from medium

mkdir nodewebscraper

cd nodewebscraper

npm init --yes

@egohub
egohub / defaultFilename
Created September 20, 2021 21:26
Scrape
DELETE ME - Must create a new gist with an initial file
@egohub
egohub / Read.md
Created August 6, 2021 16:34
Matches Facts Sample

Match Info

@egohub
egohub / analysis.json
Last active August 6, 2021 16:27
detail facts
{
"msg" : "Successfully",
"data" : {
"competition_table" : {
"competition_team" : [
{
"comp_stats" : "0\/0\/1",
"pts" : "0",
"team_name" : "Noravank",
"team_logo" : "https:\/\/cdn.sportnanoapi.com\/football\/team\/8d95b4e41d78ca167e72ea3054f8334c.jpg",
@egohub
egohub / car.json
Created July 21, 2021 15:23
test car
{
"car1" : {"brand" : "fiat", "model_year": 2010, "price" : 33000 },
"car2" : {"brand" : "honda", "model_year": 2015, "price" : 120000 },
"car3" : {"brand" : "toyota", "model_year": 2012, "price" : 200000 },
"car4" : {"brand" : "fiat", "model_year": 2010, "price" : 33000 },
"car5" : {"brand" : "honda", "model_year": 2015, "price" : 120000 }
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScript change Event for Radio Buttons</title>
</head>
<body>
<span>Status:</span>
<input type="radio" id="pending" name="status">
@egohub
egohub / dabblet.css
Created March 27, 2020 17:06
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;