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
requires 'WWW::Mechanize', '1.74'; | |
requires 'HTML::TreeBuilder::XPath', '0.14'; | |
requires 'HTML::Tidy', '1.56'; | |
requires 'HTTP::Response::Encoding', '0.06'; |
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
{ | |
"name": "eanswer", | |
"description": "A minimal D application.", | |
"dependencies": { | |
"kxml": ">=1.0.0", | |
"ironcache-d": "~>0.0.5" | |
} | |
} |
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
heroku run "(sleep 30; curl -sS --data document=test localhost:8080/rest/document/validate >/dev/null; curl -sS localhost:8080/rest/config/redpens; java -version; ps ux; killall java)& `sed -e 's/web //' -e 's/\$PORT/8080/' < Procfile` 2>&1 1>/dev/null | grep -v :INFO:" |
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
pkgname=redpen-git | |
_pkgname=$(echo $pkgname | cut -d- -f1) | |
pkgver=1.5.5_a5db96 | |
pkgrel=1 | |
pkgdesc='A document checker. RedPen is a proofreading tool to help writers or programmers.' | |
url="http://redpen.cc/" | |
arch=('any') | |
license=('Apache') | |
depends=('java-runtime>=8') | |
makedepends=('git' 'maven') |
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
@echo off | |
chcp 65001 >NUL | |
set JAVA_OPTS=-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dfile.encoding=UTF-8 | |
cmd /c %USERPROFILE%\Downloads\redpen-cli-1.2\bin\redpen.bat ^ | |
-c %USERPROFILE%\Downloads\redpen-cli-1.2\conf\redpen-conf-ja.xml %* 2>&1 ^ | |
| findstr /V /R "^$" | findstr /V /C:"[INFO ]" | |
if ERRORLEVEL 1 ( | |
exit /b 0 | |
) else ( | |
exit /b 1 |
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
perl -MEncode -nle 'next unless eval {decode_utf8($_, Encode::LEAVE_SRC | Encode::FB_CROAK)}; print $_' <.histfile >/tmp/.histfile |
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
{ | |
"str": "A", | |
"int": 1, | |
"float": 1.1, | |
"obj": {"a": true, "b": false, "c": null, "d": {"e": 2}}, | |
"obj2": {}, | |
"arr": [3, 4], | |
"arr2": [[1, 2], [3, 4], [5, 6]], | |
"arr3": [{"A": 1}, {"B": 2}], | |
"arr4": [[1], [2, 3]], |
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
# emulate "zip temp.zip -r %TEMP%\hoge", require .net4.5 | |
Add-Type -AssemblyName System.IO.Compression | |
# https://msdn.microsoft.com/en-us/library/system.io.compression.ziparchivemode(v=vs.110).aspx | |
# ZipArchiveMode Enumeration (System.IO.Compression) | |
# "the entire archive is held in memory." | |
$zip = New-Object -TypeName System.IO.Compression.ZipArchive ` | |
-ArgumentList ([System.IO.File]::Create( | |
(Join-Path -Path $env:TEMP -ChildPath "temp.zip")) | |
), ([System.IO.Compression.ZipArchiveMode]::Update) |
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
<# | |
.SYNOPSIS | |
Capture WebPage & Save. | |
.DESCRIPTION | |
1. Move into the directory that contains capture-ie.ps1 | |
2. Read config.json | |
3. Retrieve resouces | |
4. Start IE for capture page | |
5. Save to PNG file |
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
(advice-add | |
'setenv :around | |
(lambda (f &rest args) | |
"discard GREP_OPTIONS on grep" | |
(let ((VARIABLE (first args))) | |
(unless (string= VARIABLE "GREP_OPTIONS") | |
(apply f args))))) |