- 章立て
- この本を読むべき人
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
module.exports = (grunt) -> | |
grunt.initConfig | |
connect: | |
server: | |
options: | |
port: 0xBEEF | |
hostname: "localhost" | |
keepalive: true | |
processMaxBuffer: 512*1024 | |
graphMaxY: 1000000 |
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
module.exports = (grunt) -> | |
grunt.registerTask 'connect_qunit', 'QUnit実行HTML配信サーバーを起動(CoffeeScriptコンパイル含む)', -> | |
options = @options | |
port: 0xBEEF | |
hostname: 'localhost' | |
base: '.' | |
urlNameSpace: 'qunit' | |
testDir: 'js_test' | |
srcDir: 'js' | |
includeLibs: [] |
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
90 "117.55.68.170", "http://www.mapion.co.jp/", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36" | |
3 "210.168.26.13", "-", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)" | |
3 "210.128.246.2", "http://www.mapion.co.jp/", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.103 Safari/537.36" | |
2 "219.166.180.40", "-", "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Tablet PC 2.0)" | |
2 "202.234.160.153", "-", "Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1" | |
2 "117.55.68.170", "-", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36" | |
1 "72.14.199.24", "-", "Mediapartners-Google" | |
1 "66.220.156.115", "-", "facebookexternalhit/1.1 (+http://www.facebook.com/extern |
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 test; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStreamWriter; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.util.Map; |
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
java_import Java::java.io.ByteArrayOutputStream | |
java_import Java::java.io.OutputStreamWriter | |
java_import Java::java.util.HashMap | |
java_import Java::org.apache.solr.common.SolrDocument | |
java_import Java::org.apache.solr.common.SolrDocumentList | |
java_import Java::org.apache.solr.common.params.SolrParams | |
java_import Java::org.apache.solr.common.util.NamedList | |
java_import Java::org.apache.solr.request.SolrQueryRequestBase | |
java_import Java::org.apache.solr.response.SolrQueryResponse | |
java_import Java::org.apache.solr.response.XMLResponseWriter |
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
java_import Java::java.io.ByteArrayOutputStream | |
java_import Java::java.io.OutputStreamWriter | |
java_import Java::java.util.HashMap | |
java_import Java::org.apache.solr.common.SolrDocument | |
java_import Java::org.apache.solr.common.SolrDocumentList | |
java_import Java::org.apache.solr.common.params.SolrParams | |
java_import Java::org.apache.solr.common.util.NamedList | |
java_import Java::org.apache.solr.request.SolrQueryRequestBase | |
java_import Java::org.apache.solr.response.SolrQueryResponse | |
java_import Java::org.apache.solr.response.XMLResponseWriter |
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 'rexml/document' | |
require 'stringio' | |
def format xml_str | |
output = StringIO.new | |
REXML::Formatters::Pretty.new.write(REXML::Document.new(xml_str), output) | |
output.string | |
end | |
puts format '<a><b>afasdlkfj</b></a>' |
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
if !window? && !setTimeout? && Packages? && print? # you are rhino | |
hash = {} | |
setTimeoutBase = (once) -> | |
(fn, delay) -> | |
fn = new Function fn if typeof fn=="string" | |
delay = +delay || 0 | |
thread = spawn -> | |
Packages.java.lang.Thread.sleep 15 # if delay is 0, can't access [tid] | |
while hash[tid] |
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 | |
printf "password> " | |
stty -echo | |
read PASS | |
stty echo | |
echo "" | |
echo "your password is [$PASS] :p" |
OlderNewer