Skip to content

Instantly share code, notes, and snippets.

View jlisee's full-sized avatar

Joseph Lisee jlisee

  • Glydways
  • Falls Church, VA
  • 00:33 (UTC -04:00)
  • LinkedIn in/jlisee
View GitHub Profile
@jlisee
jlisee / leekwars_api.md
Last active June 6, 2022 22:43
Leek Wars API Notes
This file has been truncated, but you can view the full file.
{
"queryType": {
"name": "Query",
"description": "The query root for this schema",
"kind": "OBJECT"
},
"mutationType": {
"name": "Mutation",
"description": "The root for mutations in this schema",
"kind": "OBJECT"
This file has been truncated, but you can view the full file.
{
"data": {
"__schema": {
"queryType": {
"name": "Query",
"description": "The query root for this schema",
"kind": "OBJECT"
},
"mutationType": {
"name": "Mutation",
from atg.buildkite.cli import BuildkiteCli
from atg.buildkite.environment import is_buildkite_build
from atg.devex.ci import execution_environment
from atg.devex.ci.buildkite.log import print_separator
from atg.devex.ci.changedtargets import (
JSON_TARGET_FILENAME,
BAZEL_PROTOBUF_FILENAME,
changed_targets_report,
determine_changed_targets,
@jlisee
jlisee / protobuf-js-enum-to-int.js
Created October 30, 2018 02:56
Use protobuf.js to turn string fields in to integers so you can run Message.verify on the object
const PRIMITIVE_PROTO_TYPES = new Set([
'double',
'float',
'int32',
'int64',
'uint32',
'uint64',
'sint32',
'sint64',
'fixed32',
@jlisee
jlisee / markdown_list_wrap.md
Last active October 15, 2018 14:21
Test of markdown list wrapping
  • Foo
  • Bar zip
@jlisee
jlisee / git_lfs_example_shell_history
Created August 30, 2018 22:35
git lfs ls-files issue example
$ mkdir testrepo
$ git init
$ git lfs install
Updated git hooks.
Git LFS initialized.
$ git lfs track "*.psd"
Tracking "*.psd"
$ git add .gitattributes
$ git commit -m "attributes"
[master (root-commit) 4a725e5] attributes
@jlisee
jlisee / dummy-web-server.py
Created May 13, 2016 15:32 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost
@jlisee
jlisee / compare-format.py
Created February 14, 2015 20:15
Diffs a C++ file, or directory of C++ files with the results of running those files through clang-format.
#! /usr/bin/env python
# Author: Joseph Lisee <jlisee@gmail.com>
# Purpose: Test out various clang formatting options
# Usage: compare-format.py <diff-tool> <input-path> [<clang-options]
# Example:
# compare-format.py meld file.cpp "-style={BasedOnStyle: Google, IndentWidth: 4}"
import os
@jlisee
jlisee / embed_file.py
Last active February 27, 2020 09:21
Convert a file to a C file to embedding in a C/C++ program
#! /usr/bin/env python
# Copyright (c) 2014, Joseph Lisee
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.