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}`;
<!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; | |
} |
// Remove GOPATH prefix from the stacktrace
// https://github.com/golang/go/issues/13809#issuecomment-168874760
go build -gcflags=-trimpath=$GOPATH -asmflags=-trimpath=$GOPATH
https://blog.filippo.io/shrink-your-go-binaries-with-this-one-weird-trick/ https://golang.org/cmd/link/ Remove debugging symbols with -ldflags="-s -w" to reduce binary size.
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) { |
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).
// 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) |
#!/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 |
#!/bin/bash | |
# UEFI Shell | |
mount fs01 usb | |
usb: | |
shell.x64.efi | |
# LUKS | |
dd if=/dev/urandom of=/dev/nvme0n1 |