Here's a list of resources for you if you're looking for some help or inspiration. There's plenty of other options too, so use whatever works best for you and your idea.
This file contains 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
@submissions = Submission.all.sort_by { |s| s.favorites.count } | |
File.open("favorites_list.txt", "w") do |file| | |
@submissions.each do |submission| | |
file << submission.name + " - Favorites: " + submission.favorites.count.to_s + "\n" | |
end | |
end |
This file contains 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
File.open( "/tmp/my_movie.mov", "w") do |movie| | |
movie << HTTParty.get( "http://example.com/movie.mov" ) | |
end |
This file contains 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
%iframe#gameframe{:frameborder => "no", :height => "540", :onload => "this.contentWindow.focus();", :scrolling => "no", :src => "http://azurenimbus.com/aetherarcade/index.html", :style => "padding:0;margin:0;border:1px;", :width => "640"} |
This file contains 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
@users = User.all | |
File.open("user_list.txt", "w") do |file| | |
@users.each do |user| | |
file << user.id | |
file << " " | |
file << user.name | |
file << "\n" | |
end | |
end |
This file contains 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
MXMLC = ~/../../Library/flex_sdk_4.6.0.23201B/bin/mxmlc | |
SRC = src/ | |
MAIN = src/Main.as | |
SWF = bin/file_name.swf | |
$(SWF) : $(SRC) | |
$(MXMLC) -o $(SWF) -static-link-runtime-shared-libraries -- $(MAIN) | |
run : $(SWF) | |
open $(SWF) |
This file contains 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
$(window).scroll(function () { visibleImg(); }); |
This file contains 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
class RandomGame | |
def play | |
in_game = true | |
while in_game | |
puts "Guess a number between 1 and 100 (inclusive)." | |
random_number = generate_random | |
print "> " | |
guess = gets.chomp.to_i |
This file contains 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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
"font_face": "Monaco", | |
"font_size": 16, | |
"draw_white_space": "selection", | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true, | |
"hot_exit": false, | |
"remember_open_files": false, |
- Bootstrap - http://twitter.github.com/bootstrap/index.html
- Foundation - http://foundation.zurb.com/
- Skeleton - http://www.getskeleton.com/
- Flat UI - http://designmodo.github.com/Flat-UI/
OlderNewer