Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am airios on github.
  • I am airios (https://keybase.io/airios) on keybase.
  • I have a public key ASABjRNBkZ0HMPx0wEh_iT6yG0T0Rq5OtV9u4RqlhJUzjwo

To claim this, I am signing this object:

@airios
airios / example.html
Created July 14, 2011 20:39
Simple Cross-browser failure
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Getting Cross Domain JSON Data Using Y.jsonp()</title>
<style type="text/css">
/*margin and padding on body element
can introduce errors in determining
element position and are not recommended;
@airios
airios / fail.html
Created June 24, 2011 00:35
Y.Get does not fail with Webkit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Y.Get Example</title>
<script src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js"></script>
</head>
<body>
<h1>Y.Get Example</h1>
@airios
airios / app.rb
Created June 15, 2011 14:57
Setting up Compass with NestaCMS
# themes/theme-name/app.rb
require 'rubygems' # Can't leave < 1.9.2 hanging...
require 'compass'
require 'sinatra'
require 'haml'
module Nesta
class App
configure do
@airios
airios / learning_resources.txt
Created June 13, 2011 21:05 — forked from nathansmith/web-design-development-learning-resources.md
Resources for learning web design & front-end development
Resources for learning web design & front-end development:
================================================================================
**ONLINE**
Design
> http://52weeksofux.com
> http://thedesigncubicle.com
@airios
airios / app.rb
Created April 14, 2011 21:13
Breadcrumb Label Override Example
module Nesta
class App
helpers do
# Add new helpers here.
def breadcrumb_label(page)
(page.abspath == '/') ? 'Inicio' : page.heading
end
end
# Add new routes here.
@airios
airios / app.rb
Created April 13, 2011 19:10
Multiple Authors w/ Nesta CMS
require 'rubygems'
require 'sinatra'
module Nesta
class App
helpers do
def set_common_variables
@menu_items = Nesta::Menu.for_path('/')
@site_title = Nesta::Config.title
@airios
airios / nesta-app.rb
Created April 13, 2011 18:56
sample nesta app.rb
# Use the app.rb file to load Ruby code, modify or extend the models, or
# do whatever else you fancy when the theme is loaded.
require 'rubygems'
require 'sinatra'
module Nesta
class App