Skip to content

Instantly share code, notes, and snippets.

View gilesbradshaw's full-sized avatar
🕶️
riding my bicycle

Giles gilesbradshaw

🕶️
riding my bicycle
  • SiGyl
  • Devon
View GitHub Profile
.if-xs, .if-not-sm, .if-not-md, .if-not-lg {
display:inherit;
}
.if-not-xs, .if-sm, .if-md, .if-lg {
display:none;
}
@media (min-width: 48em) {
.if-xs, .if-not-sm {
display:none;
@gilesbradshaw
gilesbradshaw / tag dependency
Last active February 25, 2016 15:01
Setting one opc tag fom another
/* configuration..
<config updateRate="1000">
<ua endpoint="opc.tcp://localhost:49320/" />
<da endpoint="localhost" server="Kepware.KEPServerEX.V5" />
<dependencies>
<dependency name="dep1">
<from node="OPC.Tag1"/>
<to node ="OPC.Tag2"/>
</dependency>
@gilesbradshaw
gilesbradshaw / Dockerfile.slack
Created March 2, 2017 20:36 — forked from alexellis/Dockerfile.slack
Slack Dockerfile for 2.1.0
FROM debian:stretch
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gconf2 \
import merge from 'lodash/merge';
/* eslint-env mocha */
describe('new test', () => {
it('works', () => {
const getIt = (x = {}) => {
const {
a = null,
b: {
it('observes a tree', marbles((m) => {
const a = {
children: [
{
children: [
{
name: 'esau',
},
{
name: 'jacob',
function selectMany(func) {
return this.reduce(
(acc, val) => [
...acc,
...func(val),
],
[],
);
}
// map with selectMany
function map(func) {
return this::selectMany(x => [func(x)]);
}
function map(func) {
return this.reduce(
(acc, val) => [
...acc
func(val),
],
[],
);
}
var edge = require('edge'); // http://tjanczuk.github.io/edge
var Rx = require('rxjs'); // https://github.com/Reactive-Extensions/RxJS
var createSubject = edge.func({
// this is c#
source: function () {/*
using System.Reactive.Linq;
using System.Reactive.Subjects;
using ClassLibrary1;
async (dynamic input) => {
import { marbles } from 'rxjs-marbles';
/* eslint-env mocha */
/* eslint-disable no-unused-expressions */
describe('merge scan', () => {
it(
'should work',
marbles(