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
// 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 { |
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 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; |
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
module Audited | |
extend ActiveSupport::Concern | |
included do | |
class_attribute :options | |
class_attribute :operation_map | |
self.operation_map = { | |
:create => 'Created', | |
:update => 'Updated', | |
:destroy => 'Destroyed' |