Skip to content

Instantly share code, notes, and snippets.

/* BUTTONS */
.buttons a, .buttons button{
display:block;
float:left;
margin:0 7px 0 0;
background-color:#f5f5f5;
border:1px solid #dedede;
border-top:1px solid #eee;
border-left:1px solid #eee;
@jmreidy
jmreidy / BreakingObserver.as
Created December 15, 2008 15:17
Flex debug tool that allows you to set a value which will force the app to enter the debugger. For example, when iterating through an array, have Flex always enter the debugger when the value is second object in the array.
package util
{
import flash.debugger.enterDebugger;
public class BreakingObserver extends Observer
{
private var _handler : Function;
private var _source : Object;
//optional value to check for entering the debugger
package com.schedulr.business.events
{
import flash.events.Event;
import mx.rpc.Responder;
import mx.rpc.events.FaultEvent;
public class BaseResponderEvent extends Event
{
public var responder:Responder;
package
{
import flash.events.IEventDispatcher;
import mx.binding.utils.BindingUtils;
import mx.events.FlexEvent;
[DefaultProperty("mappings")]
public class DIMap
{
private function addBindingListeners( event:FlexEvent ):void
require "erb"
template = %q{
package
{
[Bindable]
[RemoteClass(alias="<%= package %>.<%= class_name%>")]
public class <%=class_name%> extends <%=parent_class%>
{
/* -------------------------------------------------------------
CSS3, Please! The Cross-Browser CSS3 Rule Generator
===================================================
From css3please.com
------------------------------------------------------------- */
.box_round {
-moz-border-radius: 12px; /* FF1+ */
-webkit-border-radius: 12px; /* Saf3+, Chrome */
@interface MyClass()
- (void)myPrivateMethod;
@end
@implementation MyClass
- (void)myPublicMethod {
// Implementation goes here
def transform
find('.item').replace_each(@items) do |item|
find('h2').text("#{item.name}").attr('data', item.id.to_s)
find('.tags').html(markup_for_tags item.tags)
find('.deleteBttn').attr('id',item.id.to_s)
end
if @page_count > 1
if @curr_page != @page_count
find("#paginator li.next a").attr('href',"items?page=#{@curr_page+1}")
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@jmreidy
jmreidy / gist:1309827
Created October 24, 2011 18:59 — forked from cronopio/gist:1307973
Testing vows-bdd
/**
* Pruebas para la creacion de un usuario en el sitio
*/
var Feature = require('vows-bdd').Feature,
http = require('http'),
assert = require('assert');
Feature('Creando un usuario', module)