
1 | function test() { |
Then source
it and set your title.
1 | $ source ~/.bashrc |
1 | function test() { |
Then source
it and set your title.
1 | $ source ~/.bashrc |
This is not an instructional post on how to use Google Analytics, but a quick teardown to highlight some clever things the script does to optimize page load speed and work around network latency issues.
How does the Google Analytics tracking snippet work? The code they tell you to paste into your site is an opaque mess:
1 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
Lets clean up the function contents a little bit.
One of my favorite things about StackOverflow is that I never see Google results for Experts Exchange.
Here’s hoping Quora learns something.
Oh the joys of writing CRUD methods. Found this gem in one of the applications I helped maintain. Its been replaced with the much more terse null-coalescing operator by now.
??
anyone?
Its crud like this that makes an ORM look so appealing.
Tell me how you really feel
1 | $ git merge --squash awesome-feature |
The most efficient unit test is a production deployment.
My local dev environment matches the file structure of our dev server. Its convenient to be able to ssh to the same directory on the development server.
I added this to my ~/.profile
.
1 | function dev01 { |
Then all I have to do is type dev01
on my local terminal and it opens a shell on the server in the same directory. If the directory is not found, it just drops you back into ~/
My Windows 8 Preview install is apparently due to expire on January 15.
It wont let you keep your programs when moving from Windows 8 Preview. but it would if I were moving straight from Windows 7.
Is it just me or is that completely backwards?