Provides extension methods for semantic string support.
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
fun innerExpr(item: Int, mean: Int): Int { | |
return (item - mean) * (item - mean) | |
} | |
fun stdDev(items: List<Int>): Double { | |
val mean = items.sum() / items.size | |
val variance = items.map { innerExpr(it, mean) }.sum() / items.size | |
return Math.sqrt(variance.toDouble()) | |
} |
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
; Aliasing the string class to be more terse | |
(require '[clojure.string :as str]) | |
; As a 'def', this is evaluated once | |
(def vowel? (set "AaEeOoIiUu")) | |
; Given a word, converts it into a pig latin equivalent | |
(defn convert-word [word] | |
(let [first-letter (first word)] | |
(if (vowel? first-letter) |
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 class explicitly implements the ConnectionCallbacks and | |
* OnCorrectionFailedListener interfaces. What this means is that | |
* this class will implement what happens when a connection to | |
* Google Play Services fails, and what happens when a connection | |
* succeeds. | |
*/ | |
public class MainActivity extends FragmentActivity implements | |
GooglePlayServicesClient.ConnectionCallbacks, | |
GooglePlayServicesClient.OnConnectionFailedListener { |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
using System.Xml; | |
using System.Xml.Linq; |
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
(define (|> f g) | |
(g f)) | |
(define (square x) | |
(* x x)) | |
(|> '(1 2 3 4 5) (lambda (x) (map square x))) |
- Does the application compile?
- Does the application, with changes, run without crashing?
- Can a database, if applicable, be deployed without error?
- If a new feature is under review, does the new feature act as expected (if this is easy to test)?
- Does the commit message indicate the scope of the change set?
- Does the commit message call out any future work that remains to be done?
- Does the scope of the change set appear to fulfill the given task, and only that task?
- Is the change set associated with its appropriate work item?
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 app.core | |
(:require | |
[app.cache :refer :all] | |
[clojure.string :as str] | |
[clojure.xml :as xml] | |
[clj-xpath.core :as xpath] | |
[ring.util.codec :as codec]) | |
(:import (org.apache.tika.language.translate GoogleTranslator))) | |
(def langs {:en "english" |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace YES | |
{ | |
public abstract class ErrorReportingBase | |
{ |
OlderNewer