Skip to content

Instantly share code, notes, and snippets.

Bernd ecki

Block or report user

Report or block ecki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View openantrag-j2c.ps1
#
# This will format http://openantrag.de/api/proposal/ID/gettop/100 JSON files into CSV
#
$list = @()
foreach($file in Get-ChildItem -Filter proposal-*.json .) {
$list += ((Get-Content -Encoding UTF8 $file) -join "`n" | ConvertFrom-Json)
}
# Inspect Result graphically: PS1> $list | Out-GridView
@ecki
ecki / gist:5638362
Created May 23, 2013
Java Networking 501 :)
View gist:5638362
package test;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
/**
* Demonstrate that InetAddress#getByName() with a literal does not
* fill in the host name, which leads to (uncached) reverse lookups
You can’t perform that action at this time.