Add for(value <- items)
and for(value, offset <- items)
to Sweet.js
for(x <- [1,2,3,4]) {
var a = x + 10;
print(a);
}
#![feature(globs)] | |
extern crate mio; | |
use mio::*; | |
use mio::net::*; | |
use mio::net::tcp::*; | |
const SERVER: Token = Token(0); | |
struct Server { |
extern crate time; | |
use std::io::timer::sleep; | |
use std::sync::deque::{BufferPool, Empty, Abort, Data}; | |
use std::time::Duration; | |
fn main() { | |
let start = time::precise_time_s(); | |
let pool = BufferPool::new(); |
use std::sync::mpmc_bounded_queue::Queue; | |
use std::io::Timer; | |
use std::time::Duration; | |
fn main() { | |
let queue: Queue<i8> = Queue::with_capacity(10); | |
queue.push(0); | |
let q1 = queue.clone(); |
mkdir -p /tmp/openssl-test | |
cd /tmp/openssl-test | |
date > test_file | |
openssl des3 -e -salt -in test_file -out test_file.des3 -k foo.bar.1 | |
echo test_file.des3: | |
hexdump -C test_file.des3 |
application.js: application.coffee | |
coffee -c application.coffee | |
server: application.js | |
python -m SimpleHTTPServer 5050 | |
.PHONY: server |
8.2.3. HTTP log format | |
---------------------- | |
The HTTP format is the most complete and the best suited for HTTP proxies. It | |
is enabled by when "option httplog" is specified in the frontend. It provides | |
the same level of information as the TCP format with additional features which | |
are specific to the HTTP protocol. Just like the TCP format, the log is usually | |
emitted at the end of the session, unless "option logasap" is specified, which | |
generally only makes sense for download sites. A session which matches the | |
"monitor" rules will never logged. It is also possible not to log sessions for |
import java.net.ServerSocket | |
import java.io.ObjectInputStream | |
import java.io.BufferedInputStream | |
import ch.qos.logback.classic.spi.ILoggingEvent | |
object LoggerServer extends App { | |
val server = new ServerSocket(4004) | |
println("Socket bound") |
FROM ubuntu:latest | |
MAINTAINER GrapheneDB Ops Team [email protected] | |
RUN mkdir -p /var/run/sshd | |
RUN mkdir -p /var/log/supervisor/ | |
RUN useradd -d /var/jenkins -m jenkins | |
RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh | |
RUN echo deb http://archive.ubuntu.com/ubuntu precise universe >> /etc/apt/sources.list.d/universe.list | |
RUN apt-get update | |
RUN apt-get install -q -y openjdk-7-jre-headless supervisor openssh-server |
<div id="node0"> | |
<a href="#" id="node1"> | |
<b id="node2">This is bold</b> | |
This is regular text | |
</a> | |
</div> | |
<script> |