screen -S NAME
Start a new screen
CTRL+A d
Detach (while inside screen)
screen -d SCREENID
Detach screen in another terminal
screen -dr
Connect to screen and detach others (to remember: "screen doctor!")
exit
Terminate screen
import os | |
import csv | |
import sys | |
csv.field_size_limit(sys.maxsize) | |
for fn in os.listdir('.'): | |
print( os.path.splitext(fn) ) | |
print( os.path.splitext(fn)[1] == ".tsv" ) | |
if os.path.isfile(fn): |
screen -S NAME
Start a new screen
CTRL+A d
Detach (while inside screen)
screen -d SCREENID
Detach screen in another terminal
screen -dr
Connect to screen and detach others (to remember: "screen doctor!")
exit
Terminate screen
React.createClass({ | |
propTypes: {}, | |
mixins : [], | |
getInitialState: function() {}, | |
getDefaultProps: function() {}, | |
componentWillMount : function() {}, | |
componentWillReceiveProps: function() {}, |
var style = { | |
backgroundColor: 'red', | |
} | |
var Hello = React.createClass({ | |
render: function() { | |
//return <div>Hello {this.props.name}</div>; | |
return ( | |
<table> | |
<tr> |
SBT | |
============== | |
* Default body: | |
name := "projecta" | |
version := "0.1.0-SNAPSHOT" | |
organization := "com.github.myname" | |
scalaVersion := "2.10.3" |
#!/bin/bash | |
JAVA=java | |
LIBDIR=lib | |
CP=bin | |
for file in `ls $LIBDIR`; do | |
CP=$CP:$LIBDIR/$file | |
done |
== Scala notes | |
== main function: | |
def main(args: Array[String]) { | |
println("Hello, world!") | |
} | |
== looping |
* Output as jar: | |
<packaging>jar</packaging> | |
* Comment: | |
<!-- Output to jar format --> | |
* (Create stanfalone package with dependencies )[http://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven] | |
* Show tree of dependencies | |
mvn dependency:tree |
// Random notes on F# | |
// Daniel Khashabi, June 2014 | |
// References : | |
// http://learnxinyminutes.com/docs/fsharp/ | |
// http://www.fincher.org/tips/Languages/fsharp.shtml | |
// http://fsharpforfunandprofit.com/ | |
// http://en.wikibooks.org/wiki/F_Sharp_Programming | |
open System |