Skip to content

Instantly share code, notes, and snippets.

View jordanburke's full-sized avatar

Jordan jordanburke

View GitHub Profile
@jordanburke
jordanburke / default.md
Created June 27, 2025 01:08 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@jordanburke
jordanburke / kuzu-getAll.js
Last active June 22, 2025 16:18
Kuzu getAll() hangs on subsequent ALTER TABLE results in batch queries
// Minimal reproduction of Kuzu ALTER TABLE getAll() hang bug
// Bug: getAll() intermittently hangs on subsequent ALTER TABLE results in batch queries
// Tested with: Kuzu 0.10.0, Node.js v22.14.0
const kuzu = require('kuzu');
async function reproduceBug() {
const db = new kuzu.Database('./test-db');
const conn = new kuzu.Connection(db);
@jordanburke
jordanburke / Upload.tsx
Last active December 29, 2020 22:44
React Simple S3 Uploader
import React, {useState} from "react";
import axios from "axios";
import config from "../config"
const endpoint = config.apiGateway.URL;
export const Upload = () => {
const [file, setFile] = useState<File | undefined>()
@jordanburke
jordanburke / editableTextAngular.js
Last active December 4, 2017 14:27
WYSIWYG directive for xeditable using textAngular
angular.module('xeditable').directive('editableTextAngular', ['editableDirectiveFactory',
function (editableDirectiveFactory) {
return editableDirectiveFactory({
directiveName: 'editableTextAngular',
inputTpl: '<div text-angular></div>',
addListeners: function () {
var self = this;
self.parent.addListeners.call(self);
// submit textarea by ctrl+enter even with buttons
if (self.single && self.buttons !== 'no') {
@jordanburke
jordanburke / AngularLargeNumberFilterFormat.js
Last active August 29, 2015 14:03
Angular Large Number Format
(function() {
this.app = angular.module('myApp', []);
this.app.filter("largeNumberFormat", function() {
return function(number) {
var abs;
if (number !== void 0) {
console.log(number);
abs = Math.abs(number);
trait XsnTypeMode extends PrimitiveTypeMode {
import com.codahale.jerkson.Json._
import scala.collection.mutable.HashMap
import scala.language.implicitConversions
implicit val jsonTEF = new NonPrimitiveJdbcMapper[String,HashMap[String, Any],TString](stringTEF, this) {
def convertFromJdbc(v: String) = if(v == null) null else parse[HashMap[String, Any]](v)
def convertToJdbc(v: HashMap[String, Any]) = if(v == null) null else generate(v)
override def sample = new HashMap[String, Any]()
}
/**
The MIT License (MIT)
Copyright (c) 2013 Jean Helou
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@jordanburke
jordanburke / SquerylSQL.scala
Last active August 29, 2015 13:56 — forked from max-l/squeryl hand written SQL
squeryl hand written SQL
import RawSql._
val pathsById = q("select id, st_AsText(r.path) from findPaths(?,?,?)", x, y, z).toSeq[Long, String].toMap
object object RawSql {
def q(query: String, args: Any*) =
new RawTupleQuery(query, args)
class RawTupleQuery(query: String, args: Seq[Any]) {
@jordanburke
jordanburke / ScalaFlywayServlet.scala
Last active December 13, 2015 18:08
Simple Scala FlywayServlet
class FlywayServlet extends javax.servlet.http.HttpServlet {
private val logger: Logger = LoggerFactory.getLogger(classOf[FlywayServlet])
//declaring globally so we can potentially make this an Schema Admin Servlet which can
//repair, destroy, migrate the schema
private val flyway: Flyway = {
//unclear if DriverDataSource is an internal class
//flyway example on google code uses it so I decided to as well
//avoids having to explicitly create properties object and put