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
package com.clutch.robotlegs | |
{ | |
import mx.binding.utils.BindingUtils; | |
import mx.binding.utils.ChangeWatcher; | |
public class BindingMap implements IBindingMap | |
{ | |
private var _bindings:Vector.<ChangeWatcher> = new Vector.<ChangeWatcher>(); | |
public function BindingMap() |
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
package io.base2 | |
{ | |
import flash.display.MovieClip; | |
import flash.display.DisplayObject; | |
import flash.events.Event; | |
public class Main extends MovieClip | |
{ | |
public function Main() | |
{ |
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
#!/usr/bin/env ruby | |
#^syntax detection | |
site 'http://community.opscode.com/api/v1' | |
cookbook 'apt' | |
cookbook 'git', | |
git: 'https://github.com/fnichol/chef-git.git' | |
cookbook 'build-essential' | |
cookbook 'rvm', |
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 Genre < ActiveRecord::Base | |
attr_accessible :name | |
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
/* | |
* add this to your own css file, | |
* to overwrite the _chosen_ styling, to look more like bootstrap! | |
* | |
* note: for the error part to work, an .error class-name must be added | |
* to a wrapping DIV, to display the bootstrap error styling. I have | |
* just use the wrapping .control-group DIV | |
* | |
* credit: Rasmus Burkal, @rabu81 | |
* Drew Miller, @mewdriller |
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
<form> | |
<div class="properties"> | |
<!-- Owner --> | |
<label>Owner</label> | |
<select class="input-block-level" data-provide="chosen"> | |
<option value="s240946" selected="selected">Andrew Miller</option> | |
<option value="s244005">Anthony Borres</option> | |
</select> | |
<!-- Managers --> |
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
<form> | |
<div class="properties"> | |
<!-- Owner --> | |
<label>Owner</label> | |
<select class="input-block-level" data-provide="chosen"> | |
<option value="s240946" selected="selected">Andrew Miller</option> | |
<option value="s244005">Anthony Borres</option> | |
</select> | |
<!-- Managers --> |
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
<form> | |
<div class="properties"> | |
<!-- Owner --> | |
<label>Owner</label> | |
<select class="input-block-level" data-provide="chosen"> | |
<option value="s240946" selected="selected">Andrew Miller</option> | |
<option value="s244005">Anthony Borres</option> | |
</select> | |
<!-- Managers --> |
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
<form id="edit-task-3"> | |
<div class="properties"> | |
<!-- Owner --> | |
<label>Owner</label> | |
<select class="input-block-level" data-provide="chosen"> | |
<option value="s240946" selected="selected">Andrew Miller</option> | |
<option value="s244005">Anthony Borres</option> | |
</select> | |
<!-- Managers --> |
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 Ability | |
include CanCan::Ability | |
def initialize(user) | |
can :read, Comment | |
if user.valid? | |
can :create, Comment | |
can :manage, Comment, author_id: user.id | |
end |
OlderNewer