Some notes on accessing / exporting Apple's Reminders data on macOS.
This file contains hidden or 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 Firebase = require('firebase'); | |
var async = require('async'); | |
// Extract data from the kinesis event | |
exports.handler = function(event, context) { | |
// This function abstracts the expected structure of any Kinesis payload, | |
// which is a base64-encoded string of a JSON object, passing the data to | |
// a private function. | |
function handlePayload(record, callback) { |
This file contains hidden or 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
#!/usr/bin/env node | |
const glob = require('glob'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const mkdirp = require('mkdirp'); | |
const args = global.process.argv.slice(2); | |
const sourcesRoot = args.shift() || path.join(__dirname, '..', 'src'); | |
const specsRoot = args.shift() || path.join(__dirname, '..', 'spec'); |
This file contains hidden or 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
// I want to do something like this: | |
export default class Foo extends React.Component { | |
render() { | |
return <div ref={div => this._div = div}>I want a reference to this!</div> | |
} | |
} | |
// Flow says: "Property _div not found on Foo" | |
// Is there a way to give Foo the type Component & {_div?: Component} ? |
This file contains hidden or 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
''' | |
parse SavedState artifacts extracted from OSX. | |
author: Willi Ballenthin ([email protected]) | |
license: Apache 2.0 | |
''' | |
import re | |
import sys | |
import json | |
import struct |
This file contains hidden or 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
// Copyright (c) Alliedstrand Corporation. All rights reserved. | |
// | |
// Licensed under the MIT License. | |
'use strict'; | |
/** | |
* @file Extract the GitHub Personal Access Token for GitHub Package Registry | |
* access. | |
* |
This file contains hidden or 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
task("createMermaidDependencyGraph") { | |
group = "Reporting" | |
description = "Creates a mermaid dependency graph for the project" | |
doLast { | |
val projects = mutableSetOf<Project>() | |
val dependencies = mutableListOf<Pair<Project, Project>>() | |
val queue = mutableListOf(rootProject) | |
while (queue.isNotEmpty()) { | |
val project = queue.removeAt(0) | |
queue.addAll(project.childProjects.values) |
Learnings from ts-blank-space
tags: TypeScript, type erasure, type stripping
As part of my work on the JavaScript Tooling team at Bloomberg I have implemented an experimental (not yet used in production) package to transform TypeScript into JavaScript using a somewhat novel approach.
This is a description of what I learned from implementing the idea. The source code will be open sourced soon - it just needs some regular IP approval.
OlderNewer