This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:aliases | |
{:dev {:extra-deps {com.bhauman/rebel-readline {:mvn/version "0.1.2"} | |
org.clojure/tools.nrepl {:mvn/version "0.2.12"} | |
cider/cider-nrepl {:mvn/version "0.17.0-SNAPSHOT"}} | |
:main-opts ["-m" "repl"]}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns interview.core) | |
(defn gen-seq | |
"Generates a random seq of numbers" | |
[n] | |
(for [_ (range n)] | |
(inc (rand-int 10)))) | |
(defn find-longest-seq | |
"Find longest increasing subsequence" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM clojure | |
ENV BOOT_AS_ROOT=yes | |
RUN wget https://github.com/boot-clj/boot/releases/download/2.0.0-rc9/boot.sh | |
RUN mv boot.sh boot && chmod a+x boot && mv boot /usr/local/bin | |
RUN boot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; from https://github.com/SilverCrowBlog/Clojure-Libgdx | |
; project.clj | |
(defproject testing "0.1.0-SNAPSHOT" | |
:description "FIXME: write description" | |
:url "http://example.com/FIXME" | |
:license {:name "Eclipse Public License" | |
:url "http://www.eclipse.org/legal/epl-v10.html"} | |
:dependencies [[org.clojure/clojure "1.5.1"] | |
[com.badlogic.gdx/gdx "0.9.9-SNAPSHOT"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; GUI configuration | |
(blink-cursor-mode 1) | |
(scroll-bar-mode -1) | |
(tool-bar-mode -1) | |
;; Escape key mod | |
(global-set-key (kbd "<escape>") 'keyboard-escape-quit) | |
;; ido mode configuration | |
(ido-mode 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" An extension of Steve Krenzel's autoreload script (https://github.com/stevekrenzel/autoreload) | |
Changes: | |
1. Allow user specified file extension white lists | |
2. Check if a process is alive before killing it | |
What follows is the original README.md file: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import os.path | |
import sys | |
def is_mercurial(directory): | |
"""Tests whether a given path contains a .hg folder.""" | |
hg_path = os.path.join(directory, ".hg") | |
return os.path.isdir(hg_path) | |
def checkout(directory): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- premake4 build file for libRocket http://librocket.com | |
-- | |
-- edit the includedirs section to point to your local freetype2 folder. | |
-- | |
-- originally written for a OSX and homebrew-based system | |
solution "libRocket" | |
configurations { "Release" } | |
platforms { "x32" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
solution "UnitTest++" | |
platforms { "x32" } | |
configurations { "Release" } | |
build_dir = "build" | |
targetdir(build_dir) | |
objdir(build_dir) | |
location(build_dir) | |
configuration { "macosx" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Minimal unit testing for Rhino | |
// loosely based off minunit - http://www.jera.com/techinfo/jtns/jtn002.html | |
// same license as minunit - do whatever you want with no warranty | |
var jstest = function () { | |
var pub = {}; | |
var currentSuite = "DefaultSuite"; | |
pub.testsRun = 0; | |
pub.assert = function (message, test) { |
NewerOlder