Skip to content

Instantly share code, notes, and snippets.

View jacksonh's full-sized avatar
🎯
Focusing

Jackson Harper jacksonh

🎯
Focusing
View GitHub Profile
@jacksonh
jacksonh / gen-epub.ts
Created August 24, 2023 07:27 — forked from kebot/gen-epub.ts
Generate Epub for Omnivore Articles
// get a list of articles based on search endpoint
import { gql, GraphQLClient } from 'npm:graphql-request'
import sanitizeHtml from 'npm:sanitize-html'
import epub, { Chapter } from 'npm:epub-gen-memory'
const OMNIVORE_API_KEY = ''
const OMNIVORE_ENDPOINT = 'https://api-prod.omnivore.app/api/graphql'
const graphQLClient = new GraphQLClient(OMNIVORE_ENDPOINT, {
headers: {
if (article?.dom) {
const ANCHOR_ELEMENTS_BLOCKED_ATTRIBUTES = [
'omnivore-highlight-id',
'data-twitter-tweet-id',
'data-instagram-id',
]
// Get the top level element?
const pageNode = article.dom.firstElementChild as HTMLElement
console.log("pageNode: ", pageNode)
(defn exp [x n]
(if (= n 0) 1
(* x (exp x (- n 1)))
)
)
(defn square-largest-two [x y z]
(defn sum-squares [x y] (+ (* x x) (* y y)))
(sum-squares (max x y) (max y z))
)
# https://developers.google.com/analytics/devguides/collection/protocol/v1/reference
# https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters
Pod::Spec.new do |spec|
spec.name = 'CleanroomASL'
spec.version = '1.1.3'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://github.com/emaloney/CleanroomASL'
spec.authors = { 'emaloney' => '[email protected]' }
spec.summary = 'extensible Swift-based logging API'
spec.source = { :git => '[email protected]:emaloney/CleanroomASL.git', :tag => spec.version }
spec.source_files = 'Code/*.swift', 'BuildControl/CleanroomASL-Bridging-Header.h'
spec.private_header_files = 'BuildControl/CleanroomASL-Bridging-Header.h'
// Public
@interface Image()
@property (assign, nonatomic, readonly) CGSize size;
@end
// Private

Kansas City - James Massey, a married man in his late twenties, has set a new world record for continuous video game play. The record, set on a Friday evening, has inspired millions of espoused men everywhere.

"Some guys are calling me a hero, but I was just doing what any man would have done." the world-record holder said. "This is my dream, it has always been my dream, to one day play video games for so long, all at once."

The previous record, 11 minutes, held by Brian Hutchinson from Little Rock, was attained only when his wife accidentally locked herself in the basement. "I knew he was playing video games" his wife said, "but I wanted to rearrange some furniture in the basement. I thought it would look better if everything was shifted over a couple of inches." Furious screaming from behind the locked basement door eventually pulled Brian away from his video game at the 11 minute mark.

Hutchinson commended the the new world-record gamer. "I don't know how he did it. I didn't think 13 minutes was even po

You are going to be my mentor for this event and I'm going to be the mentee! I can't wait to meet you sometime soon. Your job sounds very intriguing! It's great to see a UofT CS alumni member having success after undergrad! It gives me great optimism for the future! Keep it up and enjoy your Christmas!

Dear Jackson,

We are pleased to let you know that you have been matched with an undergraduate computer science student for our DCS Career Mentorship Program. At this point, you do not need to do anything - it is the student's responsibility to contact you by the first week of January; if you do not hear from anyone by January 9th, please contact us.

We hope you will be available to meet your student in person at our launch reception on the evening of Monday, January 19th, 5:30-7:30 p.m. (A pdf invitation will follow after the holidays.) Of course, you are welcome to arrange a meeting with your student before the launch, if it is mutually convenient.

For the second time this year, we are including a reflective writing component in the mentorship program. We will be asking students to reflect on their experience and to periodically record their responses to specific questions that we provide. Reflective writing has been shown to deepen learning, and we believe it will help our students take an active role in