Skip to content

Instantly share code, notes, and snippets.

View pkondzior's full-sized avatar

Paweł Kondzior pkondzior

View GitHub Profile
require 'formula'
class FlexSdk < Formula
homepage ''
url ''
version ''
sha1 'a71bca0715b9a830fe4e74c16fb4c2d9ef9910ca'
def install
libexec.install Dir['*']
class Item
extend ActiveModel::Naming
extend ActiveModel::Callbacks
include ActiveModel::AttributeMethods
include ActiveModel::Serialization
include ActiveModel::Conversion
include ActiveModel::Validations
define_attribute_methods [:title, :path, :file, :upload_only]
define_model_callbacks :save, :only => :before
FBL.ns(function() {
with (FBL) {
Firebug.FireRailsMSG = domplate(Firebug.Rep,
className: "text",
tag: DIV({style: "white-space:pre"}, "$msg")
def reject_bad_attributes
attributes_to_be_rejected = [:a, :b, :c]
self.attributes = self.attributes.reject { |key, value| attributes_to_be_rejcted.include?(key) }
pkondzior / Partial
Created November 29, 2010 12:50
pkondzior / default_smart.plist
Created November 29, 2010 12:47
My default_smart.plist configuration that sets Finder spotlight to search files by name.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>((_kMDItemGroupId > 6))</string>