Imagine you inherit a significantly large Java codebase. The code is very poor. What are the libraries and methods that might help you regain sanity?
To start:
(de frame @ | |
(when (next) | |
(link | |
(make | |
(if (= 10 (link (arg))) | |
(apply link (head 2 (rest))) | |
(when (= 10 (+ (arg) (link (next)))) | |
(link (car (rest))) ) ) ) ) | |
(pass frame) ) ) |
;; http://software-lab.de/doc/faq.html#interpreted | |
(de incMe () | |
(do 8 | |
(printsp 0) | |
(inc (cdadr (cdadr incMe))) ) ) | |
: (incMe) | |
0 1 2 3 4 5 6 7 -> 8 | |
: (incMe) |
Imagine you inherit a significantly large Java codebase. The code is very poor. What are the libraries and methods that might help you regain sanity?
To start:
// Make an array of the LatLng's of the markers you want to show | |
var LatLngList = array (new google.maps.LatLng (52.537,-2.061), new google.maps.LatLng (52.564,-2.017)); | |
// Create a new viewpoint bound | |
var bounds = new google.maps.LatLngBounds (); | |
// Go through each... | |
for (var i = 0, LtLgLen = LatLngList.length; i < LtLgLen; i++) { | |
// And increase the bounds to take this point | |
bounds.extend (LatLngList[i]); | |
} | |
// Fit these bounds to the map |
(set! *print-length* 10) | |
(set! *print-level* 4) |
:-:-:-:-:- | |
:-:-:-:-:- | |
:-:-:-:-:- | |
:-:-:-:-:- | |
:-:-:-:-:- | |
move :X [1 0] | |
0 plies generated by AI (by far) | |
:-:-:-:-:- | |
:X:-:-:-:- |
(def greeting-defaults {:hello (fn [who] (str "hello " who))}) | |
(defprotocol Greeting | |
(hello [who])) | |
(defrecord Person [name]) | |
(extend Person | |
Greeting | |
greeting-defaults) |
(def a {:k [1 2]}) | |
(update-in a [:k 1] (constantly :ha)) |
sed 's/call //g' call-mvn.bat | sh |
git config --add svn-remote.newbranch.url https://svn/path_to_newbranch/ | |
git config --add svn-remote.newbranch.fetch :refs/remotes/newbranch | |
git svn fetch newbranch [-r<rev>] | |
git checkout -b local-newbranch -t newbranch | |
git svn rebase newbranch |