This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="tr"> | |
<body> | |
<form action="auth" method="POST"> | |
<input name="username" type="text" /> | |
<input name="password" type="password" /> | |
<input type="submit" /> | |
</form> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
CROSS BROWSER GRID SYSTEM by Burak OZ | |
Usege: | |
<div id="grid" class="cell-12 cell-1200-6 cell-992-3 cell-768-3 cell-480-2"> | |
<div>1</div> | |
<div>2</div> | |
<div>3</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sharp from 'sharp' | |
import { createWriteStream } from 'fs' | |
let wstream = createWriteStream('resized.jpg'); | |
sharp('muscle.jpg') | |
.rotate() | |
.resize(200) | |
.toBuffer() | |
.then( data => { wstream.write(data) }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { MongoClient } = require('mongodb'); | |
(async (url) => { | |
const connection = await MongoClient.connect(url, { | |
poolSize: 10, | |
reconnectTries: Number.MAX_VALUE, | |
reconnectInterval: 1000, | |
useNewUrlParser: true | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1><strong style="color:red">Reponse Port : </strong>8003</h1> | |
<p><strong style="color:red">METHOD: </strong>{{method}}</p> | |
<p><strong style="color:red">URL: </strong>{{url}}</p> | |
<p><strong style="color:red">Req HTTP Version: </strong>{{version}}</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
html { | |
margin: 0; | |
padding: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let area = []; | |
for (let i = 0; i < 6; i++) { | |
area[i] = new Array(6); | |
} | |
for (let j = 0; j < 6; j++) { | |
for (let l = 0; l < 6; l++) { | |
area[j][l] = "@"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Readable } = require("stream"); | |
const { promisify } = require("util"); | |
const express = require("express"); | |
const mongodb = require("mongodb"); | |
const multer = require("multer"); | |
const ObjectID = require("mongodb").ObjectID; | |
const app = express(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const os = require("os"); | |
const delaySeconds = 1; | |
const decimals = 3; | |
(function loop() { | |
console.log("CPU load is " + cpuLoad()); | |
setTimeout(loop, delaySeconds * 1000); | |
})(); |
OlderNewer