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
File structure of the ADNconfig.xml: | |
<xml> | |
<login> | |
<user>=R2U24 6T5E3</user> | |
<password>=R2UcnKr</password> | |
<account> r u</account> | |
<encryption>true</encryption> | |
</login> | |
</xml> |
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
/* Default Expected time_value format: "Tue Jul 31 18:22:19 +0000 2012" */ | |
function relative_time(time_value) { | |
var values = time_value.split(" "); | |
time_value = values[1] + " " + values[2] + ", " + values[5] + " " + values[3]; | |
var parsed_date = Date.parse(time_value); | |
var relative_to = (arguments.length > 1) ? arguments[1] : new Date(); | |
var delta = parseInt((relative_to.getTime() - parsed_date) / 1000); | |
delta = delta + (relative_to.getTimezoneOffset() * 60); |
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
vagrant@precise32:/vagrant/sites/all/modules/nodejs$ sudo npm install socket.io | |
npm http GET https://registry.npmjs.org/socket.io | |
npm http 304 https://registry.npmjs.org/socket.io | |
npm http GET https://registry.npmjs.org/redis/0.7.2 | |
npm http GET https://registry.npmjs.org/socket.io-client/0.9.10 | |
npm http GET https://registry.npmjs.org/policyfile/0.0.4 | |
npm http 304 https://registry.npmjs.org/socket.io-client/0.9.10 | |
npm http 304 https://registry.npmjs.org/redis/0.7.2 | |
npm http 304 https://registry.npmjs.org/policyfile/0.0.4 | |
npm http GET https://registry.npmjs.org/hiredis |
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
0 info it worked if it ends with ok | |
1 verbose cli [ '/home/vagrant/nvm/v0.8.12/bin/node', | |
1 verbose cli '/home/vagrant/nvm/v0.8.12/bin/npm', | |
1 verbose cli 'install', | |
1 verbose cli 'socket.io' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose read json /vagrant/sites/all/modules/nodejs/package.json | |
5 verbose read json /vagrant/sites/all/modules/nodejs/node_modules/connect/package.json | |
6 verbose read json /vagrant/sites/all/modules/nodejs/node_modules/request/package.json |
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
info it worked if it ends with ok | |
verbose cli [ 'node', '/home/vagrant/nvm/v0.8.12/bin/npm', 'link', 'express' ] | |
info using [email protected] | |
info using [email protected] | |
verbose config file /home/vagrant/.npmrc | |
verbose config file /home/vagrant/nvm/v0.8.12/etc/npmrc | |
verbose config file /home/vagrant/nvm/v0.8.12/lib/node_modules/npm/npmrc | |
info unbuild /vagrant/sites/all/modules/nodejs/node_modules/express | |
verbose link symlinking /home/vagrant/nvm/v0.8.12/lib/node_modules/express to /vagrant/sites/all/modules/nodejs/node_modules/express | |
ERR! Error: EROFS, symlink '/home/vagrant/nvm/v0.8.12/lib/node_modules/express' |
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
02-03 19:31:57.362: I/Corona(12870): web view requesting: https://chicagotribune.signon.trb.com/registration/trbsecurity/social_signon_redirect?product_code=chinews&date_time=2%2F4%2F2014+00%3A31&partner_token=dadc0c621d2ca9a8f7ab1a9433505107&providerId=2&callbackUrl=http%3A%2F%2Fwww.chicagotribune.stage.tribdev.com%2Fabout%2Fsite%2Fregistration%2Fsignin_registration.complete%3FlinkProviderEmail%3Djake%40favorcollective.com%26%26linkPassword%3Dpassword1%26%3F 02-03 19:31:57.452: I/Corona(12870): You are visiting: https://chicagotribune.signon.trb.com/registration/trbsecurity/social_signon_redirect?product_code=chinews&date_time=2%2F4%2F2014+00%3A31&partner_token=dadc0c621d2ca9a8f7ab1a9433505107&providerId=2&callbackUrl=http%3A%2F%2Fwww.chicagotribune.stage.tribdev.com%2Fabout%2Fsite%2Fregistration%2Fsignin_registration.complete%3FlinkProviderEmail%3Djake%40favorcollective.com%26%26linkPassword%3Dpassword1%26%3F | |
02-03 19:31:57.452: I/Corona(12870): date_time 2/4/2014 00:31 02-03 19:31:57.452: I/Corona(12870): |
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
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<link rel="import" href="../topeka-elements/category-icons.html"> | |
<polymer-element name="my-element"> | |
<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
checkList = () => { | |
let lists = this.getRefs(); | |
let {target, current, delta, pageX, pageY} = this.dragInfo; | |
let t = this.center(target); | |
let closest = this.closestList(t.x, t.y, lists); | |
// closest list is not the current list | |
if(current != closest){ | |
if(this.shouldCancelListJump && this.shouldCancelListJump(current, closest)){ |
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
/** | |
* | |
* Inspired by https://www.abeautifulsite.net/executing-promises-in-sequence-and-stopping-at-the-first-resolved-promise | |
* | |
* Usage: | |
* | |
import * as promise_seq from 'promise-sequence'; | |
return new Promise((resolve, reject)=>{ |
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
sudo add-apt-repository ppa:pinepain/libv8-archived | |
sudo apt-get update | |
sudo apt-get install libv8-5.2 | |
sudo pecl install v8js | |
sudo su | |
echo "extension=v8js.so" >> /etc/php/7.0/fpm/php.ini | |
echo "extension=v8js.so" >> /etc/php/7.0/cli/php.ini | |
exit | |
sudo service nginx restart && sudo service php7.0-fpm restart |
OlderNewer