Skip to content

Instantly share code, notes, and snippets.

View RoryCombe's full-sized avatar
🎯
Focusing

Rory RoryCombe

🎯
Focusing
View GitHub Profile
@RoryCombe
RoryCombe / index.html
Created November 18, 2023 20:36
Pico Slider Test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pico Slider Test</title>
</head>
<body>
<script src="https://unpkg.com/pico-slider/dist/index.js" type="module" async defer></script>
<script type="module">
const express = require('express');
const cors = require('cors');
const app = express();
const rootDir = __dirname + '/app';
app.use(cors());
app.use(express.static(rootDir));
app.get('*', function(req, res) {
const express = require('express');
const cors = require('cors');
const app = express();
const rootDir = __dirname + '/app';
app.use(cors());
app.use(express.static(rootDir));
app.get('*', function(req, res) {
@RoryCombe
RoryCombe / fns.js
Created November 20, 2018 11:54
JavaScript/ES6 Functional utilities
const flip = fn => (a, b) => fn(b, a);
const apply = (func, val) => func(val);
const flipApply = flip(apply);
const pipe = (...args) => x => args.reduce(flipApply, x);
const compose = (...args) => pipe(...args.reverse());

Keybase proof

I hereby claim:

  • I am rorycombe on github.
  • I am rorycombe (https://keybase.io/rorycombe) on keybase.
  • I have a public key ASCRtvSoD1xgwX-_lcDmrwtjDYRYIldyRgbThWeNxLfB2wo

To claim this, I am signing this object: