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
const Twitter = require('twitter'); | |
const client = new Twitter({ | |
consumer_key: 'XXXXXXXXXXXXXXXX', | |
consumer_secret: 'XXXXXXXXXXXXXXXXXXXXX', | |
access_token_key: 'XXXXXXXXXXXXXXXXXXXX', | |
access_token_secret: 'XXXXXXXXXXXXXXXXXXXXXXX' | |
}); | |
let lastTimelineTweetId; |
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
/* | |
* SmoothBlend.js | |
* by Matt Eason (matteason.co.uk) | |
* http://creativecommons.org/licenses/by-sa/4.0/ | |
* | |
* Smooths the stepping effect created by blends by removing anchor points | |
* that are very close together. Useful for creating extrustion effects. | |
*/ | |
function remPoints (path, tolerance) { | |
console.log('Tidying up the path... '); |