Skip to content

Instantly share code, notes, and snippets.

View wolz-CODElife's full-sized avatar
:octocat:
Always coding

wolz CODElife wolz-CODElife

:octocat:
Always coding
View GitHub Profile
@wolz-CODElife
wolz-CODElife / gist:9807ba4177d926fb5829b4eceebfe9af
Last active May 13, 2021 23:17
Create Dropdown using HTML, CSS and JavaScript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dropdown</title>
</head>
<body>
<style>
@wolz-CODElife
wolz-CODElife / gist:9e496f12af5a5a4faf7ef40e5a585d1b
Created May 13, 2021 23:15
Mailing template in HTML and Inline CSS
<table width="100%" style="min-height: 100vh;" border="0" cellpadding="0" cellspacing="0" align="center">
<tbody>
<tr>
<td width="90%" valign="top" bgcolor="#f8f8f8" style="font-family:Arial,Lucida Grande,Sans-serif;text-decoration:none;font-size:14px;padding:8% 5%">
<div style="max-width:600px;margin-left:auto;margin-right:auto;border:1px solid #dcdcdc; border-top:8px solid #2457BE;background-color:white;">
<div style="display:block;width:calc(90% - 2px);padding:5%;color:#707070">
<div style="text-align:center">
<div style="border: none; border-bottom: 5px solid #2457BE;max-width:120px;max-height:120px;margin-top:20px;margin-right:auto;margin-left:auto;display:block;padding:20px;">
<img src="https://i.postimg.cc/mkwxDdZw/omo.png" style="max-width:120px;max-height:120px;" class="CToWUd a6T" tabindex=
//SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
// Import the necessary files and lib
import "./Interfaces/IERC4626.sol";
import "./Interfaces/IERC20.sol";
import "https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol";
// create your contract and inherit the your imports
contract TokenizedVault is IERC4626, ERC20 {
@wolz-CODElife
wolz-CODElife / index.html
Created July 1, 2022 10:38
Meta tags/SEO config HTML snippets
<head>
<meta charset="utf-8" />
<link rel="icon" href="{{IMAGE_URL/IMAGE_PATH}}" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
<meta name="theme-color" content="{{SITE_THEME_COLOR}}" />
<meta name="description" content="{{SITE_DESCRIPTION}}" />
<meta property="og:description" content="{{SITE_DESCRIPTION}}" />
<meta data-react-helmet="true" property="og:title" content="{{SITE_TITLE}}">
<meta data-react-helmet="true" property="og:type" content="Website">
<meta data-react-helmet="true" property="og:url" content="{{SITE_URL}}">
"""Hello Analytics Reporting API V4."""
import pandas as pd
import matplotlib.pyplot as plt
from apiclient.discovery import build
from oauth2client.service_account import ServiceAccountCredentials
import requests, json
import dataframe_image as dfi
import cloudinary
import cloudinary.uploader
import cloudinary.api
@wolz-CODElife
wolz-CODElife / styles.css
Last active October 22, 2022 21:47
Stylesheet for Custom Dashboard built with Refine
.main {
margin: 20px 80px;
}
.main .center-main {
width: 40%;
margin: 50px auto;
}
.main .center-main img {
width: 100%;
object-fit: contain;
import React from "react";
// Import Swiper React components
import { Swiper, SwiperSlide } from "swiper/react";
import { Navigation, Autoplay } from "swiper";
// Import Swiper styles
import "swiper/css";
import "swiper/css/effect-cards";
import "swiper/css/pagination";
import { Refine } from "@pankod/refine-core";
import routerProvider from "@pankod/refine-react-router-v6";
import {
CssBaseline,
GlobalStyles,
ThemeProvider,
LightTheme,
} from "@pankod/refine-mui";
import Dashboard from "pages/Dashboard";
function App() {
Machine Type GCP AWS Azure
Smallest Instance 2 vCPUs, 8 GB RAM for US$52/month 2 vCPUs, 8 GB RAM for US$69/month 2 vCPUs, 8 GB RAM for US$70/month
Largest Instance 160 vCPUs, 3.75 TB RAM for US$5.32/hour 128 vCPUs, 3.84 TB RAM for US$3.97/hour 128 vCPUs, 3.89 TB RAM for US$6.79/hour
Platform Service Scalability Flexibility OS support Pricing
GCP Compute Engine High High Multiple (Linux, Windows) Normal
AWS Elastic Compute Cloud (EC2) High High Multiple (Mac, Linux, Windows) Expensive
Azure Virtual Machines High High Multiple (Linux, Windows) Normal