Skip to content

Instantly share code, notes, and snippets.

View darkcheftar's full-sized avatar
👋
Hola Soy Tarun

MTR darkcheftar

👋
Hola Soy Tarun
View GitHub Profile
@darkcheftar
darkcheftar / gh-pages-deploy.md
Last active April 4, 2022 02:44 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

@gunnarmorling solution was about 10000 times easier! To elaborate for git >2.5 (worktree)

Setup $ rm -rf dist $ echo "dist/" >> .gitignore $ git worktree add dist gh-pages Making changes $ make # or what ever you run to populate dist $ cd dist $ git add --all

Specification Keyword RGB hex value
1 black #000000
1 silver #c0c0c0
1 gray #808080
1 white #ffffff
1 maroon #800000
1 red #ff0000
1 purple #800080
1 fuchsia #ff00ff
1 green #008000
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include <stdbool.h>
typedef struct{
char label[10], mnemonic[10], op1[10], op2[10];
}Instruction;
typedef struct{
int id, length;
char mnemonic[10], type[10], code[10];
@darkcheftar
darkcheftar / SimpleHTTPServerWithUpload.py
Created January 14, 2021 15:47 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""

Probability

  • Axiomatic definition
    • axiom 1: p(A) ≥ 0;
@darkcheftar
darkcheftar / Mongo.db.md
Created October 21, 2020 12:34
Mongodb Cheat Sheet
s.no command description
1 db.help() help on db method
2 db.<collection_name>.help() help on collection methods
3 sh.help() Sharding helpers
4 rs.help() replica set help
5 help admin adminstrative help
6 help connect connection to a db help
7 help keys key shortcuts
8