- We are writing a digital textbook-reading app.
- Most of the time you have a "basic" license for your textbook, but one (and only one) of your computers can request an "enhanced" license.
- You can only print from the computer with the enhanced license.
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
| <section data-background-transition='zoom' data-transition='concave' data-background='http://ryanjarvinen.com/presentations/shared/img/broadcast_reveal_dark.png' data-state='blackout'> | |
| <h2>Gist-Powered</h2> | |
| <h1>Reveal.js</h1> | |
| <h2>Slideshow Presentations</h2> | |
| <br/> | |
| <h1 class='fragment grow'><a style='color:deepskyblue;' href='http://gist-reveal.it'>gist-reveal.it</a></h1> | |
| </section> | |
| <section data-background-transition='zoom' data-transition='linear' id='try-it'> | |
| <h2>Try it out!</h2> | |
| <p>Create your own deck by forking a copy of <a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>this github gist</a>: <br /><a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>https://gist.github.com/ryanj/af84d40e58c5c2a908dd</a></p> |
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
| /** | |
| * @author Jordan Luyke <[email protected]> | |
| */ | |
| export interface Multimap<K, V> { | |
| clear(): void | |
| containsKey(key: K): boolean | |
| containsValue(value: V): boolean | |
| containsEntry(key: K, value: V): boolean | |
| delete(key: K, value?: V): boolean |
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
| { | |
| "header" : { | |
| "applicationName" : "MAPP", | |
| "organization" : "hum", | |
| "sourceName" : "iOS", | |
| "timestamp" : "2017-07-19T16:16:18.925+05:30", | |
| "region" : "US", | |
| "transactionId" : "1500461178_1891774689" | |
| }, | |
| "response" : { |
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
| /** | |
| * Implementation for {@link ItemSqlParameterSourceProvider}, | |
| * creates {@link MapSqlParameterSource} from {@link FieldSet}. | |
| * | |
| * @author Michael R. Lange <[email protected]> | |
| */ | |
| public class FieldSetSqlParameterSourceProvider implements ItemSqlParameterSourceProvider<FieldSet> { | |
| /** {@inheritDoc} */ | |
| @Override |
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
| /** | |
| * Copyright 2012 Michael R. Lange <[email protected]>. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| /** | |
| * Copyright 2012 Michael R. Lange <[email protected]>. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| //To run Q.js examples: | |
| // 1. Open a new browser tab in Chrome and turn on developer toolbar. | |
| // 2. Copy/Paste this gist in the console and hit enter to run all the snippets. | |
| // Based on the inspiration from samples @ https://github.com/kriskowal/q | |
| //////////////////////////////////////////////////////////////////// | |
| //////////////////////////////////////////////////////////////////// |
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 xhr(options) { | |
| var deferred = Q.defer(), | |
| req = new XMLHttpRequest(); | |
| req.open(options.method || 'GET', options.url, true); | |
| // Set request headers if provided. | |
| Object.keys(options.headers || {}).forEach(function (key) { | |
| req.setRequestHeader(key, options.headers[key]); | |
| }); |
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 Q = require("q"); | |
| var HTTP = require("q-http"); | |
| function httpReadRetry(url, timeout, times) { | |
| return HTTP.read(url) | |
| .then(function (content) { | |
| return content; | |
| }, function (error) { | |
| if (times == 0) | |
| throw new Error("Can't read " + JSON.stringify(url)); |
NewerOlder