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
/*This source code copyrighted by Lazy Foo' Productions (2004-2020) | |
and may not be redistributed without written permission.*/ | |
//Using SDL and standard IO | |
#include <SDL2/SDL.h> | |
#include <stdio.h> | |
//Screen dimension constants | |
const int SCREEN_WIDTH = 640; | |
const int SCREEN_HEIGHT = 480; |
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
var server = { | |
"development": "http://localhost:8000/", | |
"production": "http://myapp-production.herokuapp.com/", | |
"staging": "http://myapp-staging.herokuapp.com/" | |
}[process.env.NODE_ENV || "development"] + "myquery?parameter=VALUE"; |
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
var request = require("request"), | |
cheerio = require("cheerio"), | |
url = "https://www.google.com/search?q=data+mining", | |
corpus = {}, | |
totalResults = 0, | |
resultsDownloaded = 0; | |
function callback () { | |
resultsDownloaded++; |