programming-from-a-to-z / a2z-f17 Goto Github PK
View Code? Open in Web Editor NEWITP A2Z Course for Fall 2017
ITP A2Z Course for Fall 2017
The week 3 word counting example is not working due to nytimes/public_api_specs#34
Turn the bayesian classification code into a JS library?
See: https://github.com/ttezel/bayes for an example. Or maybe just use this library.
Also =>
syntax in ES6 related to closures.
let test => () {
}
Is that even right?
Hi Daniel,
I'm using Brackets and I keep having the same error from browser console when running sketch.js from Brackets and clicking on either Search or Tweet button. I renamed config-empty.js to config.js and filled in my api keys. Can't figure out what is wrong.
p5.js:5131 GET http://127.x.x.x:xxxxx/tweets/mysearch 404 (Not Found)
p5.js:5131 XHR failed loading: GET "http://127.x.x.x:xxxxx/tweets/mysearch".
Thanks
TODO:
I have updated the nlp compromise example to use the newer syntax but the notes and video are out of date.
see this comment to fix the issue:
ttezel/twit#500 (comment)
I am trying to make a follow bot which posts a tweet when someone follows bot from this tutorial https://www.youtube.com/watch?v=ZvsqQjwrISQ&t=1s however, it's not working and I am getting following error:
Here is my code:
console.log('The follow bot is starting');
var Twit = require('twit')
var config = require('./config');
var T = new Twit(config);
//setting up a user stream
var stream = T.stream('user');
//anytime someone follows me
stream.on('follow', followed);
function followed(eventMsg){
console.log('Follow event!');
var name = eventMsg.source.name;
var screenName = eventMsg.source.screen_name;
tweetIt('.@' + screenName + ' do you like pizza?');
}
// tweetIt();
// setInterval(tweetIt, 1000*20);
function tweetIt(txt){
var tweet = {
status: txt
};
T.post('statuses/update', tweet, tweeted);
function tweeted(err, data, response){
if(err){
console.log("Something went wrong!");
}else{
console.log("It worked!");
}
}
}
came up in class to look at promises with ES6.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.