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 DecoratorBase | |
def initialize(component, args = {}) | |
@component = component | |
@args = args | |
post_initialize | |
end | |
def post_initialize | |
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
extern crate rustc_serialize; | |
extern crate regex; | |
use rustc_serialize::base64::{ToBase64, MIME}; | |
use rustc_serialize::hex::{ToHex}; | |
use std::path::Path; | |
use std::env; | |
use std::fs::File; | |
use std::io::Read; | |
use regex::Regex; |
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
require 'nokogiri' | |
tree = { | |
node_type: 'form', | |
children: [ | |
{ | |
node_type: 'div', | |
attrs: { | |
class: 'awesome' | |
}, |
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
/** | |
* ErrorMessages - generate error messages for vuejs modules using vuelidate | |
* | |
* Generate error message computeds to show inline error messages to work with | |
* vuelidate validations, and also with externally generated error messages | |
* (normally serverside errors). | |
* | |
* Expects to find externally generated errors in `this.errors`... an object | |
* structured like so: | |
* |