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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Getting Started Sample</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript" src="http://onscreen.vibesapps.com/javascripts/text2screen/1.0/text2screen.js"></script> | |
<script> | |
$(function(){ |
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
... | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript" src="http://onscreen.vibesapps.com/javascripts/text2screen/1.0/text2screen.js"></script> | |
... |
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
... | |
Text2Screen.configure({ | |
messageHandler: function(message){ | |
var list = $('ul'); | |
list.append("<li>" + message.message + "</li>"); | |
Text2Screen.readyForMore(); | |
} | |
}); | |
... |
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
Text2Screen.configure({ | |
messageHandler: function(message){ | |
//Do something with the message. | |
Text2Screen.readyForMore(); | |
}, | |
states: ['intro', 'call_to_action', 'display'], | |
transitions: { | |
enterIntro: function(){ | |
// run some animations | |
}, |
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
var messageLoop = new MessageLoop(3); | |
messageLoop.push('a'); | |
messageLoop.push('b'); | |
messageLoop.push('c'); | |
console.log(messageLoop.pull()); | |
// -> "c" | |
console.log(messageLoop.pull()); | |
// -> "b" | |
console.log(messageLoop.pull()); |
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
... | |
<script type="text/javascript" src="http://onscreen.vibesapps.com/javascripts/text2screen/1.0/text2screen.js"></script> | |
... |
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
... | |
<script type="text/javascript" src="http://onscreen.vibesapps.com/javascripts/messageloop.js"></script> | |
... |
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
def rebase(num, numerals="Zv0w2x4y6z8AaBcCeDgEiFkGmHoIqJsKuL3M7NbOfPjQnRrS1T9UhVpW5XlYdt"): | |
base = len(numerals) | |
left_digits = num // base | |
if left_digits == 0: | |
return numerals[num % base] | |
else: | |
return rebase(left_digits, numerals) + numerals[num % base] | |
>>> rebase(451) |
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
<script type="text/javascript" src="https://towtruck.mozillalabs.com/application.js"></script> | |
... | |
<button onclick="TowTruck();"></button> |
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
<script type="text/javascript" src="https://towtruck.mozillalabs.com/application.js"></script> | |
... | |
<button onclick="TowTruck();"></button> |
OlderNewer