Skip to content

Instantly share code, notes, and snippets.

View cdock1029's full-sized avatar
🏠
Working from home

Conor Dockry cdock1029

🏠
Working from home
View GitHub Profile
<link rel="import" href="../core-pages/core-pages.html">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@cdock1029
cdock1029 / my.css
Created May 15, 2017 19:25 — forked from anonymous/my.css
CSS Gradient Animation
background: linear-gradient(270deg, #f50029, #460098, #460098);
background-size: 600% 600%;
-webkit-animation: AnimationName 30s ease infinite;
-moz-animation: AnimationName 30s ease infinite;
-o-animation: AnimationName 30s ease infinite;
animation: AnimationName 30s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}

Keybase proof

I hereby claim:

  • I am cdock1029 on github.
  • I am cdock (https://keybase.io/cdock) on keybase.
  • I have a public key ASAAVCp4n9wyQWhCUU2jLaATS2ZH_MNei7XxSgVom_X8Qwo

To claim this, I am signing this object:

@cdock1029
cdock1029 / preact.config.js
Last active October 21, 2017 20:57
Example using styled-jsx with preact-cli default template
export default (config, env, helpers) => {
config.node = {process: 'mock'}
const {rule} = helpers.getLoadersByName(config, 'babel-loader')[0]
rule.options.plugins.splice(3, 0, 'styled-jsx/babel')
rule.options.plugins.splice(5, 0, 'styled-jsx/babel')
// console.log(JSON.stringify(rule.options.plugins, null, 2))
}
@cdock1029
cdock1029 / sensible-defaults.css
Created June 2, 2018 12:30 — forked from cesarandreu/sensible-defaults.css
Sensible css defaults taken from css-layout
div, span {
box-sizing: border-box;
position: relative;
display: flex;
flex-direction: column;
align-items: stretch;
flex-shrink: 0;
align-content: flex-start;
@cdock1029
cdock1029 / package.json
Created July 19, 2018 18:48 — forked from stefanjudis/package.json
Cached SQIP implementation on Netlify
{
"name": "sqip-cache-tryout",
"version": "1.0.0",
"description": "",
"main": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "stefan judis <stefanjudis@gmail.com>",
@cdock1029
cdock1029 / every-5-minutes.cron.yaml
Last active August 2, 2018 20:38 — forked from codyzu/every-5-minutes.cron.yaml
Kubernetes CronJob publishing to a PubSub topic
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: monthly-late-fee-rent
spec:
schedule: "0 6 1 * *"
jobTemplate:
spec:
template:
spec:
import React from 'react'
import { AnyValue } from 'react-values'
interface SharedProps<T> {
// defaultValue?: T
// value?: T
// onChange?(value: T): void
children(params: {
value: T
set(value: T): void
@cdock1029
cdock1029 / index.js
Created March 18, 2017 22:30
firebase-functions express.js path fix
const app = require('express')();
// define your routes, etc ...
exports.route = functions.https.onRequest((req, res) => {
// https://some-firebase-app-id.cloudfunctions.net/route
// without trailing "/" will have req.path = null, req.url = null
// which won't match to your app.get('/', ...) route