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 | |
/** | |
* 指定値を最大値として、入力された値が最大値以上の場合は | |
* 最大値として扱うカリー化関数 | |
* @param integer $max 最大値 | |
* @return Closure 比較関数 f(x) | |
*/ | |
function compare($max) { | |
return function ($x) use ($max) { | |
return ($x < $max) ? $x : $max; |
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
package curry; | |
import java.util.function.Function; | |
interface F<T, R> extends Function<T, R> {} | |
public class Curry { | |
public static void main(String[] args) { | |
F<Integer, F<Integer, Integer>> compare = max -> x -> (max <= x) ? max : x; |
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
package main | |
//#cgo pkg-config: opencv | |
//#include <cv.h> | |
//#include <highgui.h> | |
import "C" | |
import ( | |
"os" | |
"flag" |
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
$ cd /vaw/www | |
$ git clone git://github.com/codefirst/AsakusaSatellite.git | |
$ cd AsakusaSatellite | |
$ cp config/filter.yml.example config/filter.yml | |
$ cp config/websocket.yml.example config/websocket.yml | |
$ cp config/settings.yml.example config/settings.yml | |
$ vi config/filter.yml | |
1 - name: auto_link | |
2 - name: redmine_ticket_link | |
3 roots: |
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
#!/bin/sh | |
wget -q -O - http://APIのURL |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> | |
<title>★文書タイトル★</title> | |
<style> | |
/** | |
* スライドして表示される場所 |
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
{ | |
"name": "Chrome Keyconfig", | |
"version": "1.13.1", | |
"normal_actions": { | |
"Esc": { | |
"name": "limited mode", | |
"args": [] | |
}, | |
"j": { | |
"name": "scroll down", |
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
NameVirtualHost *:80 | |
NameVirtualHost *:433 | |
# | |
# どのドメイン設定にもマッチしない場合 | |
# | |
<VirtualHost *:80> | |
Include conf.d/vhost/default.conf | |
</VirtualHost> | |
<VirtualHost *:433> |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>やるきのないあれ</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script> | |
<style> | |
#loader { |
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
# ファイルキャッシュ有効期限 | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType text/css "access plus 7 days" | |
ExpiresByType text/javascript "access plus 7 days" | |
ExpiresByType application/x-javascript "access plus 7 days" | |
ExpiresByType image/gif "access plus 7 days" | |
ExpiresByType image/jpg "access plus 7 days" | |
ExpiresByType image/jpeg "access plus 7 days" |
OlderNewer