Skip to content

Instantly share code, notes, and snippets.

View bowbahdoe's full-sized avatar

Ethan McCue bowbahdoe

  • Pembroke, MA
View GitHub Profile
@bowbahdoe
bowbahdoe / Continuation.java
Created July 17, 2023 15:46
Continuation Proxy Classes
View Continuation.java
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
public final class Continuation {
final Object impl;
static final Class<?> IMPL_CLASS;
static final MethodHandle NEW;
static final MethodHandle YIELD;
View keybase.md

Keybase proof

I hereby claim:

  • I am bowbahdoe on github.
  • I am emccue (https://keybase.io/emccue) on keybase.
  • I have a public key ASBJESmZEasR7DZRXCg6ITA5bpgeyRei11UmUcMgdCTq8Ao

To claim this, I am signing this object:

View gist:7a0cc09892551d5ca193590f6729f011
class App extends React.Component {
constructor(props) {
this.state = {
count: 0
}
}
onClick(e) {
this.setState({
count: this.state.count + 1
View swagger.js
'use strict'
/*
This module contains all the code required for working with the swagger backend
*/
const Swagger = require('swagger-client')
const cookie = require('cookie')
const _ = require('lodash')
const CSRFTOKEN = cookie.parse(document.cookie).csrftoken
View swagger.js
'use strict'
/*
This module contains all the code required for working with the swagger backend
*/
const Swagger = require('swagger-client')
const cookie = require('cookie')
const _ = require('lodash')
const CSRFTOKEN = cookie.parse(document.cookie).csrftoken
View acl2s.clj
;; Macros to support placing definitions
;; proved to be correct in ACL2S begginer mode into a clojure program
;; ACL2SCode is one of
;; -- Symbol
;; -- Number
;; -- |List ACL2SCode|
(defonce acl2s-substitutions
'((listp list?)
View live_plot.py
'''
Live plots data recieved over serial
'''
import collections
import matplotlib as mpl
import matplotlib.pyplot as plt
import serial
import serial.tools.list_ports as list_ports
import threading
import atexit
View cons_list.java
interface ILO {}
class LO<T> implements ILO {
boolean empty;
T first;
LO<T> rest;
// Creates an ILO
LO(T first, LO<T> rest) {
this.first = first;
View Camera.psuedocode.js
export class Camera extends Fixture{
constructor(data,metadata={}) {
this._structure_id = ...
}
getCurrentImage() {...}
}
View lisp-syntax.cljs
;; BASIC LISP SYNTAX TUTORIAL
;; Calls the function '+' on the arguments 2 and 2
;; Returns the value 4
(+ 2 2)
;; Calls the function 'println' on the result of
;; the call to (+ 2 2). Returns no value
(println (+ 2 2))