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
| # note these instructions are as of Dec 28, 2015 | |
| # the vlc and vlckit repos are super complex and have thousands of dependencies from everywhere on the internet. | |
| # so, you'll need to mess with things a bit | |
| git clone http://code.videolan.org/videolan/VLCKit.git | |
| cd VLCKit | |
| ./buildMobileVLCKit.sh -t |
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
| --- | |
| - hosts: all | |
| vars: | |
| UBUNTU_COMMON_ROOT_PASSWORD: 'xxxxx' | |
| UBUNTU_COMMON_DEPLOY_PASSWORD: 'xxxxx' | |
| UBUNTU_COMMON_LOGWATCH_EMAIL: user@example.com | |
| ubuntu_common_deploy_user_name: deploy | |
| ubuntu_common_deploy_public_keys: | |
| - ~/.ssh/id_rsa.pub |
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
| # Category Theory proofs in Idris | |
| Idris is a language with dependent types, and is similar to Agda. | |
| What distinguishes Idris is that it is intended to be a general-purpose language first, | |
| and a theorem prover second. | |
| To that end it supports optional totality checking | |
| and features to support writing DSLs: | |
| type classes, | |
| do notation, | |
| monad comprehensions (i.e., a more general form of list comprehension), |
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
| <html> | |
| <head> | |
| <title>Test</title> | |
| <script src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
| <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> | |
| <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /> | |
| <script src="http://fb.me/react-0.5.1.js"></script> | |
| <script src="http://fb.me/JSXTransformer-0.5.1.js"></script> | |
| </head> |
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
| // pre-render d3 charts at server side | |
| var d3 = require('d3') | |
| , jsdom = require('jsdom') | |
| , fs = require('fs') | |
| , htmlStub = '<html><head></head><body><div id="dataviz-container"></div><script src="js/d3.v3.min.js"></script></body></html>' | |
| jsdom.env({ | |
| features : { QuerySelector : true } | |
| , html : htmlStub | |
| , done : function(errors, window) { |
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 pubListener = 'tcp://127.0.0.1:5555'; | |
| var subListener = 'tcp://127.0.0.1:5556'; | |
| var hwm = 1000; | |
| var verbose = 0; | |
| // The xsub listener is where pubs connect to | |
| var subSock = zmq.socket('xsub'); | |
| subSock.identity = 'subscriber' + process.pid; | |
| subSock.bindSync(subListener); |
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
| // includes bindings for fetching/fetched | |
| var PaginatedCollection = Backbone.Collection.extend({ | |
| initialize: function() { | |
| _.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
| typeof(options) != 'undefined' || (options = {}); | |
| this.page = 1; | |
| typeof(this.perPage) != 'undefined' || (this.perPage = 10); | |
| }, | |
| fetch: function(options) { |