Bouncrは認証・認可の機能を備えたリバースプロキシです。
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
type Val = | |
| Int of int | |
| Bool of bool | |
type Ope = Add | Mul | Lt | |
type Ast = | |
| Val of Val | |
| Form of Ope * Ast * Ast | |
let exec ope v1 v2 = | |
match ope, v1, v2 with |
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 bakusatsu | |
(:refer-clojure :exclude [+ -]) | |
(:require [clojure.spec.alpha :as s] | |
[clojure.spec.test.alpha :as stest] | |
[clojure.core :as core])) | |
;; 金額に関する振る舞い(金額同士の加算と減算ができる) | |
(defprotocol IMoney | |
(+ [this money]) | |
(- [this money])) |
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 Vue from 'vue' | |
import { validationMixin } from 'vuelidate' | |
import { required, minLength } from 'vuelidate/lib/validators' | |
export default function (store) { | |
const validator = new Vue({ | |
mixins: [ | |
validationMixin | |
], | |
computed: { |
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 client.ui | |
(:require | |
[goog.i18n.NumberFormat.Format]) | |
(:import | |
(goog.i18n NumberFormat) | |
(goog.i18n.NumberFormat Format))) | |
(def nff | |
(NumberFormat. Format/DECIMAL)) |
- For your local dev, create a
Dockerfile
that is based on your production image and simply installxdebug
into it. Exemple:
FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
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 cljs-made-easy.core | |
(:refer-clojure :exclude [into]) | |
(:require-macros [cljs.core.async.macros :refer [go go-loop]]) | |
(:require [cljs.core.async :refer [<! >!] :as a])) | |
(enable-console-print!) | |
(defn resolving-promise [key t reject] | |
(go | |
(pr (str key " starting")) |
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 | |
#^{:author "Jesse Wattenbarger" | |
:doc "pulled out of a production program for gist."} | |
coolquery.core | |
(:gen-class) | |
(:require [clojure.java.io :as io] | |
[clojure.core.async :as a :refer | |
[chan go go-loop close! <!! <! >! >!!]] | |
[jdbc.core :as jdbc] ;; good jdbc interop | |
)) |
NewerOlder