Skip to content

Instantly share code, notes, and snippets.

View devongovett's full-sized avatar

Devon Govett devongovett

View GitHub Profile
@devongovett
devongovett / dabblet.css
Created May 4, 2012 20:42 — forked from LeaVerou/dabblet.css
Text masking — The SVG way
/**
* Text masking — The SVG way
*/
svg {
font: 900 500%/1.2 'Arial Black', sans-serif;
}
text {
fill: url(#wood);
// 1: how could you rewrite the following to make it shorter?
foo ? bar.doSomething(el) : bar.doSomethingElse(el);
// 2: what is the faulty logic in the following code?
//you are creating a local version of foo instead of overwriting
//the global version. Thus, foo will always be equal to world.
//The problem is fixed below.
var foo = 'hello';
Employee = new db.Model(function() {
this.key("name", String, { required: true });
this.key("email", String);
this.hasMany("Office");
})