Skip to content

Instantly share code, notes, and snippets.

View prashant1k99's full-sized avatar
🏠
Working from home

Prashant Singh prashant1k99

🏠
Working from home
View GitHub Profile
@prashant1k99
prashant1k99 / cluster.md
Created January 20, 2019 05:22 — forked from learncodeacademy/cluster.md
Node Cluster - Enhance your node app by using all the cores of your processor.

Here's all you have to do to add clustering to your node.js application.

  • save this code as cluster.js, and run cluster.js instead of server.js (or /bin/www, or whatever it's called for your project)
  • the only line you'll need to change is the last line - it needs to point to the location of your server.js file
var cluster = require('cluster');

if (cluster.isMaster) {
  // Count the machine's CPUs
 var cpuCount = require('os').cpus().length;
@prashant1k99
prashant1k99 / frontendDevlopmentBookmarks.md
Created February 9, 2019 14:09 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.

Awesome-opensource-apps Awesome

An awesome curated list of open source crafted web & mobile applications - Learn, Fork, Contribute & Most Importantly Enjoy!.

You want to develop an app, write tests for a feature or implement a feature and you don't know how to go about it, there might just be one app/repository here with the solution to your problem.

Even if you are just a developer, manager or co-founder looking for a sample app to demo or test your ideas, it might just be right here.

Table of Contents

@prashant1k99
prashant1k99 / Editor.vue
Created April 5, 2019 08:31 — forked from vielhuber/Editor.vue
TinyMCE vanilla js vue js #js
<template>
<div>
<editor v-model="editorModel" :init="tinyMceConfiguration"></editor>
{{ editorData }}
</div>
</template>
<script>
/* core */
import tinymce from 'tinymce/tinymce';
@prashant1k99
prashant1k99 / generate-certificates.sh
Created April 21, 2019 04:36
Generate self-signed ssl certificates.
#!/bin/bash
# set values for certificate DNs
# note: CN is set to different values in the sections below
ORG="000_Test_Certificates"
# set values that the commands will share
VALID_DAYS=360
CA_KEY=ca.key
CA_CERT=ca.crt
@prashant1k99
prashant1k99 / meta-tags.md
Created April 23, 2019 05:52 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@prashant1k99
prashant1k99 / vsCodeOpenFolder.reg
Created May 7, 2019 10:44
To add the feature of Right click to File and/or Folder to Open With VSCode..
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
; Find the root installation files of the VS Code.
; Example -
"Icon"="C:\\Program Files\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe" \"%1\""
; This will make it appear when you right click ON a folder
@prashant1k99
prashant1k99 / README.md
Created May 24, 2019 06:31 — forked from hofmannsven/README.md
SCSS Cheatsheet
# include <conio.h>
# include <stdio.h>
void main(){
int n, a[20], min, max, i;
// Created a function to sort the array
int sortArray(a[20], min, max);
// For scanning the total number of elements in unsorted array
/* Gist Embed - Dark Theme Styling - Thanks to MattD */
/* Body */
.gist-data tbody { background-color: Black; }
/* Line Numbers */
.gist-data tbody td:nth-of-type(1) {
color: #2B91AF !important;
}