Skip to content

Instantly share code, notes, and snippets.

@ukmadlz
ukmadlz / service-worker-activate-task.js
Created May 10, 2017 17:08
Cloudinary PWA React Blog
// A new ServiceWorker is now active
self.addEventListener("activate", function (event) {
event.waitUntil(
caches.keys()
.then(function (cacheNames) {
return Promise.all(
cacheNames.map(function (cacheName) {
if (currentCacheNames.indexOf(cacheName) === -1) {
return caches.delete(cacheName);
}
@ukmadlz
ukmadlz / head-tags.html
Created May 10, 2017 17:08
Cloudinary PWA React Blog
<!-- Make this a PWA -->
<link rel="manifest" href="/manifest.webapp">
<!-- Display -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="COLOR">
@ukmadlz
ukmadlz / complete-manifest.json
Created May 10, 2017 17:07
Cloudinary PWA React Blog
{
"name": "React Cloudinary Progressive Web App",
"short_name": "React PWA",
"description": "A React based web app to show how the tenets of Progressive Web Apps can improve your perceived performance.",
"icons": [
{
"src": "/images/icons/icon-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
@ukmadlz
ukmadlz / index.js
Last active May 8, 2017 00:20
Clever Cloudinary React Internals
'use strict';
import React from 'react';
import { CloudinaryContext, Image, Transformation } from 'cloudinary-react';
class CleverCloudinaryReact extends React.Component {
constructor(props) {
super(props);
// states
@ukmadlz
ukmadlz / ukmadlz.sh
Created March 4, 2017 01:15
ukmadlz npm module
npm install -g ukmadlz
ukmadlz
@ukmadlz
ukmadlz / reportble.sh
Last active January 23, 2017 13:41
BLE Scan
#!/bin/bash
DEVICEID=$(python -c 'open("/sys/class/net/eth0/address\").read()')
BLESCAN=$(~/ibeacon_scan);
curl -X POST -d $BLESCAN https://theinternet/parseble?deviceID=$DEVICEID
@ukmadlz
ukmadlz / Hackathons.md
Created December 13, 2016 15:58 — forked from AverageMarcus/Hackathons.md
Upcoming hackathons I've found in the UK. Feel free to comment with more.
@ukmadlz
ukmadlz / keybase.md
Created August 10, 2016 22:58
keybase.md

Keybase proof

I hereby claim:

  • I am ukmadlz on github.
  • I am elsmore (https://keybase.io/elsmore) on keybase.
  • I have a public key whose fingerprint is 9609 8752 4A53 C49E 8810 D56B 4D1C 2B11 E05B E2C5

To claim this, I am signing this object:

@ukmadlz
ukmadlz / datapalooze-history.md
Last active June 30, 2016 12:51
IBM Datapalooza UK Mashup - History
Opening Statement:
The most important thing EF has to attract more people to Cohorts are the current members, and the technology being born from work being done inside EF.
So the most important asset to promote, from an evangelist's point of view, is this tech and it's use cases to create a feedback cycle of improving the technology and garnering more interest in the given communities to join EF.
● Objectives
The short term goals for me would be to skill up on the current Cohorts technologies, those that they are producing and the systems they are relying on underneath. This is to be able to provide help where necessary, and to create a base of communities to reach out to that use the same or similiar tech.
It would also give me the opportunity to create compelling conference/meetup talks around the use cases these technologies are employed in, thus adding credibility to the outreach efforts.
This would be swiftly followed by repeating the process with alumni projects, and engaging with Alumni to see where t