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 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
// | |
// Compile and run: | |
// scalac isnumber.scala | |
// scala IsNumber | |
// | |
// this is the class that provides the isNumber method when called on java.lang.String | |
class ExtendedString(s:String) { | |
def isNumber: Boolean = s.matches("[+-]?\\d+.?\\d+") | |
} |
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
ssh -i key.pem -v -2 -C -D 4567 -N user@server | |
-2: force SSH v2 protocol | |
-C: enable compression | |
-D <port>: use given local port | |
-N: do not run any command in the remote server | |
-v: verbose mode |
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
// | |
// A very simple Node.js static file server and Ajax proxy, based on lightnode (https://github.com/ngspinners/lightnode) | |
// | |
// Requirements: | |
// Node.js | |
// npm for the installation of modules | |
// lightnode (installed via npm) | |
// | |
// How to use, with all dependencies in place: | |
// node nodeserver.js [/path/to/the/root/folder] |
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
// | |
// How to use: | |
// | |
// 1. Start node: | |
// node nodeproxy.js | |
// 2. Send a URL like this: | |
// http://localhost:8080/http://www.google.com | |
// | |
// Watch www.google.com come through your local HTTP proxy. | |
// |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>net.manish</groupId> | |
<artifactId>scala-simple</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<name>${project.artifactId}</name> | |
<description>My wonderfull scala app</description> | |
<inceptionYear>2010</inceptionYear> | |
<licenses> | |
<license> |
NewerOlder