Merged into entware-ng project
https://github.com/Entware-ng/Entware-ng
Deprecated
These instructions are for ARM devices only. For mipsel devices, then see the official entware readme instead at: https://github.com/Entware/entware
(ns fizz-buzz | |
"《计算的本质》第 6 章使用 clojure 基于 lambda 演算实现 FizzBuzz 程序。") | |
(def zero (fn [p] (fn [x] x))) | |
(def one (fn [p] (fn [x] (p x)))) | |
(def two (fn [p] (fn [x] (p (p x))))) | |
(def three (fn [p] (fn [x] (p (p (p x)))))) | |
(def four (fn [p] (fn [x] (p (p (p (p x))))))) | |
(def five (fn [p] (fn [x] (p (p (p (p (p x)))))))) |
Merged into entware-ng project
https://github.com/Entware-ng/Entware-ng
Deprecated
These instructions are for ARM devices only. For mipsel devices, then see the official entware readme instead at: https://github.com/Entware/entware
Just run:
sh ./ubuntu14.04-emacs-24.4-install.sh
This will install ncurses which is dependency of emacs24.4. It may requires another dependencies depending on your environment. Note that configure options in emacs installation are for disabling GUI features.
/* curl_multi_test.c | |
Clemens Gruber, 2013 | |
<[email protected]> | |
Code description: | |
Requests 4 Web pages via the CURL multi interface | |
and checks if the HTTP status code is 200. | |
Update: Fixed! The check for !numfds was the problem. |
by default,openwrt do not allow ssh access from wan, here are two method to change that: | |
1.login into your wrt from a lan host.issue the following command: | |
iptables -F | |
the command "flush away" all the firewall rules,including the one that rejects ssh request from wan. | |
now you can try ssh from anywhere. | |
aware that the firewall deactivation leads to highly security risk.and after the wrt restarts ,all default firewall configuration comes back.you hava to "flush" the rules once again. |
input { | |
redis { | |
host => "127.0.0.1" | |
type => "redis-input" | |
# these settings should match the output of the agent | |
data_type => "list" | |
key => "logstash" | |
# We use json_event here since the sender is a logstash agent | |
message_format => "json_event" | |
} |
#include <vector> | |
#include <assert.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
typedef int32_t Score; | |
typedef int32_t UserId; | |
typedef int32_t Rank; | |
const Score kInvalidScore = -1; |