Skip to content

Instantly share code, notes, and snippets.

View dcollien's full-sized avatar

David Collien dcollien

View GitHub Profile
@dcollien
dcollien / artStyles.json
Created July 9, 2023 17:49
JSON lists of art styles and artists useful for image prompts (midjourney, stable diffusion)
[
{
"label": "1850's Daguerrotype",
"value": "Daguerrotype",
"filters": [
"photography",
"digital art"
]
},
{
@arwhyte
arwhyte / caliper-event-message_posted.json
Created December 14, 2016 18:59
Example Caliper MessageEvent.
{
"@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",
"type": "MessageEvent",
"actor": {
"id": "https://example.edu/users/554433",
"type": "Person"
},
"action": "Posted",
"object": {
"id": "https://example.edu/sections/1/forums/2/topics/1/messages/2",
#!/usr/bin/python
import os
import socket
import sys
def encode_packet(data):
output = bytearray()
for i in range(0, len(data)):
tmpoutput = bytearray([0, data[i]])
@dcollien
dcollien / GitHub_WebHook.coffee
Last active April 7, 2021 23:23
GitHub WebHook Endpoint in CoffeeScript
# Simple GitHub Webhook Listener
express = require 'express'
bodyParser = require 'body-parser'
crypto = require 'crypto'
bufPack = require 'bufferpack'
app = express()
PORT = process.argv[2] or process.env.PORT or 8081
AUTH_SECRET = process.argv[3] or process.env.SECRET_TOKEN or 'test'