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
; リプ爆用関数 | |
(defn little-region | |
"槍を持つたくさんの人形達が,標的に向かって突進して行く | |
(複数のアカウントから特定のツイート・ユーザーに対して | |
同じリプライを送る) | |
例1:(little-region @twitters 'marisa' 'hello') | |
全てのアカウントから@marisaに向けてhelloと呟く | |
例2:(little-region (-> @twitters (dissoc :syanhai1)) |
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
--ちんちんっぽいことするやつ | |
import System.Random | |
chimpo :: String -> String | |
randomString :: String -> String | |
chimpo c = if take 4 c == "ABCDE" | |
then c ++ ("なんか終わりました" ++ (show (length c ))) | |
else chimpo (randomString c) | |
randomString s = getStdRandom(randomR(0,4)) >>= \r -> case r of |
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
(reify Plugin | |
(get-name [this] nil) | |
(on-status [this status] nil) | |
(on-rt [this status] nil) | |
(on-unrt [this status] nil) | |
(on-fav [this source target status] nil) | |
(on-unfav [this source target status] nil) | |
(on-del [this status] nil) | |
(on-follow [this source user] nil) | |
(on-dm [this dm] nil) |
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
(do | |
(require '[gntp :as gp] | |
'[clojure.java.io :as io]) | |
(let [growler (gp/make-growler "Grimoire") | |
notifier (if (try (.. @main-stage isShowing) | |
(catch Exception e nil)) | |
(fn [& _] nil) | |
(growler :default {:icon (io/input-stream (io/resource "alice.png"))}))] | |
(reify Plugin | |
(get-name [this] nil) |
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
(reify Plugin | |
(get-name [this] "美容室で〜す^^") | |
(on-status [this status] nil) | |
(on-rt [this status] nil) | |
(on-unrt [this status] nil) | |
(on-fav [this source target status] nil) | |
(on-unfav [this source target status] nil) | |
(on-del [this status] nil) | |
(on-follow [this source user] nil) | |
(on-dm [this dm] nil) |
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
(do | |
; 名前空間の束縛はdo内で行なって下さい | |
(import '(javafx.scene.input Clipboard ClipboardContent)) | |
; プラグインを作成 | |
; それぞれnilの部分を書き換えて,プラグインの処理を書いて下さい. | |
(reify Plugin | |
; 右クリックメニューの名前を返します | |
(get-name [this] "クリップボードへコピー") | |
; ツイート(status)を受信した際に呼ばれる | |
(on-status [this status] nil) |
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 atcoder.core | |
(:use [clojure.string :only (join split split-lines)])) | |
; don't fix me | |
(defn gen-args | |
[input] | |
(split-lines input)) | |
; start code section |
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 atcoder.core | |
(:use [clojure.string :only (join split split-lines)])) | |
; don't fix me | |
(defn gen-args | |
[input] | |
(split-lines input)) | |
; start code section |
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 atcoder.core | |
(:use [clojure.string :only (join split split-lines)])) | |
; don't fix me | |
(defn gen-args | |
[input] | |
(split-lines input)) | |
; start code section |
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
; Grimoire settings | |
; Created by BOXP<http://archbox.dip.jp/> | |
; theme settings | |
; solarized_dark | |
(reset! theme "solarized_dark") | |
; set tweet text size | |
(reset! tweets-size 13) | |
; service settings |