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 gulp = require("gulp"); | |
var jshint = require("gulp-jshint"); | |
gulp.task("default", function () { | |
console.log("Hello Gulp"); | |
return gulp.src("./js/**/*.js") | |
.pipe(jshint()) | |
.pipe(jshint.reporter("default")); | |
}); |
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
;; Exercise 1.1. Below is a sequence of expressions. What is the result printed by the interpreter | |
;; in response to each expression? Assume that the sequence is to be evaluated in the order in which | |
;; it is presented. | |
10 | |
;Value: 10 | |
(+ 5 3 4) | |
;Value: 12 |
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
def GROOVY = "groovy" | |
def JAVA = "java" | |
def APPLICATION = "application" | |
def plugins = [GROOVY, JAVA, APPLICATION] | |
def projectName | |
def projectType | |
def console = System.console() |
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
;; http://openweathermap.org/API | |
;; Free, JSON api that provides current weather data and forecasts. | |
;; How many cities called London are there? (hint: find?q=London) | |
;; What are the lat/long positions of all the Londons? | |
;; What is the forecasted average temperature for London, UK for the last 5 days? (hint: forecast?q=London) |
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
;; This returns a list of 52 maps | |
(def deck | |
"Represents a deck of 52 poker cards." | |
(for [suit [:clubs :hearts :spades :diamonds] | |
pip (range 2 15)] | |
{:suit suit | |
:pip pip})) | |
(defn get-hand | |
"Return a poker hand of 5 cards." |