Skip to content

Instantly share code, notes, and snippets.

View ecton's full-sized avatar
🦀
Working on Cushy, a Rust GUI

Jonathan Johnson ecton

🦀
Working on Cushy, a Rust GUI
View GitHub Profile
@ecton
ecton / Khonsu Labs Contributor License Agreement.md
Last active March 29, 2021 14:44
Last Edit: 2021-03-29 Removed clause 3c

Contribution License Agreement

This Contribution License Agreement ("Agreement") is agreed to by the party signing below ("You"), and conveys certain license rights to Khonsu Labs LLC incorporated in the State of Nevada and its affiliates ("Khonsu Labs") for Your contributions to Khonsu Labs' open-source projects. This Agreement is effective as of the latest signature date below.

  1. Definitions.

    • "Code" means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to Khonsu Labs under this Agreement.

    • "Project" means any of the projects owned or managed by Khonsu Labs and offered under a license approved by the Open Source Initiative (www.opensource.org).

@ecton
ecton / keybase.md
Last active September 9, 2020 20:50
keybase.md

Keybase proof

I hereby claim:

  • I am ecton on github.
  • I am nilobject (https://keybase.io/nilobject) on keybase.
  • I have a public key ASCL3YTHJDpgB4JGgxiMY8VO9YQOlnK9nvAVamXOZJdlCQo

To claim this, I am signing this object:

@ecton
ecton / profile.ps1
Created March 27, 2017 16:12
SSH from Powershell
function ssh {
$host.ui.rawui.WindowTitle = "ssh $args"
C:\Windows\system32\bash.exe -l -c "ssh $args"
}
@ecton
ecton / api_checker.rb
Created August 19, 2012 21:37
EVE Api Checker v0.1
# Usage: ruby api_checker.rb id vcode > output.html
require 'rubygems'
require 'nokogiri'
require 'open-uri'
DEBUG = ENV['DEBUG'].to_i != 0
module EVE
def self.api_call(path, params)
public class UserDatabase {
static SQLiteDatabase database;
static public SQLiteDatabase getDatabase(Context ctx) {
if (database == null) {
database = ctx.openOrCreateDatabase("user.sqlite3", SQLiteDatabase.OPEN_READWRITE, null);
database.execSQL("CREATE TABLE IF NOT EXISTS userScheduleItems (rowid INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT COLLATE NOCASE, color INTEGER, duration REAL, isFromServer INTEGER, date REAL, isExternal INTEGER, scheduleServerId TEXT COLLATE NOCASE, notes TEXT COLLATE NOCASE, isDeleted INTEGER, exhibitorServerId TEXT COLLATE NOCASE)");
}
return database;
}
function splitAndScoreText(results, text, score) {
if (text != null) {
var words = text.replace(/[^\w]+/g," ").toLowerCase().split(" ");
for (var word in words) {
if (words[word].length > 1) {
if ("a,about,an,and,are,as,at,be,by,from,how,i,in,is,it,of,on,or,that,the,this,to,was,we,what,when,where,which,with".search(words[word]) < 0) {
results[words[word]] = (results[words[word]] || 0) + score;
}
}
}
\version "2.13.3"
upper = \relative c'' {
\clef treble
\key f \major
\time 5/4
\tempo 4 = 152
s2. << f4 a >> <<g c,>>