Param array
must implement method reduce
, with arity of 2.
// !array => !reduce(_,_)
function reduce(array, reducer, seed) {
return array.reduce(reducer, seed);
}
using System; | |
using Lucene.Net.Index; | |
namespace Lucene.Net.Extensions | |
{ | |
public class Disposable<T> : IDisposable | |
{ | |
public Disposable() { } | |
public Disposable(T entity, Action<T> disposeAction) | |
{ |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using Lucene.Net.Analysis; | |
using Lucene.Net.Analysis.Standard; | |
using Lucene.Net.Documents; | |
using Lucene.Net.Index; | |
using Lucene.Net.QueryParsers; |
<html> | |
<body> | |
<h1>Party time!</h1> | |
<!--#include virtual="quote.html" --> | |
</body> |
using System; | |
using System.Diagnostics; | |
using Mono.Simd; | |
namespace VectorizedQueryTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
int x=0; | |
int y=0; | |
int z=0; | |
int w=0; | |
var bitwise_or = (x | y | z | w) == 0; | |
var equality = x == 0 && y == 0 && z == 0 && w == 0; | |
System.Diagnostics.Debug.Assert(bitwise_or == equality); |
#/bin/bash | |
# cross platform absolute path function | |
abspath() { | |
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" | |
} | |
outd=`abspath ``basename $1 .tgz``` | |
target=`abspath $1` |
Total Sponsorship | |
70000 | |
Total Ticket Sales | |
550000 | |
Total Income | |
620000 | |
Total Cost |
# Outbound UDP Flood protection in a user defined chain. | |
iptables -N udp-flood | |
iptables -A OUTPUT -p udp -j udp-flood | |
iptables -A udp-flood -p udp -m limit --limit 50/s -j RETURN | |
iptables -A udp-flood -j LOG --log-level 4 --log-prefix 'UDP-flood attempt: ' | |
iptables -A udp-flood -j DROP |
by Haruki Murakami
Translated by Philip Gabriel
I bought a newspaper at the harbor and came across an article about an old woman who had been eaten by cats. She was seventy years old and lived alone in a small suburb of Athens -- a quiet sort of life, just her and her three cats in a small one-room apartment. One day, she suddenly keeled over face down on the sofa -- a heart attack, most likely. Nobody knew how long it had taken for her to die after she collapsed. The old woman didn't have any relatives or friends who visited her regularly, and it was a week before her body was discovered. The windows and door were closed, and the cats were trapped. There wasn't any food in the apartment. Granted, there was probably something in the fridge, but cats haven't evolved to the point where they can open refrigerators. On the verge of starvation, they were forced to devour their owner's flesh.
I read this articl