start new:
tmux
start new with session name:
tmux new -s myname
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
public class JavaInitialising { | |
public static void main(String[] args) { | |
String[] anArray = {"One", "Two", "Three"}; | |
List<String> aList = Arrays.asList( | |
new String[]{"One", "Two", "Three"} | |
); |
//Per ottenere gli ultimi mongos connessi al cluster | |
//Collegarsi ad un mongos | |
use config | |
//Stampa i mongos che hanno risposto al ping negli ultimi 5 minuti | |
db.mongos.find({ "ping" : { $gt : new Date((new Date) - 5 * 60 * 1000) }}).forEach(printjson) |
//http://daily-scala.blogspot.com/2010/01/regular-expression-3-regex-matching.html | |
val date = "11/01/2010" | |
val Date = """(\d\d)/(\d\d)/(\d\d\d\d)""".r | |
val Date(day, month, year) = date | |
println(day) | |
println(month) |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<!-- | |
*************************************************** | |
* * | |
* DZ-Slides: HTML Template for your presentations * | |
* * |
//byte c = byte(unbinary("00000000")); | |
byte c = byte(3); | |
println(binary(c)); | |
int pointer = 1; | |
//Spegne | |
//c &= ~(1 << pointer); | |
//Accende | |
//c |= (1 << pointer); |
object HelloWorld { | |
def main(args: Array[String]) { | |
println("Hello, world!") | |
} | |
} |