See also my tech blog.
- Padraic Edgington's videos
- Design of Digital Circuits, ETH Zurich, Onur Mutlu, Spring 2019
- Basic CPU design course, LC-3, MIPS, FPGA, Vivado, Basys 3
- High Performance Computer Architecture, Georgia Tech CS6290
diff --git a/src/servy.nim b/src/servy.nim | |
index 3a90e78..8954982 100644 | |
--- a/src/servy.nim | |
+++ b/src/servy.nim | |
@@ -407,8 +407,8 @@ proc newResponse*(): Response = | |
result.httpver = HttpVer11 | |
result.headers = newHttpHeaders() | |
-type MiddlewareFunc* = proc(req: Request, res: Response): Future[bool] {.async, nimcall, gcsafe, locks: 0.} | |
-type HandlerFunc* = proc(req: Request, res: Response) : Future[void] {.nimcall, async.} |
require "json" | |
# class Location | |
# JSON.mapping( | |
# lat: Float64, | |
# lng: Float64, | |
# ) | |
# end | |
# class House |
See also my tech blog.
jumpscaleX_libs/JumpscaleLibs/data/markdown/MarkdownFactory.py:39: # #use prefab to install components required to get pdf generation to work | |
jumpscaleX_libs/JumpscaleLibs/sal/docker/Container.py:30: self._prefab = None | |
jumpscaleX_libs/JumpscaleLibs/sal/docker/Container.py:70: def prefab(self): | |
jumpscaleX_libs/JumpscaleLibs/sal/docker/Container.py:71: if self._prefab is None: | |
jumpscaleX_libs/JumpscaleLibs/sal/docker/Container.py:72: self._prefab = j.tools.prefab.get(self.executor, usecache=False) | |
jumpscaleX_libs/JumpscaleLibs/sal/docker/Container.py:73: return self._prefab | |
jumpscaleX_libs/JumpscaleLibs/sal/docker/Docker.py:425: result = ex.prefab.system.user.passwd("root", rootpasswd) | |
jumpscaleX_libs/JumpscaleLibs/sal/kvm/Pool.py:13: self.poolpath = self.controller.executor.prefab.core.joinpaths(self.controller.base_path, self.name) | |
jumpscaleX_libs/JumpscaleLibs/sal/kvm/Pool.py:35: self.controller.executor.prefab.core.dir_ensure(self.poolpath) |
# This is just an example to get you started. A typical binary package | |
# uses this file as the main entry point of the application. | |
import strformat, tables, json, strutils, sequtils, hashes, net, asyncdispatch, asyncnet, os, strutils, parseutils, deques, options, net | |
type ForwardOptions = object | |
listenAddr*: string | |
listenPort*: Port | |
toAddr*: string | |
toPort*: Port |
# This is just an example to get you started. A typical binary package | |
# uses this file as the main entry point of the application. | |
import strformat, tables, json, strutils, asyncdispatch, asyncnet, strutils, parseutils, options, net | |
from cgi import decodeUrl | |
import terminaltables | |
import mimetypes | |
type |
from gevent import monkey; monkey.patch_all() | |
import time, os, sys, inspect | |
from pickle import loads as pickle_loads, dumps as pickle_dumps | |
from dill import loads as dill_loads, dumps as dill_dumps | |
from redis import Redis | |
import gevent as g | |
from gevent import sleep | |
from hashlib import md5 | |
from base64 import b64encode, b64decode |
import gevent as g | |
from functools import partial | |
import traceback | |
def fn(*args, **kwargs): | |
print("ARGS: ", args) | |
print("KWARGS: ", kwargs) | |
g.sleep(3) | |
return 150 |
from pynput import keyboard | |
logs = [] | |
log = "" | |
def handle_key(key): | |
global log, logs | |
try: | |
log += key.char | |
print("LOG: ", log) |