Skip to content

Instantly share code, notes, and snippets.

Develpoment Mode

looping nimit2801

Develpoment Mode
View GitHub Profile
nimit2801 / copy.js
Created Jun 1, 2021
This gist help you to seperate files in your folder and copy paste them according to there extensions :D
View copy.js
const fs = require('fs');
const path = require('path');
var copyFile = (file, dir2) => {
var f = path.basename(file);
var source = fs.createReadStream(file);
var dest = fs.createWriteStream(path.resolve(dir2, f));
source.on('end', function () {
nimit2801 /
Created Nov 6, 2020
This Gist helps you to use json as your database with python. Its basic but you can develop things on this!
import json
with open("person.json", "r") as json_read:
json_dict = json.load(json_read)
name = input("enter your name: ")
json_dict["name"] = name