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
/** | |
* Text masking — The SVG way | |
*/ | |
svg { | |
font: 900 500%/1.2 'Arial Black', sans-serif; | |
} | |
text { | |
fill: url(#wood); |
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
// 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'; |
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
Employee = new db.Model(function() { | |
this.key("name", String, { required: true }); | |
this.key("email", String); | |
this.hasMany("Office"); | |
}) |