Skip to content

Instantly share code, notes, and snippets.

Avatar
🌩️
Brainstorming...

Ali Sawari AliSawari

🌩️
Brainstorming...
View GitHub Profile
View rxjs.array-over-time-iteration.js
const keyInputs = [
['n', 1],
['e', 10],
['w', 100],
[' ', 1],
['y', 10],
['o', 100],
['r', 300],
['k', 200]
];
@AliSawari
AliSawari / index.js
Created Mar 17, 2019 — forked from akexorcist/index.js
Axios post method requesting with x-www-form-urlencoded content type
View index.js
const axios = require('axios')
...
const requestBody = {
name: 'Akexorcist',
age: '28',
position: 'Android Developer',
description: 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/',
awesome: true
@AliSawari
AliSawari / run.js
Created Feb 22, 2019 — forked from m-esm/run.js
Node.js sending and receiving file using only 'http' and 'fs' module (no framework)
View run.js
var http = require("http");
var fs = require("fs");
var server = http.createServer().listen(3000);
server.on("request", function(req, res) {
if (req.method != "POST") return res.end();
var imageName = "received-" + Date.now() + ".jpg";
var writeStream = fs.createWriteStream(imageName);
req.pipe(writeStream);
You can’t perform that action at this time.