Skip to content

Instantly share code, notes, and snippets.

var lastPricePending = data.last;
lastPrice = +lastPricePending.toFix(2);
if (this.config.showBefore == null) {
var showBefore = this.config.exchange;
} else {
var showBefore = this.config.showBefore
}
if (lastPrice) {
symbolElement.innerHTML = showBefore + ' ' + fiatSymbol;
wrapper.appendChild(symbolElement);
@lkthomas
lkthomas / README.md
Created July 22, 2018 06:39 — forked from wesee/README.md
Weatheroutlook Dashing Widget
A_side_routes:
network.routes:
- name: {{ testing_networking.A_side.interface }}
- routes:
- name: A_side testing routing gateway
ipaddr: 192.168.15.13
netmask: 255.255.255.255
- name: A_side testing routing network 192.168.2.0
ipaddr: 192.168.2.0
netmask: 255.255.255.0
{% set ethers_file_content = salt['grains.filter_by']({
"uk02": { "ethers_content": "
1.7.1.1 00:00:00:00
1.7.1.2 00:00:00:00
"
}
}, merge=salt['pillar.get']('ethers_file_content'), grain="site") %}
ethers_file:
file.managed:
abc 150000 50000 0 host1
abc 150000 50000 0 host2
puppet agent --test
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for backup.hk.domain.com
Info: Applying configuration version '1504530720'
Notice: /Stage[main]/Motd/File[/etc/motd]/content:
--- /etc/motd 2017-09-04 21:09:41.913042243 +0800
+++ /tmp/puppet-file20170904-447-wkkq9z 2017-09-04 21:12:05.778749122 +0800