Skip to content

Instantly share code, notes, and snippets.

View jasmith79's full-sized avatar

Jared Adam Smith jasmith79

View GitHub Profile
@staltz
staltz / introrx.md
Last active August 2, 2025 18:25
The introduction to Reactive Programming you've been missing
@mathyourlife
mathyourlife / simple_clojure_tcp_server.md
Created September 27, 2014 03:41
clojure: listen to a port and parse lines

Clojure TCP Simple Server

Creates a clojure script that listens on TCP port 8000 and prints out lines received through the connection.

(require '[clojure.java.io :as io])
(import '[java.net ServerSocket])

(defn receive
 "Read a sequence of lines from the socket"
@ivanleoncz
ivanleoncz / flask_app_logging.py
Last active February 26, 2025 21:14
Demonstration of logging feature for a Flask App.
#/usr/bin/python3
""" Demonstration of logging feature for a Flask App. """
from logging.handlers import RotatingFileHandler
from flask import Flask, request, jsonify
from time import strftime
__author__ = "@ivanleoncz"
import logging