Skip to content

Instantly share code, notes, and snippets.

View jakedowns's full-sized avatar
💜
exploring, is there something you'd like to show me?

Jake Downs jakedowns

💜
exploring, is there something you'd like to show me?
View GitHub Profile
@jakedowns
jakedowns / gist:8795416
Created February 4, 2014 00:39
Link Account Log (Production)
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):
@jakedowns
jakedowns / gist:3276521
Created August 6, 2012 16:48
from the documentation...
File structure of the ADNconfig.xml:
<xml>
<login>
<user>=R2U24 6T5E3</user>
<password>=R2UcnKr</password>
<account> r u</account>
<encryption>true</encryption>
</login>
</xml>
@jakedowns
jakedowns / gist:3772775
Created September 23, 2012 19:38
JS Relative Time
/* 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);
@jakedowns
jakedowns / NPM Error
Created October 12, 2012 18:31
NPM Error. :I
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
@jakedowns
jakedowns / npm-debug.log
Created October 12, 2012 19:06
npm-debug.log
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 npm@1.1.63
3 info using node@v0.8.12
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
@jakedowns
jakedowns / npm link error
Created October 12, 2012 20:32
npm link error
@jakedowns
jakedowns / designer.html
Last active August 8, 2016 21:22
designer
<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>
@jakedowns
jakedowns / SortableGroup.js
Last active February 14, 2017 22:28
SortableGroup Class modifications
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)){
@jakedowns
jakedowns / promise-sequence.js
Created September 15, 2017 18:49
Sequential Promise Processor : First to Resolve, First to Reject : Simple Helper Methods
/**
*
* 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)=>{
@jakedowns
jakedowns / install.bash
Last active January 2, 2018 18:37 — forked from val-bubbleflat/install.bash
Install V8Js on Laravel Forge
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