Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mikeknep on github.
  • I am mikeknep (https://keybase.io/mikeknep) on keybase.
  • I have a public key ASB4Vkprg1apSwHA7sApmVRzELg-7WFLiQzji4A97afKFQo

To claim this, I am signing this object:

CREATE TABLE target (
center text,
forward text,
point text,
shooting text
);
CREATE TEMP TABLE players AS (
SELECT 'kevin' as forward, 'steph' as point, 'klay' as shooting, 'draymond' as center
UNION ALL
module Result
module Attempt
def self.start(&failable)
Success.new(nil).and_then(&failable)
end
end
end
Index: ext/readline/readline.c
===================================================================
--- ext/readline/readline.c (revision 45224)
+++ ext/readline/readline.c (revision 45225)
@@ -1974,7 +1974,7 @@
rl_attempted_completion_function = readline_attempted_completion_function;
#if defined(HAVE_RL_PRE_INPUT_HOOK)
- rl_pre_input_hook = (Function *)readline_pre_input_hook;
+ rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook;
@mikeknep
mikeknep / dahomey.sh
Created November 11, 2015 01:14
Compile and run steps for my Java HTTP server
# Dahomey
## My Java HTTP server
dahomey() {
if [ $# -eq 0 ]
then
cd ~/8thlight/dahomey/
elif [ $1 = "jar" ]
@mikeknep
mikeknep / build.boot
Created August 15, 2015 19:46
Basic http server with http-kit and boot
#!/usr/bin/env boot
(set-env! :dependencies '[[http-kit/http-kit "2.1.18"]])
(require '[org.httpkit.server :refer [run-server]])
(defn handler
[request]
(prn request)
{:status 200
:headers {}
@mikeknep
mikeknep / exercises.sql
Created February 28, 2015 21:19
Practice SQL
/* Exercises */
/* List employees (names) who have a bigger salary than their boss */
--terse
select employees.name
from employees
join employees as bosses
on bosses.id = employees.boss_id
where employees.salary > bosses.salary;