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
{:+ {:app { | |
;"pmeta-alt-]" [:tabset.next] | |
;"pmeta-alt-[" [:tabset.prev] | |
;"pmeta-alt-n" [:tabset.new] | |
;"pmeta-alt-w" [:tabset.close] | |
;"pmeta-shift-f" [:window.fullscreen] | |
"pmeta-alt-f" [:searcher.show] | |
"pmeta-f" [:find.fill-selection :find.show]} | |
:editor {"alt-w" [:editor.watch.watch-selection] |
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 schema-test.core | |
(:require | |
; Schema | |
[schema.core :as s] ; 型チェック関係 | |
[schema.macros :as sm] ; 定義用マクロなど | |
)) | |
;; | |
;; validate, check | |
;; |
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
Schemaの紹介 | |
Schemaとは | |
・Prismatic社製の型チェックライブラリ | |
・最新版は “0.2.1” | |
https://github.com/prismatic/schema |
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
; SCW Classifier | |
; | |
; This is a straightforward and an experimental implementation of SCW by fanannan _at_ forestwinds.com, based on "Exact Soft Confidence-Weighted Learning" by J Wang, P Zhao and S C H Hoi, 2012. | |
; Full covariance matrix is used for sigma so that this may run slowly with high dimensional data. | |
(ns wagtail.scw | |
(:require [clatrix.core :as cl]) | |
(:import [org.apache.commons.math3.special Erf])) | |
(defn probit [p] |
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
; fetch yomigana of an author registered at the National Diet Library of Japan | |
(ns ndl.core | |
(:use [clojure.data.json :as json] | |
[ring.util.codec :only [url-encode]] | |
[clj-http.client :as client])) | |
(defn make-query-string [m & [encoding]] | |
(let [s #(if (instance? clojure.lang.Named %) (name %) %) | |
enc (or encoding "UTF-8")] |
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
(require '[clojure.data.json :as json]) | |
(require '[clj-http.client :as client]) | |
(def url "https://twitter.com/i/search/timeline") | |
(defn build-params [query, current_time, cursor] | |
{:f "realtime", | |
:include_available_feature 1, | |
:include_entities 1, | |
:last_note_ts current_time, |
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
<?php | |
function check_tag($tag){ | |
if (array_key_exists($tag, $_GET) && $_GET[$tag] <> ""){ | |
$value = $_GET[$tag]; | |
} else { | |
$value = ""; | |
} | |
return $value; | |
} |
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
date,新規失業保険申請件数,ISM非製造業景況指数,消費者物価指数,ミシガン大消費者信頼感指数【速報値】,失業率,消費者物価指数【コア】,NY連銀製造業景気指数,建設許可件数,耐久財受注【除輸送用機器】,鉱工業生産,ミシガン大消費者信頼感指数【確報値】,フィラデルフィア連銀景況指数,生産者物価指数,中古住宅販売保留,小売売上高,中古住宅販売件数,耐久財受注,個人消費,生産者物価指数【コア】,雇用統計,ISM製造業景況指数,小売売上高【除自動車】,FOMC政策金利,貿易収支,四半期GDP,新築住宅販売件数,FOMC議事録,景気先行指数 | |
2008/02/01,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0 | |
2008/02/04,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
2008/02/05,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
2008/02/06,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
2008/02/07,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
2008/02/08,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
2008/02/11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
2008/02/12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
2008/02/13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0 |
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
#!/usr/bin/python | |
# this script have two functions: | |
# | |
# A: Gatherer | |
# 1) gets all updated files, excluding the files under symlinks | |
# 2) makes an archive file with a password, containing all updated files | |
# 3) places it as a downloadable file on the docroot | |
# | |
# B: Updater | |
# 1) download an archive file with a password, containing all updated file, from another server |
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
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
import os | |
import sys | |
import logging | |
import codecs | |
import MeCab | |
import re | |
import hashlib |
OlderNewer