Jim Cheung

Friday, May 03, 2013

a new ide, light table, it looks very nice. supports clojure, nodejs, python for now.

and it's written by Chromium + embedded NodeJS written in ClojureScript, chromium and nodejs could be a very interesting platform for apps.

Saturday, May 11, 2013

reading Learning Perl (6ed), it is a well written book, I wish I've read this when I first met Perl 10 years ago. It really make things clear and suddenly many things make sense now. the reason for reading Perl books again, is I'm preparing myself for Higher-Order Perl. maybe Intermediate Perl and Effective Perl Programming before that.

in search of a good Perl editor, I finally tried sublime2. the build snippet for Perl script:

{ "cmd": ["perl", "-w", "$file"], "file_regex": ".* at (.) line ([0-9])", "selector": "source.perl" }

set via Tools -> Build System -> Perl, run with Ctrl+B


I couldn't finish my Functional Programming Principles in Scala course, after 3 weeks. Too many personal stuffs and the assignments are really not easy. I hope I could finish it later, it's a good course.

Saturday, May 25, 2013

sublime settings

{
    "color_scheme": "Packages/Theme - Phoenix/Color Scheme/Tomorrow-Night.tmTheme",
    "font_face": "Inconsolata",
    "font_size": 11.0,
    "phoenix_color_expanded_folder": true,
    "phoenix_color_orange": true,
    "phoenix_dirty_bottom_bar": true,
    "phoenix_dirty_bottom_bar_red": true,
    "phoenix_eighties": true,
    "phoenix_highlight_current_tab": true,
    "phoenix_sidebar_tree_large": false,
    "phoenix_solid_current_tab": true,
    "phoenix_tabs_auto_width": true,
    "phoenix_tabs_small": true,
    "theme": "Phoenix Dark.sublime-theme",
    "tab_size": 2,
    "translate_tabs_to_spaces": true
}

Wednesday, May 29, 2013

still sublime

build and run java

update JavaC.sublime-build as:

{
  "cmd": ["javac", "$file"],
  "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
  "selector": "source.java",
  "variants": [
    { "cmd": ["javac", "-Xlint", "$file"],
        "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
        "selector": "source.java",
        "name": "Java Lintter"
    },
    { "cmd": ["java", "$file_base_name"],
      "name": "Run Java"
    }
  ]
} 

use Ctrl+Shift+P to run variants commands.

key bindings

[
  { "keys": ["ctrl+alt+f"], "command": "reindent", "args": {"single_line": false} },
  { "keys": ["shift+space"], "command": "move", "args": {"by": "subword_ends", "forward": true} }
]
Blog Archive