I hereby claim:
- I am coldhiber on github.
- I am coldhiber (https://keybase.io/coldhiber) on keybase.
- I have a public key ASCa8rTTaDdziSqtoMn6K8KmUIyDCGa9o_zVI07VHU6RKwo
To claim this, I am signing this object:
--- | |
description: | |
globs: | |
alwaysApply: false | |
--- | |
# Task List Management | |
Guidelines for creating and managing task lists in markdown files to track project progress | |
## Task List Creation |
class ObvIndicator(IIndicator): | |
params = dict() | |
def __init__(self, **kwargs): | |
super().__init__(**kwargs) | |
self.params = { | |
'obv_ema_timeperiod': IntParameter(default=14, low=2, high=200, space='buy'), | |
} | |
def calculate(self, df: DataFrame): |
#!/usr/bin/env python | |
import asyncio | |
import binascii | |
HOST, PORT = '0.0.0.0', 161 | |
class Receiver(asyncio.DatagramProtocol): | |
def __init__(self): |
// Check for a closing signal | |
// Graceful shutdown | |
sigquit := make(chan os.Signal, 1) | |
signal.Notify(sigquit, os.Interrupt, syscall.SIGTERM) | |
sig := <-sigquit | |
log.Printf("caught sig: %+v", sig) | |
log.Printf("Gracefully shutting down server...") |
I hereby claim:
To claim this, I am signing this object:
function bind(context, method) { | |
return function() { | |
return method.apply(context, arguments); | |
} | |
} |
#!/usr/bin/env python | |
import fileinput | |
import sys | |
import os | |
import re | |
file_name = "" | |
if len(sys.argv) > 1: | |
file_name = sys.argv[1] |
https://tutsplus.com/course/how-to-build-a-hypermedia-driven-rest-api/ by @rhodesjason
In this video series we’ll walk through building a simple REST API with node.js and express. By focusing on nouns, verbs, and relationships, you'll also finish with a clear understanding of what hypermedia is all about and how emerging hypermedia-driven API standards can make all of our lives as developers a little easier. ~ Jason Rhodes
// set-up a connection between the client and the server | |
var socket = io.connect(); | |
// let's assume that the client page, once rendered, knows what room it wants to join | |
var room = "abc123"; | |
socket.on('connect', function() { | |
// Connected, let's sign-up for to receive messages for this room | |
socket.emit('room', room); | |
}); |