var fs = require("fs"), | |
readline = require("readline"); | |
var reader = readline.createInterface({ | |
input: fs.createReadStream("large-file.txt"), | |
output: fs.createWriteStream("/dev/null"), | |
terminal: false | |
}); | |
reader.on("line", function(line) { |
Find me on Github, Facebook, Youtube, etc by #iOSBySheldon.
Library and Framework are not same but close. Frameworks are just libraries with linking (binding). In other words, frameworks are just libraries that are bundled into targets. Therefore, their file extensions are different.
- Static Library - xxxx.a
- Dynamic Library - xxxx.dylib
Build an ETL job service by fetching data from a public API endpoint and dumping it into an AWS Redshift database.
Published on Jan. 11th, 2018 at https://serverless.com/blog/serverless-application-for-long-running-process-fargate-lambda/
AWS dropped so many serverless announcements at re:Invent, the community is still scrambling to make sense of them all. This post is all about AWS Fargate.
In this article, I will show you how to create an end-to-end serverless application that extracts thumbnails from video files. But, oh no, processing video files is a long-running process! Whatever will we do?
import {https} from 'firebase-functions'; | |
import gqlServer from './graphql/server'; | |
const server = gqlServer(); | |
// Graphql api | |
// https://us-central1-<project-name>.cloudfunctions.net/api/ | |
const api = https.onRequest(server); | |
export {api}; |