Performs exponential calculation on operands. Same algorithm as Math.pow(x, y)
- Commonly used in albegra, geometry, physics and robotics.
- Nice to have "inline" operator
- Python
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background-color: #36393B; | |
} | |
svg { | |
position: absolute; |
(require '[clojure.data.fressian :as fress]) | |
(require '[clojure.java.io :as io]) | |
(import 'java.util.zip.GZIPInputStream) | |
(defn fress-seq* [reader] | |
(let [x (try (fress/read-object reader) (catch Exception e :eof))] | |
(if (= :eof x) | |
(do (.close reader) nil) | |
(cons x |
(set-env! | |
:source-paths #{"src/cljs"} | |
:resource-paths #{"resources"} | |
:dependencies '[[adzerk/boot-cljs "0.0-2814-4" :scope "test"] | |
[adzerk/boot-cljs-repl "0.1.9" :scope "test"] | |
[adzerk/boot-reload "0.2.4" :scope "test"] | |
[pandeiro/boot-http "0.6.1" :scope "test"] | |
[cljsjs/jquery "1.9.0-0"] | |
[quil "2.2.5" :exclusions [[org.clojure/clojurescript] | |
[com.cemerick/piggieback]]]]) ;; |
<!-- so it turns out that the object tag can act like an iframe | |
but the cool thing is you can nest object tags inside eachother for a fallback path. | |
what this means is you can "objectframe" a site.. and if it fails.. (site down, offline, whatever).. it'll use the next one. | |
so you can objectframe the live site and fallback to a screenshot. | |
or something. | |
demo at : http://jsfiddle.net/paul/CY2FQ/1/ | |
--> |
$ express express-test | |
create : express-test | |
create : express-test/app.js | |
create : express-test/public/stylesheets | |
create : express-test/public/stylesheets/style.css | |
create : express-test/public/images | |
create : express-test/public/javascripts | |
create : express-test/logs | |
create : express-test/pids | |
create : express-test/views |
So you think you wanna be a web developer... Fork this, update your copy with answers. They don't need to be precise - pseudo-code is fine in most cases. Some questions don't have correct answers.
<!-- | |
Copyright 2013 The Polymer Authors. All rights reserved. | |
Use of this source code is governed by a BSD-style | |
license that can be found in the LICENSE file. | |
--> |
OS:
CentOS6
Output of uname -a
:
$ uname -a
Linux localhost.localdomain 2.6.32-358.2.1.el6.x86_64 #1 SMP Wed Mar 13 00:26:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Chrome version:
(defn index-of | |
"return the index of the supplied item, or nil" | |
[v item] | |
(let [len (count v)] | |
(loop [i 0] | |
(cond | |
(<= len i) nil, | |
(= item (get v i)) i, | |
:else (recur (inc i )))))) |