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
- (void)start:(NSString *)queueItemId | |
{ | |
// ... | |
EVILog(EVILogLevelInfo, @"started playing %@", queueItemId); | |
// ... | |
} |
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
static EVILoggingCallback s_callback = nil; | |
#pragma mark - | |
void EVILog(EVILogLevel level, NSString *fmt, ...) | |
{ | |
va_list ap; | |
va_start(ap, fmt); | |
if(s_callback) |
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
// NOTE: filenames hardcoded! | |
const got = require('got') | |
const csv = require('csv') | |
const fs = require('fs') | |
async function fetchGoogleBookId(isbn) { | |
const queryUrl = `https://www.googleapis.com/books/v1/volumes?q=isbn:${isbn}` | |
const response = await got(queryUrl) | |
const json = JSON.parse(response.body) |
OlderNewer