This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script/generate scaffold RedRose vs script/generate scaffold red_rose | |
<%= controller_name %> # RedRoses red_roses !! | |
<%= controller_class_path %> # | |
<%= controller_file_path %> # red_roses red_roses | |
<%= controller_class_nesting %> # | |
<%= controller_class_nesting_depth %> # 0 0 | |
<%= controller_class_name %> # RedRoses RedRoses | |
<%= controller_underscore_name %> # red_roses red_roses | |
<%= controller_singular_name %> # RedRose red_rose !! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Is this a JavaScript bug? | |
// Running the code below alert's "three". | |
var calls = ["one", "two", "three"] | |
for(var i in calls) { | |
var name = calls[i]; | |
this[name] = function(){ | |
alert(name); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM ***** BASIC ***** | |
' | |
' Get-a-Clue : OTR Global Grid parser | |
' (c) 2008 Paul Philippov, themactep.com | |
' version 2008-10-20 13:59 | |
' | |
Option Explicit | |
Sub ExportQuotesToNewDocument | |
Dim OpenProperties(1) as New com.sun.star.beans.PropertyValue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Emerge Kernel sources | |
$ sudo -s | |
# emerge -uva sys-kernel/gentoo-sources | |
# cd /usr/src/linux | |
Copy recent kernel config to start with it | |
# zcat /proc/config.gz > .config | |
# make menuconfig |
NewerOlder