Skip to content

Instantly share code, notes, and snippets.

Jason Lewis canweriotnow

Block or report user

Report or block canweriotnow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:df8449fb7534b97d79cc
"uid": "f2c20",
"recipient": {
"type": "email",
"hashed": true,
"salt": "deadsea",
"identity": "sha256$c7ef86405ba71b85acd8e2e95166c4b111448089f2e1599f42fe1bba46e865c5"
"image": "",
"evidence": {

Exercism and IntelliJ IDEA

So, you want to use IntelliJ IDEA for your Java exercises?

Here’s my workflow. Note, using IntelliJ IDEA CE 14.

Gradle setup

  • [ ] cd to $EXERCISM_DIR/java/the-exercise
  • [ ] Run gradle idea to generate the *.iml* and =.idea files/dirs
canweriotnow /
Last active Aug 13, 2019 — forked from havenwood/
On Debian, Ubuntu, or Mint: install Ruby 2.3.1 with chruby and ruby-build, ruby-install, and gem_home
# Install apt-get packages:
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
# Install chruby:
tar -xzvf chruby-0.3.9.tar.gz
cd chruby-0.2.3
sudo make install
canweriotnow / eio.el
Created Jun 6, 2015
elisp exercise helper
View eio.el
;;; eio.el --- Support for creating Elisp exercises
;; Author: Jason Lewis
;; Created: 5 June 2015
;; This file is not part of GNU Emacs.
;;; Commentary:
;; Provides utility functions for stubbing elisp exercises
# This script will setup Evm (Emacs Version Manager) and Cask on
# Travis to use for Emacs Lisp testing.
# In .travis.yml, add this:
# - curl -fsSkL > && source ./
# Emacs 24.3 is installed in the above script because Cask requires
View parsing.c
#include <stdio.h>
#include <stdlib.h>
#include "mpc.h"
#include <editline/readline.h>
#include <editline/history.h>
long eval_op(long x, char* op, long y) {
if (strcmp(op, "+") == 0) { return x + y; }
if (strcmp(op, "-") == 0) { return x - y; }

Keybase proof

I hereby claim:

  • I am canweriotnow on github.
  • I am canweriotnow ( on keybase.
  • I have a public key ASD2o2jjO2Qzp29DGxWqfOItwtqP2TFEhVRp3khXHZ2HhAo

To claim this, I am signing this object:

canweriotnow / handler.clj
Created Jan 8, 2014
speclj crash with luminus
View handler.clj
(ns hedgehog.handler
(:require [compojure.core :refer [defroutes]]
[hedgehog.routes.home :refer [home-routes]]
[noir.util.middleware :as middleware]
[compojure.route :as route]
[taoensso.timbre :as timbre]
[com.postspectacular.rotor :as rotor]
[selmer.parser :as parser]
[environ.core :refer [env]]
[hedgehog.routes.cljsexample :refer [cljs-routes]]))
App = new Marionette.Application();
App.addRegions {
"headerRegion": "#header"
"topMenuRegion": "#top-menu"
"mainRegion" : "#main"
App.on 'initialize:after', ->
View XXXXXXXXXXXXX_add_authentication_token_to_users.rb
# db/migrate/XXXXXXXXXXXXX_add_authentication_token_to_users.rb
class AddAuthenticationTokenToUsers < ActiveRecord::Migration
def change
add_column :users, :authentication_token, :string
add_index :users, :authentication_token, :unique => true
You can’t perform that action at this time.