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 org.karatachi.javassist; | |
import java.io.BufferedInputStream; | |
import java.io.DataInputStream; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Enumeration; | |
import java.util.List; | |
import java.util.Set; |
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 st.chimera.scraper | |
import net.htmlparser.jericho._ | |
import st.chimera.scraper.HtmlScraper._ | |
object Main { | |
def main(args: Array[String]) { | |
val doc = HtmlScraper("http://www.scala-lang.org/") | |
doc.eval("div[@class='node']/h2").foreach(_ match { | |
case node: Segment => |
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/bash | |
## XenServerVM用NISクライアント設定スクリプト | |
## xs-tools.isoを最初にマウントしておく | |
if [ "$UID" != "0" ]; then | |
echo "This script is for root user." | |
exit 0 | |
fi |
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/bash | |
dupsh $@ <<EOF | |
10.101.10.12 | |
10.101.10.13 | |
10.101.10.15 | |
10.101.10.24 | |
10.101.10.28 | |
EOF |
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/bash | |
PROGRAM=`basename $0` | |
MAILTO="test@example.com" | |
MAILFROM=$USER@$HOSTNAME | |
function sendmail { | |
read -rd '' BODY | |
/usr/sbin/sendmail -t << EOF | |
To: $MAILTO |
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
public class Derived extends Base { | |
public String a = "initial"; | |
public String b; | |
public static void main(String[] args) { | |
System.out.println("a: " + new Derived().a); | |
System.out.println("b: " + new Derived().b); | |
} | |
} |
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
private boolean hasNetIncome(FactTable factTable, QName qName, final String context) { | |
return option(factTable, NetIncome, qName, context).map(e -> true) | |
.orElseGet(() -> option(factTable, NetIncomeUS, qName, context).map(e -> true) | |
.orElseGet(() -> option(factTable, ProfitAttributableToOwnersOfParentIFRS, qName, context).map(e -> true) | |
.orElseGet(() -> option(factTable,BasicEarningsPerShareIFRS, qName, context).isPresent()))); | |
} |
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
var fs = require('fs'); | |
var https = require('https'); | |
var express = require('express'); | |
var bodyParser = require('body-parser'); | |
var port = process.env.PORT || 3000; | |
var keyFile = __dirname + '/certs/e2d3.key' | |
var certFile = __dirname + '/certs/e2d3.crt' |
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
DOMAIN=example.com | |
openssl req -new -newkey rsa:2048 -nodes -subj "/CN=$DOMAIN" -keyout $DOMAIN.key -out $DOMAIN.csr | |
openssl x509 -req -days 3650 -in $DOMAIN.csr -signkey $DOMAIN.key -out $DOMAIN.crt |
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
template: "hubot" | |
settings: | |
number_of_shards: 5 | |
number_of_replicas: 0 | |
analysis: | |
filter: | |
word_delimiter_preserved: | |
type: word_delimiter | |
preserve_original: true | |
char_filter: |
OlderNewer