Skip to content

Instantly share code, notes, and snippets.

@iso100
iso100 / pb.livechat.js
Created Jul 25, 2018
PB Livechat Javascript
View pb.livechat.js
'use strict';
var pb = pb || {};
(function() {
pb.namespace = function(nsString) {
var parts = nsString.split('.'),
parent = pb,
i;
if (parts[0] === 'pb') {
View AeonLoggingSuccess.log
2919df34-e165-4b2e-abae-c866be537f9e 10:19:35 AM: debug Parse returned Aeon Energy Monitor power is 1709 W
2919df34-e165-4b2e-abae-c866be537f9e 10:19:35 AM: debug state - energy null null, power 2017-07-20T14:06:40+0000
2919df34-e165-4b2e-abae-c866be537f9e 10:19:35 AM: debug zwaveEvent MeterReport(meterType: 33, meterValue: [0, 26, 21, 88], precision: 3, scale: 2, scaledMeterValue: 1709.400, size: 4)
2919df34-e165-4b2e-abae-c866be537f9e 10:19:08 AM: error groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.lang.Float#multiply.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[class java.lang.Character]
[class java.lang.Number] @ line 106
2919df34-e165-4b2e-abae-c866be537f9e 10:19:08 AM: debug Resetting Energy
2919df34-e165-4b2e-abae-c866be537f9e 10:19:08 AM: debug state - energy null null, power 2017-07-20T14:06:40+0000
2919df34-e165-4b2e-abae-c866be537f9e 10:19:08 AM: debug zwaveEvent MeterReport(meterType: 33, meterValue: [0, 0, 74,
@iso100
iso100 / grunt-issues.txt
Created Feb 13, 2015
Errors when trying to run grunt serve
View grunt-issues.txt
~/D/w/A/d/s/p/b/r/FE-static-templates ❯❯❯ grunt serve ⏎
Loading "autoprefixer.js" tasks...ERROR
>> Error: Cannot find module 'caniuse-db/data'
Loading "sass.js" tasks...ERROR
>> Error: `libsass` bindings not found. Try reinstalling `node-sass`?
Running "serve" task
Warning: Task "autoprefixer" not found. Use --force to continue.
Aborted due to warnings.
@iso100
iso100 / page.md.yaml
Last active Aug 29, 2015
yaml for gallery page
View page.md.yaml
---
title: Gallery
_fieldset: gallery
_template: gallery
gallery:
-
photo: '{{ _site_root }}assets/img/dream.jpg'
caption: Dream
-
photo: '{{ _site_root }}assets/img/reborn.jpg'
@iso100
iso100 / default.html
Created Jul 3, 2014
Homepage template showing a gallery item
View default.html
<div class="row">
<div class="eight columns">
<h2>Photography by Andrew Mosedale</h2>
<div class="row">
<div class="eight columns">
{{ content }}
</div>
<div class="four columns">
<div class="example-image">
{{ get_content from="/gallery" }}
@iso100
iso100 / implicit_cookie_code.txt
Last active Aug 29, 2015
Sample code for EU cookie law compliance
View implicit_cookie_code.txt
@iso100
iso100 / sql update
Created Mar 10, 2014
Update field based on match on fields in temp table
View sql update
UPDATE exp_pw_landingpages epw
SET epw.mailcode =
(SELECT mailcode FROM temp WHERE website = epw.website and subdir = epw.subdir)
@iso100
iso100 / .gitignore
Last active Aug 29, 2015
Better Statamic .gitignore rules
View .gitignore
# Statamic files #
######################
_cache/*
!_cache/index.html
_logs/*
!_logs/index.html
@iso100
iso100 / Statamic_related_content.html
Created Dec 12, 2013
Fieldset yaml and template code for rendering related entries in Statamic.
View Statamic_related_content.html
@iso100
iso100 / gumby_global-columns.scss
Created Oct 15, 2013
A function for use with Gumby framework that helps calculate the % width of a column in global columns when nested inside another column
View gumby_global-columns.scss
@function global-columns($desired_cols, $container_cols, $hybrid-grid: false){
@if ($hybrid-grid == true) {
@return (100% * (columns($desired_cols, true) / columns($container_cols, true)));
}
@else {
@return (100% * (columns($desired_cols) / columns($container_cols)));
}
}
You can’t perform that action at this time.