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
:: Installation | |
:: ------------ | |
:: | |
:: 1. Add this to your Clojure directory. | |
:: 2. Add that directory to your Windows PATH | |
:: 3. Change the version number in the Batch file if need be. | |
:: | |
:: Then you can run clojure from the Windows command line just by typing: | |
:: | |
:: clojure [args] |
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
:: Installation | |
:: ------------ | |
:: | |
:: 1. Download the latest Leiningen Jar file | |
:: 2. Place it somewhere useful, mine is in my clojure directory | |
:: 3. Make sure that directory is on the Windows PATH | |
:: 4. Change the version number if you need to | |
:: | |
:: Then you can run Leiningen from the Windows command line just by typing: | |
:: |
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
:: Installation | |
:: ------------ | |
:: | |
:: 1. Add this to the same directory as the Google Closure Compiler jar | |
:: 2. Add that directory to your Windows PATH environment variable | |
:: | |
:: Then simply run the compiler, for example: | |
:: | |
:: compiler --js input.js --js_output_file output.min.js | |
:: |
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
:: Put this somewhere sensible open up the Task Scheduler create a new | |
:: task to run this batch file on a regular interval | |
@echo off | |
set DIRPATH=%~dp0 | |
:: Create a timestamp for the file | |
set TS=%date:~-4,4%%date:~-7,2%%date:~-10,2%-%time:~0,2%%time:~3,2%%time:~6,2%-%time:~9,2% | |
:: Create the log directory if it doesn't exist |
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
var reindent = { | |
/** | |
* This function converts space indentation to tabs | |
* @param input the input to cleanse | |
* @param n the number of spaces used to indent | |
* @returns the cleansed output | |
*/ | |
spacesToTabs: function(input, n) { | |
var regexp = new RegExp("[^\\S\\r\\n\\t]{" + n + "," + n + "}", "g"); |
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
[Desktop Entry] | |
Type=Application | |
Name=Aptana Studio 3 | |
Version=3.3.2 | |
GenericName=Integrated Development Environment | |
Comment=Build web applications quickly and easily | |
Exec=/usr/bin/aptana/AptanaStudio3 | |
Icon=/usr/bin/aptana/icon.xpm |
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
/** | |
* Given an integer representing the hexadecimal | |
* value for a color, returns an array containing | |
* the RGB values from 0 to 255 | |
* @param val the integer representing the color | |
* @returns the array of RGB values | |
*/ | |
function toRGB(val) { | |
var r = (val & 0xFF0000) >>> 16; | |
var g = (val & 0x00FF00) >>> 8; |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\.conf] | |
@="NotePadPP.conf" | |
[HKEY_CLASSES_ROOT\.conf\ShellNew] | |
"NullFile"="" | |
[HKEY_CLASSES_ROOT\NotePadPP.conf] | |
@="Configuration 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
Windows Registry Editor Version 5.00 | |
; Make clj runnable by clojure | |
[HKEY_CLASSES_ROOT\.clj] | |
@="ClojureScript" | |
[HKEY_CLASSES_ROOT\ClojureScript] | |
@="Clojure Script" | |
[HKEY_CLASSES_ROOT\ClojureScript\shell\open\command] | |
@="java -jar \path\to\clojure.jar %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
(defn fibseq [n] | |
((fn inner [acc m] | |
(if (= m 0) | |
acc | |
(inner (conj acc (+ | |
(if (< (count acc) 2) | |
0 (get acc (- n m 2))) | |
(if (< (count acc) 1) | |
1 (get acc (- n m 1))))) (- m 1)))) [ ] n)) |
OlderNewer