Skip to content

Instantly share code, notes, and snippets.

View mascot6699's full-sized avatar
:octocat:
Here to help everyone 😄

Umang Shukla mascot6699

:octocat:
Here to help everyone 😄
View GitHub Profile
//@version=4
// CIRCLES:
// - LITTLE: They appear at all WaveTrend wave crossings
// - GREEN: The wavetrend waves are at the oversold level and have crossed up (bullish)
// - RED: The wavetrend waves are at the overbought level and have crossed down (bearish)
// - PURPLE: Appear when a bullish or bearish divergence is formed and WaveTrend waves crosses at overbought and oversold points
// - GOLD: When RSI is below 20, WaveTrend waves are below or equal to -80 and have crossed up (DONT BUY WHEN GOLD CIRCLE APPEAR)
// - None of these circles are certain signs to trade. It is only information that can help you.
//
// I am not an expert trader or know how to program pine script as such, in fact it is my first indicator only to study and all the code is copied and modified from other codes that are published in TradingView.
const path = require('path');
module.exports = {
entry: './src/mytest.ts',
module: {
rules: [
{
test: /\.tsx?$/,
exclude: /(node_modules|bower_components)/,
use: {
@mascot6699
mascot6699 / RNLocalStorage.js
Last active October 30, 2019 14:13
RNLocalStorage is a react native compatible implementation for StorageService required by cruxpay/js-sdk
import { storage } from "@cruxpay/js-sdk/dist/cruxpay-sdk";
import AsyncStorage from "@react-native-community/async-storage";
class RNLocalStorage extends storage.StorageService {
setItem = async (key, value) => AsyncStorage.setItem(key, value);
getItem = async (key) => AsyncStorage.getItem(key);
}
import 'react-native-get-random-values';
import {Button, Text} from "react-native"
import React from "react"
import {storage} from "./cruxpay-sdk"
import {CruxClient} from "./cruxpay-sdk"
let dataMemory = {};
class RNLocalStorage extends storage.StorageService {
@mascot6699
mascot6699 / pvc.yaml
Created June 26, 2019 05:36
PersistentVolumeClaim Example
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-example
labels:
name: pvc-example
spec:
# If you are using dynamic provisioning, it is important to specify a storageClassName.
storageClassName: "standard"
accessModes:
@mascot6699
mascot6699 / apple.yaml
Created June 25, 2019 05:56
Ingress Example
kind: Pod
apiVersion: v1
metadata:
name: apple-app
labels:
app: apple
spec:
containers:
- name: apple-app
image: hashicorp/http-echo
apiVersion: v1
kind: Pod
metadata:
labels:
test: liveness
name: liveness-exec
spec:
containers:
- name: liveness
image: gcr.io/google_containers/busybox
# a comment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx
labels:
app: nginx # arbitrary label on deployment
spec:
replicas: 3
selector:
@mascot6699
mascot6699 / Dockerfile
Created June 23, 2019 21:39
DOCKER_KATAS
# The base image
FROM ubuntu:latest
# Install python and pip
RUN apt-get update -y
RUN apt-get install -y python-pip python-dev build-essential
# Install Python modules needed by the Python app
COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r /usr/src/app/requirements.txt
@mascot6699
mascot6699 / master.txt
Created June 12, 2019 11:52 — forked from aivarasko/master.txt
Kubernetes The Hard Way
#!/bin/bash
set -euox pipefail
IFS=$'\n\t'
curl -L https://pkg.cfssl.org/R1.2/cfssl_linux-amd64 -o cfssl
curl -L https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64 -o cfssljson
curl -L https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64 -o cfssl-certinfo
chmod +x cfss*
mv cfssl* /usr/local/bin/
cfssl version