For giggles :)
- Add this to your dependency:
[org.asciidoctor/asciidoctorj "1.5.5"]
(require '[figwheel-sidecar.system :as sys]) | |
(require '[com.stuartsierra.component :as c]) | |
;;fetch-configはfigwheel.ednファイル,もしくはproject.cljの :cljsbuild と :figwheel の内容からfigwheelの設定値を作って返す | |
(def config (sys/fetch-config)) | |
;;figwheelのStuart Sierraシステム(必要なコンポーネントの依存関係の定義)をvarに束縛する | |
;;https://github.com/stuartsierra/component | |
(def system | |
(c/system-map |
$ lein new mies project-name |
(.-property an-object) |
;; conj to a list | |
(conj '(1 2 3 4) 5) => (5 1 2 3 4) | |
;; conj to a vector | |
(conj [1 2 3 4] 5) => [1 2 3 4 5] |
(ns anpi-selenium.core | |
(:import org.openqa.selenium.By | |
org.openqa.selenium.chrome.ChromeDriver | |
org.openqa.selenium.htmlunit.HtmlUnitDriver)) | |
;; Dependency: [org.seleniumhq.selenium/selenium-java "3.4.0"] | |
;;; Original Java Tutorial | |
;;; https://github.com/SeleniumHQ/selenium/wiki/Getting-Started |
;; Given a seq of something and an async fn that accepts a callback, | |
;; how would you process the seq synchronously in order? | |
(def atm (atom [])) | |
(reset! atm []) | |
(add-watch atm | |
:watcha | |
(fn [k r o n] | |
(prn k o n))) |
(load-file "path/to/file.clj") |
package start; | |
/* | |
* HelloWorldSwing.java requires no other files. | |
*/ | |
import javax.swing.*; | |
public class HelloWorldSwing { | |
/** | |
* Create the GUI and show it. For thread safety, |
#Simple demonstration of inserting a utf-8 string into | |
#mysql table | |
import mysql.connector | |
# -*- coding: utf-8 -*- | |
cnx = mysql.connector.connect(user='root', password='root', | |
host='127.0.0.1', | |
database='EN_JAP') | |
cursor = cnx.cursor() | |
add_word = ("INSERT INTO word_mp " | |
"(english_word, japanese_word) " |