Skip to content

Instantly share code, notes, and snippets.

@dmisdm
dmisdm / QuotableItemsDiff.ts
Last active November 17, 2023 04:46
QuotableItemsDiff.ts
#!/usr/bin/env npx deno-bin run --allow-all
import XLSX from "npm:xlsx";
import { parseFlags } from "https://deno.land/x/cliffy@v0.25.7/flags/mod.ts";
import "https://deno.land/x/dotenv@v3.2.2/load.ts";
// @deno-types="npm:@types/flat"
import flat from "npm:flat@3.0.1";
import { BSON, MongoClient } from "npm:mongodb";
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Embed tag with PDF demo</title>
</head>
<body>
<h1>Embed tag with PDF demo</h1>
<embed style="height: 100vh; width: 100%;" src="http://yongfeng.me/attach/lin-recsys2019.pdf" type="application/pdf" />
</body>
// Generate .flow.js from .ts files so that flow can understand TS and the two can live in peace at least until we have time to completely overhaul flow
const flowgen = require('flowgen');
const fs = require('fs');
const name = 'FlowgenWebpackPlugin';
const tsPattern = /\.(ts|tsx)$/;
class FlowgenWebpackPlugin {
apply(compiler) {
compiler.hooks.compilation.tap(name, compilation => {
const compiledModules = {};
compilation.hooks.succeedModule.tap(name, module => {
@dmisdm
dmisdm / cloudSettings
Last active July 17, 2020 01:13
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-17T01:13:25.128Z","extensionVersion":"v3.4.3"}
@dmisdm
dmisdm / designer.html
Last active October 25, 2015 06:06
designer
<link rel="import" href="../notification-elements/notification-alert.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-item/paper-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;