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 [...]
Archive for the ‘Uncategorized’ Category
jQuery basics
Posted in Uncategorized, tagged basics, jquery on May 17, 2012 | Leave a Comment »
Rails Commands
Posted in Uncategorized, tagged basics, commands, rails on May 16, 2012 | Leave a Comment »
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
My Favourite Textmate Shortcuts
Posted in Uncategorized, tagged shortcuts, textmate on May 14, 2012 | Leave a Comment »
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 …
Structuremap Basics
Posted in Uncategorized, tagged basics, dependency injection, StructureMap on May 4, 2012 | Leave a Comment »
Define the instance for your interface Call the wiring module within Application_Start() event in Global.asax.cs To be continued
My ReSharper Keyboard Shortcuts
Posted in Uncategorized, tagged Resharper, shortcuts on April 30, 2012 | Leave a Comment »
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
jquery selection basics
Posted in Uncategorized, tagged basics, checkbox, jquery on April 27, 2012 | Leave a Comment »
To be continued…
show ajax loader image while making ajax request with jquery
Posted in Uncategorized, tagged ajax, jquery, loader on April 26, 2012 | Leave a Comment »
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
Windows 7 Bootcamp on mac Shortcut Keys
Posted in Uncategorized, tagged bootcamp, mac, shortcuts on April 25, 2012 | Leave a Comment »
# 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 [...]
running sublime text 2 on ubuntu
Posted in Uncategorized, tagged sublime, sublime text 2, ubuntu on April 23, 2012 | Leave a Comment »
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 [...]
rspec basics
Posted in Uncategorized, tagged basics, rspec, test on April 22, 2012 | Leave a Comment »
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.