Skip to content

Instantly share code, notes, and snippets.

View Crisfole's full-sized avatar

Christopher Pfohl Crisfole

  • Apsis Labs
  • Beverly, MA (remote)
View GitHub Profile
@Crisfole
Crisfole / svelte.d.ts
Last active November 19, 2018 00:04 — forked from mrkishi/svelte.d.ts
Type definitions for Svelte components
// When importing an html file, assume it's a svelte component
declare module '*.html' {
type State = Record<string, any>;
type Changed = Record<string, boolean>;
type ChangeArgs = {
changed: Changed,
current: State,
previous: State
};
interface Cancellable {
@Crisfole
Crisfole / index.html
Last active August 29, 2015 13:57 — forked from billdwhite/index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Treemap - Neat Zoom Effect</title>
<script type="text/javascript" src="http://www.billdwhite.com/wordpress/wp-content/js/browserdetect/browserdetect.js"></script>
<script type="text/javascript" src="http://www.billdwhite.com/wordpress/wp-content/js/d3/d3.js"></script>
<style type="text/css">
body {
overflow: hidden;
module Audited
extend ActiveSupport::Concern
included do
class_attribute :options
class_attribute :operation_map
self.operation_map = {
:create => 'Created',
:update => 'Updated',
:destroy => 'Destroyed'