array_intersect(array1, array2, ..., arrayN)
The idea is simple and comes from here: http://pioupioum.fr/developpement/javascript-array-intersection.html.
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
/* | |
Leaked by Das Erste | |
URL: http://daserste.ndr.de/panorama/archiv/2014/Quellcode-entschluesselt-Beweis-fuer-NSA-Spionage-in-Deutschland,nsa224.html | |
Source: http://daserste.ndr.de/panorama/xkeyscorerules100.txt | |
*/ | |
// START_DEFINITION | |
/** | |
* Fingerprint Tor authoritative directories enacting the directory protocol. | |
*/ |
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 | |
# | |
# blocklistman.sh | |
# Licensed under the GPL v3 | |
# | |
# Downloads a list of peer blocklists in P2P gzipped format and combines them. | |
# It only eliminates exact duplicate IP ranges (ignoring range name), and doesn't | |
# handle overlapping ranges specially. | |
# | |
# Usage: Put it in a cron job and pipe stdout to a file your application knows about. |
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 | |
# Licensed under any of GPLv2, MIT, and BSD 2-clause licenses | |
( | |
if [[ $1 ]]; then | |
while [[ $1 ]]; do | |
cat $1 | |
shift | |
done | |
else cat |
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 | |
# Licensed under any of GPLv2, MIT, and BSD 2-clause licenses | |
TEST_ADDR='4.2.2.1' | |
INTERVAL=10 | |
VERSION='nettest v0.2a, keith beckman' | |
args=$(getopt vhi:H:V $*) | |
function usage () { |
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
' This document is free and open-source software licensed simultaneously under the MIT License, | |
' the GPL v2, and the two-clause BSD License. | |
Public Sub DrawJustifiedString(ByRef g As Graphics, ByVal txt As String, ByVal font As Font, | |
ByVal brush As Brush, ByVal destination As RectangleF, ByVal format As StringFormat) | |
Using fmt As StringFormat = format.Clone | |
fmt.FormatFlags = fmt.FormatFlags Or StringFormatFlags.MeasureTrailingSpaces ' don't lose spaces | |
fmt.SetMeasurableCharacterRanges({New CharacterRange(0, 1)}) ' Set Graphics#MeasureCharacterRanges to measure first character | |
fmt.Alignment = StringAlignment.Center ' "Justified" is an alignment. We need to align each character Center in its computed box |
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
' This document is free and open-source software licensed simultaneously under the MIT License, | |
' the GPL v2, and the two-clause BSD License. | |
Public Function MeasureAllCharacterRanges(ByVal g As Graphics, ByVal txt As String, ByVal font As Font, ByVal dest As RectangleF, | |
ByVal format As StringFormat, ByVal ranges As IEnumerable(Of CharacterRange)) As IEnumerable(Of Region) | |
Dim out As New List(Of Region)(ranges.Count) | |
' Defensive copy to not side-effect caller based on shared GDI format struct | |
Using fmt As StringFormat = format.Clone | |
While ranges.Any |
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
/* | |
* Transcribed to JSON from http://en.wikipedia.org/wiki/Point_(typography)#Traditional_point-size_names | |
* This document is free and open-source software licensed simultaneously under the MIT License, the GPL v2, | |
* and the two-clause BSD License. | |
* | |
* nb. Where conflicts in naming existed (Double Small Pica and Double Pica), the British unit took | |
* precedence. In all other cases, both US and British units are described. | |
*/ | |
{ | |
"LetterpressSizes": { |
#Google Say
##about "libertarians are just"
- "Libertarians are just radical Right-wingers who have not one care for anything or anyone other than themselves." *
- "The Libertarians are just the Antinomians of the modern age." *
- "6 Comments to �Libertarians Are Just Republicans Who Smoke Pot�." *
- "His entire piece is premised upon the idea that libertarians are just another element of the Right that simply needs to be brought back into the..." *
- "Also, it gives credence to allegations from liberals that libertarians are just conservatives in disguise." *
- "Otherwise, libertarians are just " all the
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
#!/usr/bin/bash | |
# Licensed under any of GPLv2, MIT, and BSD 2-clause licenses | |
FFDIR=`cygpath -u $USERPROFILE`"/bin/ffmpeg/bin" | |
infile=`cygpath -w "$1"` | |
outfile=`cygpath -w "${1%.*}"` | |
echo $1 | |
FFPROBE="$FFDIR/ffprobe.exe" |