run
するまではクエリは走らないm*
やms*
ができた段階ではまだクエリは走ってない
- 長いモナド型は途中の操作の種類を記憶している
- N個のモナドに対する操作は同じ種類の操作でないといけない (というのを型が保証している)
- 同じ種類の操作なので各ステップはまとめてやれる
Seq[モナド型]
に対するrun
は各ステップをまとめて実行FlatMapped[]
の場合はこのへん- ひとつ前までのモナドのリストをまとめて
run
- ひとつ前までのモナドのリストをまとめて
This file contains hidden or 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
;; http://shibayu36.hatenablog.com/entry/2012/12/22/135157 | |
(eval-when-compile (require 'cl)) | |
;;;###autoload | |
(defun anything-git-project-project-dir () | |
(let ((dir (shell-command-to-string "git rev-parse --show-toplevel"))) | |
(replace-regexp-in-string "[\n\r]+$" "" dir))) | |
;;;###autoload |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\primary_ide_channel] | |
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}" | |
"Service"="atapi" | |
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\secondary_ide_channel] | |
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}" | |
"Service"="atapi" |
This file contains hidden or 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
#!/bin/sh | |
# /etc/libvirt/hooks/daemon | |
net="default" | |
pidfile="/var/run/libvirt/network/$net.pid" | |
dnsmasq="/usr/sbin/dnsmasq" | |
config="/var/lib/libvirt/dnsmasq/$net.conf" | |
case $2 in | |
start) |
This file contains hidden or 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
#!/bin/sh | |
# /usr/local/sbin/hotplug | |
# sysctl -w kernel.hotplug=/usr/local/sbin/hotplug | |
dir=/usr/local/etc/hotplug | |
for script in `ls -1 "$dir"/*`; do | |
[ -x "$script" ] && ( "$script" >/dev/null 2>&1 ) & | |
done |
This file contains hidden or 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
map J <C-d> | |
map K <C-u> | |
map j 3j | |
map k 3k | |
map d D | |
map ; : | |
iunmap <C-Enter> |
This file contains hidden or 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
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. | |
// Jad home page: http://www.geocities.com/kpdus/jad.html | |
// Decompiler options: packimports(3) | |
// Source File Name: test.scala | |
package dynamic; | |
// Referenced classes of package dynamic: | |
// Sample |
This file contains hidden or 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
package com.github.tarao | |
package gradual | |
import scala.language.dynamics | |
import scala.language.experimental.macros | |
import scala.reflect.runtime.{universe => ru} | |
import ru.{Type, TypeTag, TermName, MethodSymbol, typeOf} | |
class Dyn(value: Any, t: Type) extends Dynamic { | |
def as[T: TypeTag](): T = { |
This file contains hidden or 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
FROM debian:jessie | |
RUN apt-get update && apt-get install -yq less sudo octave && apt-get clean | |
COPY entrypoint.sh / | |
ENTRYPOINT [ "/entrypoint.sh" ] |
This file contains hidden or 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
// Configuration | |
var WEBHOOK_URL = PropertiesService.getScriptProperties().getProperty('webhook_url'); | |
if (!WEBHOOK_URL) throw 'You should set "webhook_url" property from [File] > [Project properties] > [Script properties]'; | |
var SLACK_USERNAME = PropertiesService.getScriptProperties().getProperty('slack_username') || 'cronsheet'; | |
var SLACK_ICON_EMOJI = PropertiesService.getScriptProperties().getProperty('slack_icon_emoji') || ':clock3:'; | |
var SHEET_NAME = PropertiesService.getScriptProperties().getProperty('sheet_name'); | |
// ... END Configuration | |
var COLUMN_QUARTER = 1; | |
var COLUMN_DOW = 2; |