Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
ƛ

Gert Goet eval

💭
ƛ
View GitHub Profile
View deps.edn
{:paths
["."]
:deps
{org.clojure/clojurescript {:mvn/version "1.10.339"
#_#_:git/url "https://github.com/clojure/clojurescript.git"
#_#_:sha "6eedd0a08c49f7b0d4dcb30977b2fb38c90577bd"}}}
@eval
eval / .gitignore
Created Oct 2, 2018 — forked from caskolkm/logging.cljc
Simple Clojurescript logging using Google Closure logging tools, now in cljc :)
@eval
eval / clojure-intro.md
Last active Jul 12, 2017 — forked from nicorikken/clojure-intro.md
HelloData Clojure intro
View clojure-intro.md
@eval
eval / set-game.clj
Last active May 10, 2017 — forked from cgrand/set-game.clj
the SET game in clojure.spec
View set-game.clj
;; the SET game in clojure.spec
;; inspired by https://github.com/jgrodziski/set-game
;; run via:
;; $ lein try org.clojure/spec.alpha org.clojure/test.check "0.9.0"
;; requires the following in ~/.lein/profiles.clj
;; {:repl
;; {:dependencies [
;; ^:displace [org.clojure/clojure "1.9.0-alpha15"]
;; [org.clojure/test.check "0.9.0"]
;; ]}
@eval
eval / hello.rb
Created Mar 20, 2017
pry-try demo-script
View hello.rb
@a = 1
puts "Hello Gist!"
View prype
#!/usr/bin/env bash
# pipe stuff to pry followed by a repl:
# gist -r 36b4092748310bc8ec020f5e4dad8ea9 | prype
var=`cat;echo; echo '$stdin = $stdin.reopen "/dev/tty";'`
printf "${var}" | pry
View rubytapas-sequel.gemspec
Gem::Specification.new do |s|
s.name = 'rubytapas-sequel'
s.description = 'Follow along with http://devblog.avdi.org/2015/05/26/rubytapas-freebie-sequel/'
s.version = '0.0.1'
s.require_path = '.'
s.add_dependency "sequel"
s.add_dependency "sqlite3"
end
View gist:5a1432a87887ac9c51a9
alias alert='say -v "$([ $? = 0 ] && echo Good News || echo Bad News)" done'
View template.rb
# Usage:
# $ rails new blog -m https://gist.githubusercontent.com/eval/9410525/raw/template.rb
annotate_version = ask("What annotate version should I bundle? [2.6.2]")
gem 'annotate', annotate_version.presence || '2.6.2'
generate(:model, "person", "name:string")
inject_into_class 'app/models/person.rb', 'Person', " A = 1\n"
rake "db:migrate"
View initialize_role.rb
# Source: https://gist.github.com/neerajdotname/5187092
#gem 'activerecord', '4.0.0.rc2'
gem 'activerecord', '3.2.13'
require 'active_record'
require "minitest/autorun"
require 'minitest/pride'
require 'logger'
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')