startListening = () ->
db = new PouchDB('http://localhost:4984/divisionx/')
todos = document.querySelector('#todos')
sync = ->
opts = live: true
db.replicate.to true, opts, syncError
db.replicate.from true, opts, syncError
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
HTTPPort 8090 # Port to bind the server to | |
HTTPBindAddress 0.0.0.0 | |
MaxHTTPConnections 2000 | |
MaxClients 1000 | |
MaxBandwidth 10000 # Maximum bandwidth per client | |
# set this high enough to exceed stream bitrate | |
CustomLog - | |
<Feed feed1.ffm> # This is the input feed where FFmpeg will send | |
File ./feed1.ffm # video stream. |
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
function charCodeToUnicodeHex(code) { | |
var codeHex = code.toString(16).toUpperCase(); | |
while (codeHex.length < 4) { | |
codeHex = "0" + codeHex; | |
} | |
return "0x" + codeHex; | |
} |
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
missing_object = Module.new{def self.present?; false; end; def self.method_missing(*args); nil; end} |
A document describing different datasets their key/values that need to exist to support content personalization for SSO users. Any references to JSON, ints, booleans, etc., imply serialization to a string value. The values LastModifiedDate and DeviceLastModifiedDate are implicit for every key/value pair.
Stores a user's preferences for favorite entities (programs, topics, etc.)
| | | |
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
## hello |
For our upcoming SSO features, we need a way for a user to retrieve new episodes for their Favorite shows through the KPCC app. To sum up our requirements:
- Users should be able to retrieve up to n most recent episodes from their favorite shows per download.
- Episodes downloaded to a user's queue should sync up across devices
- Finished or deleted episodes in the queue should not be re-downloaded.
Through proofing out some approaches, I came to the conclusion that the simplest approach is the right one for what we want to achieve.
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
<?xml version='1.0' encoding='UTF-8'?> | |
<kml xmlns='http://www.opengis.net/kml/2.2'> | |
<Document> | |
<name>Double Plus Good </name> | |
<description><![CDATA[Trip Map 1]]></description> | |
<NetworkLink> | |
<name>Double Plus Good </name> | |
<Link> | |
<href>http://mapsengine.google.com/map/kml?forcekml=1&mid=z_Tk3EyXNpN8.k743LUvJRr1U</href> | |
</Link> |
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
<style> | |
#siteWrapper #page{ | |
margin: none; | |
padding: none; | |
max-width: none; | |
} | |
main { | |
padding: 0 !important; | |
} | |
#fullcirclemap img{ |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<kml xmlns='http://www.opengis.net/kml/2.2'> | |
<Document> | |
<name>testmap1</name> | |
<description><![CDATA[]]></description> | |
<Folder> | |
<name>Untitled layer</name> | |
<Placemark> | |
<name>Point 1</name> | |
<styleUrl>#icon-503-DB4436-nodesc</styleUrl> |
OlderNewer