This file contains hidden or 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
| var Employee = arc.Class.create(Person, { | |
| _division:null, | |
| initialize:function(name, division) { | |
| this._division = division; | |
| }, | |
| getDivision:function() { | |
| return this._division; | |
| } |
This file contains hidden or 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
| var Friend = arc.Class.create(Person, { | |
| _nickname:null, | |
| initialize:function(name) { | |
| this.setName(name); | |
| }, | |
| setName: function($super, name, nickname){ | |
| $super(name); | |
| this._nickname = nickname; |
This file contains hidden or 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
| function load_ttf(button) { | |
| button.disabled = "disabled"; | |
| // let's load a font! | |
| var font = new Font(); | |
| // set up the onload handler | |
| font.onload = function() { | |
| // create a paragraph of text, styled with this font, showing all metrics | |
| var p = document.getElementById("fontinfo_ttf"); |
This file contains hidden or 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
| function load_otf(button) { | |
| button.disabled = "disabled"; | |
| // let's load a font! | |
| var font = new Font(); | |
| // set up the onload handler | |
| font.onload = function() { | |
| // create a paragraph of text, styled with this font, showing all metrics | |
| var p = document.getElementById("fontinfo_otf"); |
This file contains hidden or 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
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| background: #f66; | |
| background: linear-gradient(45deg, #f06, yellow); | |
| min-height:100%; | |
This file contains hidden or 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
| (function(){ | |
| var count = 0; | |
| setInterval(function(){ | |
| if (++count > 99) count = 0; | |
| Tinycon.setBubble(count); | |
| }, 1000); | |
| })(); |
This file contains hidden or 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
| book: | |
| title: "'Open source for Business'" | |
| author: "Change this: Author Name" | |
| edition: "First edition" | |
| language: en | |
| publication_date: ~ | |
| generator: { name: easybook, version: 4.0 } | |
| contents: |
This file contains hidden or 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
| var difflet = require('../'); | |
| var s = difflet.compare({ a : 2, c : 5 }, { a : 3, b : 4 }); | |
| process.stdout.write(s); |
This file contains hidden or 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
| var diff = require('../')({ indent : 2 }); | |
| var prev = { | |
| yy : 6, | |
| zz : 5, | |
| a : [1,2,3], | |
| fn : 'beep', | |
| c : { x : 7, z : 3 } | |
| }; |
This file contains hidden or 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
| var difflet = require('../'); | |
| var ent = require('ent'); | |
| var tags = { | |
| inserted : '<span class="g">', | |
| updated : '<span class="b">', | |
| deleted : '<span class="r">', | |
| }; | |
| var diff = difflet({ | |
| start : function (t, s) { |