Skip to content

Instantly share code, notes, and snippets.

View zombie's full-sized avatar

Tomislav Jovanovic zombie

View GitHub Profile
@kylemcdonald
kylemcdonald / function-calling.ipynb
Created June 14, 2023 01:10
Example of OpenAI function calling API to extract data from LAPD newsroom articles.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@djmitche
djmitche / mozilla-levels.md
Last active February 23, 2022 13:33
Mozilla Levels

[UPDATE June 2020]

The Mozilla Phonebook now shows staff levels by name in the "Official Job Title" field. This marks an improvement in transparency of levels within the organization!

Some of the technical details in this post, such as where to find your level, are out of date but preserved here.

The sections below on leveling-up and mis-leveling remain as relevant now as when this Gist was first written.

@Gozala
Gozala / go.js
Created October 31, 2013 00:08
Go routines for JS
// Utility function for detecting generators.
let isGenerator = x => {
return Function.isGenerator &&
Function.isGenerator.call(x)
}
// Data type represents channel into which values
// can be `put`, or `received` from. Channel is
// very much like queue where reads and writes are
// synchronized via continuation passing.
@jkp
jkp / websocketserver.py
Created July 18, 2012 13:28
A simple WebSockets server with no dependencies
import struct
import SocketServer
from base64 import b64encode
from hashlib import sha1
from mimetools import Message
from StringIO import StringIO
class WebSocketsHandler(SocketServer.StreamRequestHandler):
magic = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'
link|pubDate|duration|title
http://www.youtube.com/watch?v=nzWOeqhiwx3&feature=g-vrec|123|123|peta
http://www.youtube.com/watch?v=zhWChAihst1&feature=g-vrec|123|123|ceta