Skip to content

Instantly share code, notes, and snippets.

require 'sinatra'
get '/hi' do
"Hello World!"
end
{ "foo" :"bar" }
package jp.smatty;
import jp.smatty.common.FileUtils;
import org.opencv.core.*;
import org.opencv.imgcodecs.Imgcodecs;
import org.opencv.imgproc.Imgproc;
import org.opencv.objdetect.CascadeClassifier;
import java.io.File;
@smatty
smatty / server.rb
Last active January 1, 2016 15:09
sinatraのhello world
require 'sinatra'
get '/' do
"Hello, world!"
end
@smatty
smatty / ネットワークドライブ展開.vbs
Created February 19, 2013 13:26
ネットワークドライブをフルパスに展開し、クリップボードに保存する。 Windowsの送るなどで利用する。
Option Explicit
Dim args, arg
Set args = WScript.Arguments
if args.Count <> 1 Then
Call MsgBox("ファイルもしくはフォルダをドラッグしてください。",,"引数エ
ラー")
end if
dim fileFullPath
@smatty
smatty / Apache Stop
Created February 18, 2013 13:24
Apacheを停止する。#Mac
sudo apachectl stop
@smatty
smatty / apache start
Created February 18, 2013 13:23
Apacheを起動する。 #Mac
sudo apachectl start
@smatty
smatty / phpinfo.php
Created February 18, 2013 13:20
phpのバージョンを表示する。
<?
phpinfo();
?>