Skip to content

Instantly share code, notes, and snippets.

View cv2k10's full-sized avatar
💭
Calvin is coding hard now....

Calvin cv2k10

💭
Calvin is coding hard now....
View GitHub Profile
@cv2k10
cv2k10 / gist:c182fcd2d1bc4ff69cca4d23860f2ef5
Created August 10, 2023 02:37
new MT5 Expert Advisor setup
//+------------------------------------------------------------------+
//| cv.mq5 |
//| cv |
//| |
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
using System;
using System.Threading;
using System.Diagnostics;
class Program
{
static void Main(string[] args)
{
@cv2k10
cv2k10 / it-ebooks.md
Created April 1, 2021 02:40 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want
@cv2k10
cv2k10 / Loader.js
Last active February 22, 2021 06:26
Loader component (Reactstrap)
function Loader() {
return (
<div className="d-flex justify-content-center align-items-center h-100 ">
<Spinner color="dark" />
</div>
)
}
export default Loader;
@cv2k10
cv2k10 / react-swipeable.js
Created February 14, 2021 04:02
react-swipeable.js
// https://www.npmjs.com/package/react-swipeable
const { useRef, useMemo } = React;
const LEFT = "Left";
const RIGHT = "Right";
const UP = "Up";
const DOWN = "Down";
/* global document */
const defaultProps = {
@cv2k10
cv2k10 / Common git commands.txt
Last active May 16, 2023 08:09
Common git commands
- to init git (for new code run once)
git init
- to clone from github repo
git clone /path/to/repository
- To add and commit current codes
git add -A
git commit -m "change code xxx"
@cv2k10
cv2k10 / Searcher.js
Created June 30, 2020 15:28
On line 69, code that handles not found search result
import React from 'react';
import Card from '../Components/Card';
import data from '../Data/drinks.json';
import Preparation from '../Pages/Preparation';
import { Link } from 'react-router-dom';
import _, { update } from 'lodash';
function searchingFor(search) {
return function(cocktails) {
return cocktails.name.toLowerCase().includes(search.toLowerCase()) || !search;
@cv2k10
cv2k10 / arial-fonttack.css
Created March 5, 2020 04:53
Arial CSS Font Stack
h1 {
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
font-size: 24px;
font-style: normal;
font-variant: normal;
font-weight: 700;
line-height: 26.4px;
}
h3 {
@cv2k10
cv2k10 / sample.json
Created March 4, 2020 01:19
sample.json
{
"fruit": "Apple",
"size": "Large",
"color": "Red"
}
@cv2k10
cv2k10 / css-icons.md
Last active March 3, 2020 00:26
500+ CSS Icons