Runkit
Runkit
home page
user forum
new notebook
support & documentation
log in
sign up
new notebook
documentation & support
Sign In
Sign Up
jed's notebooks
Untitled
-
/jed/coerced-this
Last edited 3 years ago
(function(){return this}.call(1) === 1)
largest perfect cube EN word in base 23
-
/jed/largest-perfect-cube-thats-an-english-word-in-base-23
Last edited 7 years ago
Largest perfect cube that's an English word in base 23, from https://twitter.com/wacnt/status/669304627964153856
Google Calendar JSON API
-
/jed/gcal-json-api
Last edited 7 years ago
var CALENDAR_ID = 'skefebg7qap64nn78cmd86p44k@group.calendar.google.com' require('url').format({ protocol: 'https:', hostname: 'www.googleapis.com', pathname: `/calendar/v3/calendars/${CALENDAR_ID}/events`, query: {key: process.env.API_KEY} })
isOldMeetup
-
/jed/is-old-meetup
Last edited 7 years ago
var got = require('got') var cheerio = require('cheerio') var res = await got('http://www.meetup.com/Brooklyn-Node-JS-Meetup/') var $ = cheerio.load(res.body) var date = $('.event-attended').eq(0).text().trim() var isOld = /201\d/.test(date)