Skip to content

Instantly share code, notes, and snippets.

Norman Richards orb

Block or report user

Report or block orb

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 project.clj
(defproject trypy "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.7.0"]
[org.python/jython-standalone "2.5.2"]]
:aliases {"jython"
["trampoline" "run" "-m" "org.python.util.jython"]})
View CommentFun.java
package hello;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
public class CommentFun
{
@orb
orb / profiles.clj
Created Jun 8, 2015
repository stuff
View profiles.clj
{:user
{:plugins [[cider/cider-nrepl "0.9.0-SNAPSHOT" :exclusions [org.clojure/clojure]]
[lein-pprint "1.1.1"]]
:deploy-repositories [["austinclojure-snapshots"
"http://repo.nostacktrace.com/nexus/content/repositories/snapshots/"]
["austinclojure-releases"
{:url "http://repo.nostacktrace.com/nexus/content/repositories/releases/"
:sign-releases false}]]}
View derby.sh
wget http://www.motorlogy.com/apache//db/derby/db-derby-10.11.1.1/db-derby-10.11.1.1-bin.zip
unzip db-derby-10.11.1.1-bin.zip
cd db-derby-10.11.1.1-bin/
nohup bin/startNetworkServer &
@orb
orb / swap.sh
Created May 21, 2015
digital ocean swap file
View swap.sh
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
sh -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab'
@orb
orb / install.sh
Last active Dec 4, 2015
deploy tomcat digital ocean
View install.sh
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
sh -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab'
apt-get update
apt-get install -y tmux emacs24-nox openjdk-7-jdk tomcat7 tomcat7-admin libhsqldb-java nginx haveged
cat > /etc/nginx/sites-available/myapp <<EOF
@orb
orb / Split.java
Created Apr 29, 2015
trivial Markdown4j example
View Split.java
package zoo;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.markdown4j.Markdown4jProcessor;
View InsertBusinessProfile.java
package sergio.project.specialsApp;
import java.io.IOException;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
@orb
orb / recruiter.md
Last active May 8, 2018
I couldn't understand an email from a recruiter, so I used google translate and got this:
View recruiter.md

Dear keyword match,

You vaguely look like someone capable of doing work.

I have a couple jobs that I'm not going to bother to describe because that would have meant I needed to take the time to look at your actual experience and see if any of them are actually a fit. But trust me, these are big time real jobs that actually exist and would be perfect for you based on the fact that you matched a keyword.

Instead of telling you more, I'm going to ask you to tell me what you are doing now. If my fishing trip is successful, then I'll take the time to look and see if you might be a fit for one of the jobs I'm recruiting for. If you are, I might get back to you.

Thanks for your time, Recruiter Dude.

@orb
orb / coder.clj
Created Apr 14, 2015
Austin Clojure 4/13 alphabet-cipher
View coder.clj
(ns alphabet-cipher.coder)
(defn char->num [char]
(- (int char) (int \a)))
(defn num->char [ch]
(char (+ (int ch) (int \a))))
(defn mod26 [n]
(mod n 26))
You can’t perform that action at this time.