Resources for learning web design & front-end development:
ONLINE
Design
| # Deploying a Sinatra app to Heroku | |
| ## Database | |
| The location of the database Heroku provides can be found in the environment | |
| variable DATABASE_URL. Check the configure-block of toodeloo.rb for an example | |
| on how to use this. | |
| ## Server | |
| Heroku is serving your apps with thin, with means you have all your thin goodness available, | |
| such as EventMachine. |
| " Vim syntax file | |
| " Language: HTML (version 5) | |
| " Maintainer: Rodrigo Machado <[email protected]> | |
| " URL: http://rm.blog.br/vim/syntax/html.vim | |
| " Last Change: 2009 Aug 19 | |
| " License: Public domain | |
| " (but let me know if you liked it :) ) | |
| " | |
| " Note: This file just adds the new tags from HTML 5 | |
| " and don't replace default html.vim syntax file |
| # _plugins/haml_converter.rb | |
| module Jekyll | |
| class HamlConverter < Converter | |
| safe true | |
| def setup | |
| return if @setup | |
| require 'haml' | |
| @setup = true |
Resources for learning web design & front-end development:
ONLINE
Design
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Box Shadow</title> | |
| <style> | |
| .box { | |
| height: 150px; | |
| width: 300px; | |
| margin: 20px; |
| # -*- encoding: utf-8 -*- | |
| require 'sinatra' | |
| require 'slim' | |
| require 'warden' | |
| require 'dm-core' | |
| require 'dm-migrations' | |
| require 'dm-timestamps' | |
| require 'dm-validations' |
| #Sass Snippets | |
| snippet @i | |
| @import "${1}"; | |
| snippet ext | |
| @extend ${1}; | |
| snippet inc | |
| @include ${1}(${2});${3} | |
| snippet @m | |
| @media ${1} { | |
| ${2} |
| module Jekyll | |
| class Layout | |
| alias old_initialize initialize | |
| def initialize(*args) | |
| old_initialize(*args) | |
| self.transform | |
| end |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>Railscasts 2</string> | |
| <key>settings</key> | |
| <array> | |
| <dict> | |
| <key>settings</key> |
| # Using the web automation driver (watir-webdriver) through the tor network | |
| # Automates webpage actions & bypasses the voting limit on polldaddy | |
| # Casts a vote every 3 seconds for a total of 1000 votes | |
| require 'watir-webdriver' | |
| profile = Selenium::WebDriver::Firefox::Profile.new | |
| profile.proxy = Selenium::WebDriver::Proxy.new :http => '127.0.0.1:8118' | |
| b = Watir::Browser.new :firefox, :profile => profile | |
| #b = Watir::Browser.new :firefox | |
| b.goto 'speakimge.wordpress.com/2012/01/25/under-the-covers/' |