Download

Make script

make a auto correct script

::rpa:Robotic Process Automation
return

Remember a few things

^ = Ctrl
# = Windows
! = Alt
+ = Shift
^q::
Send, This is Anders Jensen
return

Checking if a window is active

#IfWinActive Untitled - Notepad

An example below shows how…

import 'package:flutter/material.dart';class CrosswordGame extends StatefulWidget {
@override
_CrosswordGameState createState() => _CrosswordGameState();
}
class _CrosswordGameState extends State<CrosswordGame> {
``@override
Widget build(BuildContext context) {
return Scaffold(
body: GestureDetector(
child: CustomPaint(…

script for reading excel


<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.8.0/jszip.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.8.0/xlsx.js"></script>
<script>
var ExcelToJSON = function() {

this.parseExcel = function(file) {
var reader = new FileReader();

reader.onload = function(e) {
var data = e.target.result;
var workbook = XLSX.read(data, {
type: 'binary'
});
workbook.SheetNames.forEach(function(sheetName) {
// Here is your object
var XL_row_object = XLSX.utils.sheet_to_row_object_array(workbook.Sheets[sheetName]);
var json_object = JSON.stringify(XL_row_object);
console.log(JSON.parse(json_object));
jQuery( '#xlx_json' ).val( json_object );
})
};

reader.onerror = function(ex) {
console.log(ex);
};

reader.readAsBinaryString(file);
};
};

function handleFileSelect(evt) {

var files = evt.target.files; // FileList object
var xl2json = new ExcelToJSON();
xl2json.parseExcel(files[0]);
}



</script>

<form enctype="multipart/form-data">
<input id="upload" type=file name="files[]">
</form>

<textarea class="form-control" rows=35 cols=120 id="xlx_json"></textarea>

<script>
document.getElementById('upload').addEventListener('change', handleFileSelect, false);

</script>

worker.js

this.onmessage = function(e){
if(e.data.msg != undefined){
this.postMessage ({result: e.data.msg+ " passed through web worker"});
}
}

index.js

<script>if(window.Worker){
var myWorker = new Worker("worker.js");
var message = {msg: "The message"};
myWorker.postMessage(message);
myWorker.onmessage = function(e){
console.dir(e.data.result);
};

}
</script>
npm i canvas --saveconst fs = require('fs')
const { createCanvas, loadImage } = require('canvas')
const width = 1200
const height = 630
const canvas = createCanvas(width, height)
const context = canvas.getContext('2d')
context.fillStyle = '#000'
context.fillRect(0, 0, width, height)
context.font = 'bold 70pt Menlo'
context.textAlign = 'center'
context.textBaseline = 'top'
context.fillStyle = '#3574d4'…
var express = require("express");var app = express();app.get("/", function(req, res) {
res.send("Hello World!");
});var server = app.listen(80, function() {
var host = server.address().address;
var port = server.address().port; console.log("GadgetEdge.net listening at http://%s:%s", host, port);
});

apt-get update

apt-get install nodejs

apt-get install npm

npm install pm2 -g

$ pm2 start app.js -i max
mongoshow dbsuse <dbname># to create database
use <newdatabasename>
show collectionsdb.dropDatabase()dbdb.createCollection('posts')#inserting datadb.posts.insert({
title: 'Post One',
body: 'Body of post one',
category: 'News',
tags: ['news', 'events'],
user: {
name: 'John Doe',
status: 'author'
},
date: Date()
})
db.posts.insertMany([
{
title: 'Post Two',
body: 'Body of post two',
category: 'Technology',
date: Date()
},
{
title: 'Post Three',
body: 'Body of post three',
category: 'News',
date: Date()
},
{
title: 'Post Four',
body: 'Body of post three',
category: 'Entertainment',
date: Date()
}
])
db.posts.find()db.find().pretty()db.posts.find({ category: 'News' })# sorting rows# asc
db.posts.find().sort({ title: 1 }).pretty()
# desc
db.posts.find().sort({ title: -1 }).pretty()
pip install notebookjupyter notebookpython -m notebook

Uninstall

  1. $ pip install pip-autoremove
  2. $ pip-autoremove jupyter -y

in case above commands do not work.

python3 -m pip uninstall -y jupyter jupyter_core jupyter-client jupyter-console jupyterlab_pygments notebook qtconsole nbconvert nbformat
sourav mandal

sourav mandal

just a coder who forgets things so makes blogs so he can remember later