Feeds:
Posts
Comments

Archive for the ‘Uncategorized’ Category

jQuery basics

This is the summary of “Fundamentals of Great jQuery Development”, which is available at http://vimeo.com/18511621. javascript is a functional language, not in a useful way, but because it treats function as its first-class citizen. It is also Object-oriented language, as it treats everything as object. function declaration This is what people use most of the [...]

Read Full Post »

Rails Commands

Summary of various ruby commands .erb: embedded ruby, the primary template system for including dynamic content in web pages. Generation Undoing things Running tests Embedded Ruby template Unix commands mv: rename Git commands Commit, merge, and push RVM and bundler integration

Read Full Post »

cmd + T: Go to file ctrl + cmd + R: Reveal in a project shft + cmd + N: new file in the current folder cmd + Enter: go to the next line cmd + W: close tab shft + ctrl + D: duplicate the selection to be continued …

Read Full Post »

Define the instance for your interface Call the wiring module within Application_Start() event in Global.asax.cs To be continued

Read Full Post »

This is ReSharper’s comprehensive shortcuts. Yet there are a few things I favour. Shft + F12: Go to previous error/warning/highlight. Handy, when you create a new type. You don’t have to press left arrow

Read Full Post »

To be continued…

Read Full Post »

You will need an image, first. Go to ajaxload.info and get one you like. Put the html for the loader in the page. Style the div element to position it on the centre of the browser. Now, use javascript to fade it in and out, when an ajax request starts. Reference: http://stackoverflow.com/questions/807408/showing-loading-animation-in-center-of-page-while-making-a-call-to-action-method

Read Full Post »

# Hash It should be a simple thing, but dear!, I coundn’t find it. On Mac, you can use alt + 3. The combination is weird enough, but on windows 7, I couldn’t type it at all, … well until tonight. Simply, it is right alt + 3. ##### hahaha. To summarise all the  key [...]

Read Full Post »

You can download sublime text 2. I created a directory, “Applications” under Home. I extracted the downloaded tar in there. Then I did “Make Link” of sublime_text executable and put it into /home/bin, where $Path includes. I renamed the shortcut (excuse my windows terminology) to “subl”, so I can just type “subl .” to launch [...]

Read Full Post »

rspec basics

When you create a new site, skip generating unit test, as you want to use rspec instead. Add rspec to your gemfile copybara gem allows you to interact with the app with a natual English-like syntaxt. Then run bundle install to install those gems. Configure your rails app to use rspec in place of test::unit.

Read Full Post »

Older Posts »

Follow

Get every new post delivered to your Inbox.

Join 135 other followers