Skip to content

Instantly share code, notes, and snippets.

View ikariiin's full-sized avatar
🐜
Focusing

Gourab Nag ikariiin

🐜
Focusing
View GitHub Profile
#include <stdio.h>
#include <math.h>
float lagrange(float x, int n, float xi[], float yi[])
{
float sum = 0;
for (int i = 0; i < n; i++)
{
float product = 1;
for (int j = 0; j < n; j++)
import { Worker } from "worker_threads";
function run() {
const worker = new Worker("./worker.js", {
workerData: {
file: "E:\\TV Series\\Hyouka (720p)\\01 - The Revival of the Long-established Classic Literature Club.mkv",
storageFolder: "F:\\TempEncoderStorage"
}
});
worker.on("message", (message) => console.log(message));

Keybase proof

I hereby claim: * I am saitamasama on github. * I am saitamasama (https://keybase.io/saitamasama) on keybase. * I have a public key ASBdmtA86BeZJEIugWjETvIrRRH_94Uc2DguAEVN4uFMJwo To claim this, I am signing this object:

{   "body": {     "key": {       "eldest_kid": "01200d3582cfbd0ffa2bae43de3fba6f8da7a4479200588784f5b9f769e1c33f5ed90a",       "host": "keybase.io",       "kid": "01205d9ad03ce8179924422e8168c44ef22b4511fff7851cd8382e00454de2e14c270a",       "uid": "505c6c4d32c3189154ff46e60b257319",       "username": "saitamasama"     },     "merkle_root": {       "ctime": 1570449923,       "hash": "1df49200871ddb8b7c389739caeb4397206a89376c27d06cc8a6ad35ae205ea8c267e9fb76033ba34e0f139e94f679a1a9075304e5f6e0bb515b9d35817b4a88",       "hash_meta": "80e9bf0823c9825fc958ad9caeda7ba51557d09c10c1c6d0896ffaec68a3ff6e",       "seqno": 7893587     },     "service": {       "entropy": "viGGfEzjGHNoUAH55CWu88kd",       "name": "github",       "username": "saitamasama"     },     "ty
@import url('https://fonts.googleapis.com/css?family=Quicksand:300,400,500,600,700&display=swap');
body, html {
font-family: "Quicksand", Roboto, sans-serif;
font-size: 13px;
background: #363633;
color: #ededed;
margin: 0;
}
const text = await res.text();
const re = /result = '([^']*)';/;
const [,src] = text.match(re);
typedef sockaddr_in sockaddr_in_t;
typedef sockaddr sockaddr_t;
class Server {
private:
int socketfd, newsocketfd, port;
socklen_t remote_addr_length;
char buffer[1024];
sockaddr_in_t serv_addr, remote_addr;
[
"ADANIPORTS",
"AMBUJACEM",
"ASIANPAINT",
"AUROPHARMA",
"AXISBANK",
"BAJAJ-AUTO",
"BAJFINANCE",
"BPCL",
"BHARTIARTL",
typedef struct {
char *raw_headers;
char headers[128][512][512];
} HTTPrequest;
void parser_init(char *raw_headers) {
char *token, *key_value = NULL;
token = strtok(raw_headers, "\r\n");
int line_counter = 1;
const stylesheet = `
* {
font-family: "Roboto", "Roboto Condensed", "Dosis", "Quicksand", "Raleway", "Ubuntu", "Helvetica Neue", sans-serif;
}
#starred-posts {
overflow: auto;
height: 100px;
}
.messages, .content {
line-height: 1.78;
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url("https://chat.stackoverflow.com/rooms/11/php") {
* {
font-family: "Roboto", "Roboto Condensed", "Dosis", "Quicksand", "Raleway", "Ubuntu", "Helvetica Neue", sans-serif;
}
#starred-posts {
overflow: auto;
height: 100px;
}