References:
- Create a new Droplet on DigitalOcean
- Name the Droplet after your Domain (yourdomain.com)
| matchdata = "121,32 Std.".match(/([\d]+[\,|\.]?\d{0,2})+\s?(\w.*)?/) | |
| matchdata[1] # => "121,32" | |
| matchdata[2] # => "Std." | |
| matchdata[0] # => "121,32 Std." |
| Ctrl+A |
| ## http://stackoverflow.com/questions/7145256 | |
| module FactoryGirl | |
| module Strategy | |
| class Find | |
| def association(runner) | |
| runner.run | |
| end | |
| def result(evaluation) | |
| build_class(evaluation).where(get_overrides(evaluation)).first |
| module FactoryGirlHelper | |
| def find_or_create(*args) | |
| name = args.shift | |
| clazz = nil | |
| # convert from underscores String to camelcase Class | |
| if name.is_a? Hash | |
| name = name.first[0] | |
| clazz = name.first[1].to_s.camelize.constantize |
| Backbone.React = {} unless Backbone.React | |
| Backbone.React.Base = {} unless Backbone.React.Base | |
| ### | |
| Backbone React Base Mixin | |
| ========================= | |
| Usage example: | |
| -------------- |
References:
The Modern.ie Virtual Machine Images – VMs used for testing several versions of IE – are now also available as vagrant boxes. Here’s the list:
| var hello = "Hello Hias!"; | |
| console.log(hello); |
| import React, {PropTypes} from 'react'; | |
| import {connect} from 'react-redux'; | |
| import {bindActionCreators} from 'redux'; | |
| import TodoActions as actions from '../actions'; | |
| import TodoList from '../components/TodoList'; | |
| // This is for POJO | |
| import { query } from '../utils/helpersPojo' | |
| // Uncomment this is for Immutable.js |