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 apples.core | |
(:require [play-clj.core :refer :all] | |
[play-clj.g2d :refer :all] | |
[play-clj.math :refer :all])) | |
(declare apples main-screen) | |
(def speed 14) | |
(defn- get-direction [] | |
(cond |
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
@Service | |
@GraphQLApi | |
public class GitHubService { | |
@Autowired | |
RestTemplate restTemplate; | |
@Bean | |
RestTemplate restTemplate() { |
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
(let [in (java.io.PipedInputStream.) | |
out (java.io.PipedOutputStream.) | |
buf (java.io.BufferedWriter. (java.io.OutputStreamWriter. out))] | |
(.connect out in) | |
(doto buf | |
(.write "abdf") | |
(.write "abadfdf") | |
(.flush)) |
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
<form method="POST" @submit="validateBeforeSubmit"> | |
<span>Name</span> | |
<input type="text" class="formText" v-model.trim="user.username"> | |
<p class="bind-error" v-show="validation.hasError('user.username')">{{validation.firstError('user.nickname')}}</p> | |
</form> |
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 hub.db | |
(:require [clojure.tools.logging :as log] | |
[clojure.java.jdbc :as jdbc] | |
[mount.core :refer [defstate]] | |
[cheshire.core :refer [parse-string generate-string]] | |
[config.core :refer [env]] | |
[hub.util :as util] | |
[honeysql.core :as sql] | |
[honeysql.helpers :refer [merge-where]]) | |
(:import [java.sql PreparedStatement] |
NewerOlder