Skip to content

Instantly share code, notes, and snippets.

class StockTicker extends HTMLElement {
  createdCallback() {
    this.createShadowRoor().innerHTML = `
      <style> :host { display: block; } </style>
      <div id="quotes"></div>`;
  }
  
  updateQuotes() {
    let url = `https://api.finance.com?q=${this.symbols}`;
@corburn
corburn / database_defined_summary.blade.php
Last active April 27, 2016 15:44
This script was created to visually answer the question which tables/fields in a database are actually being used. It uses Laravel and Canvas.js to create a webpage full of bar charts for each table, in ascending order by number of records in the table, showing all the fields present in the table and how many records have a non-null value in the…
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
window.onload = function () {
@foreach($tables as $table => $columns)
var chart = new CanvasJS.Chart("{{$table}}",
{
theme: "theme3",
const DB_VERSION = 1; // Use a long long for this value (don't use a float)
const DB_STORE_NAME = 'customer';
const DB_NAME = 'default';
class Database {
constructor(name = 'default', version = 1) {
this.name = name;
this.version = version;
}

DNA-DNA Hybridization

TODO

Restriction Enzyme Digestion Profiles

TODO

Genetic Mapping

@corburn
corburn / react.js
Last active October 31, 2016 06:17
function ListOfTenThings() {
return (
<Repeat numTimes={10}>
{(index) => <div key={index}>This is item {index} in the list</div>}
</Repeat>
);
}
// Calls the children callback numTimes to produce a repeated component
function Repeat(props) {
@corburn
corburn / README.md
Last active November 6, 2016 21:26

to obtain all the diagnostics required by the standard, you should also specify -pedantic (or -pedantic-errors if you want them to be errors rather than warnings). See Options Controlling C Dialect.

An amendment to the 1990 standard was published in 1995. This amendment added digraphs and __STDC_VERSION__ to the language, but otherwise concerned the library. This amendment is commonly known as AMD1; the amended standard is sometimes known as C94 or C95. To select this standard in GCC, use the option -std=iso9899:199409 (with, as for other standard versions, -pedantic to receive all required diagnostics).

Conforming Freestanding Library

// https://gcc.gnu.org/onlinedocs/gcc-6.2.0/gcc/Standards.html#Standards
// The ISO C standard defines (in clause 4) two classes of conforming implementation.
= Arch Linux step-by-step installation =
= http://blog.fabio.mancinelli.me/2012/12/28/Arch_Linux_on_BTRFS.html =
== Boot the installation CD ==
== Create partition ==
cfdisk /dev/sda
* Create a partition with code 8300 (Linux)
@corburn
corburn / pre-commit
Created January 24, 2017 00:56
git pre-commit hook to lint .travis.yml using api.travis-ci.org/lint
#!/bin/sh
#
# A hook to check for lint warnings when .travis.yml is modified
# by uploading it to api.travis-ci.org/lint.
#
# A similar result could be achieved by uploading the configuration
# to https://lint.travis-ci.org/ before commiting.
# Redirect output to stderr.
exec 1>&2
@corburn
corburn / archlinux.sh
Last active December 5, 2017 17:02
Installing Arch Linux with an encrypted btrfs root, GPT, and UEFI
#!/bin/bash
# UEFI Shell
mount fs01 usb
usb:
shell.x64.efi
# LUKS
dd if=/dev/urandom of=/dev/nvme0n1