A Pen by Gary Bishop on CodePen.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import nbformat | |
from nbconvert.preprocessors import ExecutePreprocessor | |
import sys | |
import time | |
notebook_filename = sys.argv[1] | |
t0 = time.time() |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="css transition zoom book"> | |
<script src="https://code.jquery.com/jquery-2.1.4.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
ul { |
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
rewrite (master *%)$ tsc | |
src/NavFrame.tsx(53,65): error TS2345: Argument of type '{ width: string; fontSize: string; } | { width: string; height: string; fontSize: string; alignSe...' is not assignable to parameter of type 'CSSProperties'. | |
Type '{ width: string; height: string; fontSize: string; alignSelf: string; }' is not assignable to type 'CSSProperties'. | |
Types of property 'alignSelf' are incompatible. | |
Type 'string' is not assignable to type '"auto" | "center" | "initial" | "inherit" | "unset" | "flex-start" | "flex-end" | "stretch" | "ba...'. | |
src/NavFrame.tsx(57,65): error TS2345: Argument of type '{ width: string; fontSize: string; } | { width: string; height: string; fontSize: string; alignSe...' is not assignable to parameter of type 'CSSProperties'. | |
Type '{ width: string; height: string; fontSize: string; alignSelf: string; }' is not assignable to type 'CSSProperties'. |
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
interface HomeView { | |
view: 'home'; | |
} | |
export interface BookView { | |
view: 'book'; | |
link: string; | |
page: number; | |
} |
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
// kill any saved interval to make dev easier | |
if (window.interval) clearInterval(window.interval); | |
// remember the current url | |
let url = null; | |
// Call our read function when the URL changes (there must be a better way) | |
function pollURL() { | |
if (document.location.href != url) { | |
url = document.location.href; | |
readIt(); | |
} |
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
javascript:(function(){var lib=".libproxy.lib.unc.edu",url=https://${location.host.replaceAll(".","-")}${lib}${location.pathname}${location.search};location.href=url})(); |
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
-- experiment with live jsdoc | |
local ls = require("luasnip") | |
local s = ls.snippet | |
local sn = ls.snippet_node | |
local t = ls.text_node | |
local i = ls.insert_node | |
local d = ls.dynamic_node | |
local r = ls.restore_node | |
local c = ls.choice_node |
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
import { nextCard } from "./card_list.js"; | |
import { previousCard } from "./card_list.js"; | |
import { flipCard } from "./card_list.js"; | |
// Variable that controls which side of the flashcard comes up first | |
//Default is Characters | |
var firstSide = "Characters"; | |
const labels = [ | |
"English", "Pinyin", "Characters" |