Skip to content

Instantly share code, notes, and snippets.

Ian Eure ieure

Block or report user

Report or block ieure

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 sql.el
(defun sql-connect* (connection &optional new-name)
(interactive
(list (sql-read-connection "Connection: " nil '(nil))
current-prefix-arg)
nil)
(require 'tramp)
(let ((dir (cadr (assoc 'default-directory
(cdr (assoc connection sql-connection-alist))))))
(if dir
(let ((default-directory dir))
View killme.scala
// kill me
class KillMeWith[W <: Weapon] extends Death {
View fun-with-postgres
lmao=# CREATE TABLE "DELETE * FROM users" ("TRUNCATE TABLE" TEXT NOT NULL, "DROP DATABASE" TEXT NOT NULL);
lmao=# INSERT INTO "DELETE * FROM users" ("TRUNCATE TABLE", "DROP DATABASE") VALUES ('lol', 'wtf');
lmao=# SELECT * FROM "DELETE * FROM users";
TRUNCATE TABLE | DROP DATABASE
----------------+---------------
lol | wtf
(1 row)
lmao=#
View whoops.org
.|'''''|        ||    '||  ||`          '||     
|| .      ''    ||     ||  ||            ||     
|| |''||  ||  ''||''   ||''||  '||  ||`  ||''|, 
||    ||  ||    ||     ||  ||   ||  ||   ||  || 
`|....|' .||.   `|..' .||  ||.  `|..'|. .||..|' 
View gist:7777474
fermion!ieure:~$ brew update
error: The following untracked working tree files would be overwritten by merge:
Library/Formula/ant.rb
Library/Formula/apple-gcc42.rb
Please move or remove them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
fermion!ieure:~$ cd /usr/local/
fermion!ieure:/usr/local$ git status
# On branch master
View sl.sh
#! /bin/bash
IFS="
"
echo
for FRAME in \
"B :^)" \
" B :^)" \
" B :^)" \
" B :^)" \
View lol.scala
scala> case class X(a: Int, b: Int)
defined class X
scala> X(1, 2).copy(a=1,b=-1)
<console>:10: error: not found: value b
X(1, 2).copy(a=1,b=-1)
^
scala> X(1, 2).copy(a=1,b = -1)
res1: X = X(1,-1)
View nspace.el
;;; nspace.el --- Pseudo-namespaces
;; Copyright (C) 2013 Ian Eure
;; Author: Ian Eure <ian.eure@gmail.com>
;; Keywords: lisp, data
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
View erc-fun.el
(defvar upside-down-alist
'((?a . )
(?b . ?q)
(?c . )
(?d . ?p)
(?e . )
(?f . )
(?g . )
(?h . )
(?i . )
View gist:5368034
$ lein install
Created /Users/ieure/Projects/simple/3p/codox/codox.core/target/codox.core-0.6.5-SNAPSHOT.jar
Wrote /Users/ieure/Projects/simple/3p/codox/codox.core/pom.xml
$ find ~/.m2 -iname \*codox\*
/Users/ieure/.m2/repository/codox
/Users/ieure/.m2/repository/codox/codox.core
/Users/ieure/.m2/repository/codox/codox.core/0.6.5-SNAPSHOT/codox.core-0.6.5-SNAPSHOT.jar
/Users/ieure/.m2/repository/codox/codox.core/0.6.5-SNAPSHOT/codox.core-0.6.5-SNAPSHOT.pom
$
You can’t perform that action at this time.