Skip to content

Instantly share code, notes, and snippets.

View benmccann's full-sized avatar

Ben McCann benmccann

View GitHub Profile

Hello there

Just a tad bit of reactivity...

Now let's look at a large amount of Markdown

Atque facit setae

Adversos humo

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>svelte-create</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@benmccann
benmccann / financial.html
Created March 2, 2019 18:16
Reproduces ticksLength issue
<!doctype html>
<html>
<head>
<title>Line Chart</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<script src="../../../dist/Chart.js"></script>
<script src="../../utils.js"></script>
<style>
canvas {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@benmccann
benmccann / backup-openstack-wiki.patch
Last active December 14, 2015 17:59
patch to update the wiki for OpenStack Storage support
diff --git a/Splitter.md b/Splitter.md
index 6e1ce90..d769e13 100644
--- a/Splitter.md
+++ b/Splitter.md
@@ -25,7 +25,7 @@ This can be disabled using the `--no-splitter` option with the [Generator](Gener
What does it do?
----------------
-It removes the file size constraints of remote storage locations such as Amazon S3, Rackspace Cloud Files, Ninefold and Dropbox. For example, you cannot store files larger than 5GB in size on Amazon S3. You can now configure backup with `split_into_chunks_of(5000)` to tell Backup to split the entire backup file in to chunks of 5000 megabytes (5gb) before storing it to Amazon S3. So assuming your backup is 15GB in size, it will split the backup file in 3 chunks and upload them separately.
+It removes the file size constraints of remote storage locations such as Amazon S3, OpenStack Storage, Rackspace Cloud Files, Ninefold and Dropbox. For example, you cannot store files larger than 5GB in size on Amazon S3. You can now configure backup with `split_into_chunks_of(5000)` to
@benmccann
benmccann / LombokTest.java
Created April 10, 2012 07:21
Test demonstrating unexpected interaction between Lombok and Jackson
package com.connectifier.data.search;
import java.io.IOException;
import java.util.List;
import junit.framework.Assert;
import lombok.Getter;
import org.junit.Test;
@benmccann
benmccann / SchemaGen.java
Created March 16, 2012 04:24
Liquibase integration for Play 2.0
package com.benmccann.example.schema;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.Writer;
import java.net.URL;
import java.util.Arrays;