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
#! /usr/bin/env python | |
from string import punctuation | |
from string import ascii_lowercase | |
from string import ascii_uppercase | |
from random import randint | |
import numpy as np | |
nums = '0123456789' |
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 http = require("http"); | |
const port = 3000; | |
let count = 1; | |
const requestHandler = (request, response) => { | |
console.log(count); | |
count++; | |
response.end("Hello Node.js Server!"); | |
}; |
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
package main | |
import ( | |
"github.com/valyala/fasthttp" | |
"net" | |
"time" | |
"sync" | |
"fmt" | |
) |
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
// This is obviously shit code but you get the idea | |
// we use a connection and when it closes we open a new one | |
// but we want this to run concurrently so we need some kind of connection | |
// pool that all the go routines can dip into | |
func Dial() net.Conn { | |
conn, _ := net.Dial("tcp", "localhost:3000") | |
return conn | |
} |
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
// This is obviously shit code but you get the idea | |
// we use a connection and when it closes we open a new one | |
// but we want this to run concurrently so we need some kind of connection | |
// pool that all the go routines can dip into | |
func Dial() net.Conn { | |
conn, _ := net.Dial("tcp", "localhost:3000") | |
return conn | |
} |
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
package main | |
import ( | |
"github.com/valyala/fasthttp" | |
"net" | |
"os" | |
"sync" | |
"time" | |
"fmt" | |
) |
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="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>The HTML5 Herald</title> | |
<meta name="description" content="The HTML5 Herald" /> | |
<meta name="author" content="SitePoint" /> |
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
function* itOne(it) { | |
let current = it.next() | |
while(current.done == false){ | |
console.log("ONE"); | |
yield current.value + 2; | |
current = it.next(); | |
} | |
} | |
function* itTwo(it) { |