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 'uri' | |
# same result as Javascript encodeURIComponent(...) | |
puts URI.escape(ARGV[0], Regexp.new("[^#{URI::PATTERN::UNRESERVED}]")) |
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
ace.define('ace/mode/pdftemplate', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/pdftemplate_highlight_rules'], function(require, exports, module) { | |
var oop = require("../lib/oop"); | |
var TextMode = require("./text").Mode; | |
var Tokenizer = require("../tokenizer").Tokenizer; | |
var PdfTemplateHighlightRules = require("./pdftemplate_highlight_rules").PdfTemplateHighlightRules; | |
var Mode = function() { | |
this.$tokenizer = new Tokenizer(new PdfTemplateHighlightRules().getRules()); | |
}; |
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
<template> | |
<require from="./child"></require> | |
<button click.delegate="newItems()">new items</button> | |
<child repeat.for="item of items" id.bind="item.id" value.bind="item.value"></child> | |
</template> |
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
<template> | |
<require from="./person"></require> | |
<button click.delegate="addPerson()">Add Customer</button> | |
<person repeat.for="person of people" person.bind="person"></person> | |
</template> |
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
<template> | |
<require from="./person"></require> | |
${mirrorPeople.length} | |
<button click.delegate="addPerson()">Add Customer</button> | |
<person | |
repeat.for="person of mirrorPeople" | |
id.bind="person.id" | |
firstname.bind="person.firstname" | |
lastname.bind="person.lastname" | |
delete.call="deletePerson(person.id)"></person> |
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
<template> | |
<input type="date" value.bind="value | momentDate"> | |
<p>Value: ${value}</p> | |
</template> |
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
<template> | |
<button click.delegate="toggleLine()">toggleLine</button><br/> | |
<p | |
if.bind="line" | |
class.bind="line.sx"></p>> | |
</template> |
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
<template> | |
<require from="./line"></require> | |
<button click.delegate="reverseItems()">reverse array</button> | |
<ul> | |
<li as-element="line" repeat.for="item of items" model.bind="item" label.bind="labels[item.s]"></li> | |
</ul> | |
</template> |
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
<template> | |
<require from="./line"></require> | |
<line value.bind="1"></line> | |
</template> |
OlderNewer