Here's what I do after I do a fresh install of Lion. Things are sorta grouped by type.
- Run Software Update
- Start downloading Xcode
- Disable auto-bright and turn brightness all the way up
- Enable mouse right click
Here's what I do after I do a fresh install of Lion. Things are sorta grouped by type.
color vividchalk | |
" Ignore bad Rails stuff | |
set wildignore+=test/fixtures/**,vendor/gems/** | |
set wildignore+=enterprise,repositories | |
set wildignore+=public/images,public/javascripts/MathJax,tmp | |
" Show whitespace | |
set list listchars=trail:.,tab:>. |
<ul> | |
<% @sections.each do |section| %> | |
<li> | |
<a href="<%= section_articles_path section %>"> | |
<%= section.name %> | |
</a> | |
</li> | |
<% end %> | |
</ul> |
void reverse(char txt[]) { | |
int i, j; | |
char tmp; | |
for (i = 0, j = strlen(txt) - 1; i < j; ++i, --j) { | |
tmp = txt[i]; | |
txt[i] = txt[j]; | |
txt[j] = tmp; | |
} | |
} |
Write a program that prints the numbers from 1 to 100. But for multiples of | |
three print “Fizz” instead of the number and for the multiples of five print | |
“Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”. | |
So, for example, if you were to print from 1 to 20, it would look like this: | |
1 | |
2 | |
Fizz | |
4 |
function reverseString(oldString) { | |
var newString = ""; | |
for (var i = oldString.length - 1; i >= 0; i--) { | |
// This line does exactly the same thing as: newString = newString + oldString[i]; | |
newString += oldString[i]; | |
} | |
return newString; | |
} |
r = Repository.nwo('defunkt/dotjs') | |
u = User.find_by_login('defunkt') | |
30.times do | |
i = r.issues.build | |
i.user = u | |
i.title = 'Placeholder issue' | |
i.body = 'This is the body for the placeholder issue' | |
i.save | |
end |
int factorial(int number) { | |
if (number == 1) { | |
return 1; | |
} else { | |
return number * factorial(number - 1); | |
} | |
} |
def read_full_blob(oid) | |
object = send_message(:read_full_blob, oid) | |
object['data'].force_encoding(object['encoding']) if encoding_support? | |
object | |
end |
send_message(:read_objects, miss_oids, type).each do |object| | |
key = object_key(object['oid']) | |
objects[key] = object | |
@cache.set(key, object) | |
end |