Skip to content

Instantly share code, notes, and snippets.

@kenjitayama
kenjitayama / index.html
Last active January 28, 2016 11:32
Sample for trying out Lovefield DB Inspector (SPAC version)
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Sample for trying out Lovefield DB Inspector (SPAC version)</title>
<script type="text/javascript" src="https://rawgithub.com/kenjitayama/lovefield_spac_example/2aa2b1663edef3b57fafc7e782aadf74b12a7f4e/appdb.js"></script>
</head>
<body>
<script>
var todoDb;
@kenjitayama
kenjitayama / index.html
Created January 28, 2016 08:57
Sample for trying out Lovefield DB Inspector (lovefield.min.js version)
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Sample for trying out Lovefield DB Inspector</title>
<script type="text/javascript" src="https://rawgithub.com/google/lovefield/8ad30503657a8e52587640678be541415984b8de/dist/lovefield.min.js"></script>
</head>
<body>
<script>
@kenjitayama
kenjitayama / index.html
Created January 28, 2016 08:37
Sample for trying out Lovefield DB Inspector
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Sample for trying out Lovefield DB Inspector</title>
<script type="text/javascript" src="https://rawgithub.com/google/lovefield/8ad30503657a8e52587640678be541415984b8de/dist/lovefield.js"></script>
</head>
<body>
<script>
@kenjitayama
kenjitayama / index.html
Created August 3, 2015 07:23
workaround for "LoveField inner join not working in Safari" due to IndexedDB bug
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Minimal example of using Lovefield</title>
<script type="text/javascript" src="https://rawgithub.com/google/lovefield/207765f3dda39a0ad1e350a46f3a6f8edc222e05/dist/lovefield.js"></script>
</head>
<body>
<script>
@kenjitayama
kenjitayama / index.html
Last active August 29, 2015 14:26
LoveField inner join not working in Safari
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Minimal example of using Lovefield</title>
<script type="text/javascript" src="https://rawgithub.com/google/lovefield/207765f3dda39a0ad1e350a46f3a6f8edc222e05/dist/lovefield.js"></script>
</head>
<body>
<script>
@kenjitayama
kenjitayama / OmniFocusToggleAndLog.scpt
Last active August 29, 2015 14:18
For OmniFocus2. Toggle flagged/completed of selected tasks and log to file.
(*
# DESCRIPTION #
Toggle flagged/completed of selected tasks and log to file.
*)
on main()
-- constants start
set toggleTypeFlagged to "flagged"
@kenjitayama
kenjitayama / OmniFocusToEvernote.scpt
Last active August 29, 2015 14:18
Create Evernote notes from selected task in OmniFocus2.
(*
# DESCRIPTION #
Create Evernote note from selected task in OmniFocus2.
Also creates cross reference (links) to the task note and Evernote note.
*)
on main()
tell application "OmniFocus"
tell content of first document window of front document
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>