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 / 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 / frontendDevlopmentBookmarks.md
Created February 9, 2019 14:09 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@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;