Skip to content

Instantly share code, notes, and snippets.

View ispyinternet's full-sized avatar

Richard O'flynn ispyinternet

View GitHub Profile
@ispyinternet
ispyinternet / gist:2a985ee6590ddc2ef3ec
Last active August 29, 2015 14:04
extend app transitions
Y.mix(Y.Transition.fx, {
'app:slideUp': {
duration : .6,
transform: 'translateY(-100%)',
on: {
start: function () {
this.setStyles({
opacity : 1,
transform: 'translateY(0%)'
@ispyinternet
ispyinternet / gist:eeb0ba08a7e5914efab5
Last active January 22, 2016 01:13
Cloud Config to boot rancher-agent on AWS RancherOS
#cloud-config
write_files:
- path: /etc/rc.local
permissions: "0755"
owner: root
content: |
#!/bin/bash
for i in {1..20}
do
docker info && break
@ispyinternet
ispyinternet / gist:9dc7395f958e160be84c
Last active March 7, 2016 10:44
DI Woes in angluar2
import sharedClass from 'sharedClass';
import childComponent from 'childComponent';
import serviceClass from 'serviceClass';
@Component({
selector: 'comp1',
providers: [sharedClass,childComponent,serviceClass],
template: '<h1>{title}</h1>'
})
.DS_Store
node_modules
<!-- App.html -->
<h1>Hello {{$name}}!</h1>
<Foo/>
<script>
import Foo from './Foo.html';
export default {
components: { NameInput }
};
---
AWSTemplateFormatVersion: "2010-09-09"
Description: "Create a Lambda function that will take a comma seperated list of key=value pairs and return an array of key value pairs that can then be used in cloudformation tags resource parameter"
Resources:
LambdaExecutionRole:
Type: AWS::IAM::Role
Properties:
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
@ispyinternet
ispyinternet / request.json
Created August 14, 2018 02:49
sapper request
{
"page": {
"pattern": {},
"parts": [null, {
"name": "blog_$slug",
"component": {
"filename": "/home/richard/TestCognito/Project/Server/Cognito/routes/blog/[slug].html",
"css": {
"code": ".content.svelte-gnxal1 h2{font-size:1.4em;font-weight:500}.content.svelte-gnxal1 pre{background-color:#f9f9f9;box-shadow:inset 1px 1px 5px rgba(0,0,0,0.05);padding:0.5em;border-radius:2px;overflow-x:auto}.content.svelte-gnxal1 pre code{background-color:transparent;padding:0}.content.svelte-gnxal1 ul{line-height:1.5}.content.svelte-gnxal1 li{margin:0 0 0.5em 0}",
"map": "{\"version\":3,\"file\":\"[slug].html\",\"sources\":[\"[slug].html\"],\"sourcesContent\":[\"<svelte:head>\\n\\t<title>{post.title}</title>\\n</svelte:head>\\n\\n<h1>{post.title}</h1>\\n\\n<div class='content'>\\n\\t{@html post.html}\\n</div>\\n\\n<style>\\n\\t/*\\n\\t\\tBy default, CSS is locally scoped to the component,\\n\\t\\tand any unused styles are dead-code-eliminated.\\n\\t\\tIn this page, Svelte can't know which elements
@ispyinternet
ispyinternet / request.json
Created August 14, 2018 02:49
sapper request
{
"page": {
"pattern": {},
"parts": [null, {
"name": "blog_$slug",
"component": {
"filename": "/home/richard/TestCognito/Project/Server/Cognito/routes/blog/[slug].html",
"css": {
"code": ".content.svelte-gnxal1 h2{font-size:1.4em;font-weight:500}.content.svelte-gnxal1 pre{background-color:#f9f9f9;box-shadow:inset 1px 1px 5px rgba(0,0,0,0.05);padding:0.5em;border-radius:2px;overflow-x:auto}.content.svelte-gnxal1 pre code{background-color:transparent;padding:0}.content.svelte-gnxal1 ul{line-height:1.5}.content.svelte-gnxal1 li{margin:0 0 0.5em 0}",
"map": "{\"version\":3,\"file\":\"[slug].html\",\"sources\":[\"[slug].html\"],\"sourcesContent\":[\"<svelte:head>\\n\\t<title>{post.title}</title>\\n</svelte:head>\\n\\n<h1>{post.title}</h1>\\n\\n<div class='content'>\\n\\t{@html post.html}\\n</div>\\n\\n<style>\\n\\t/*\\n\\t\\tBy default, CSS is locally scoped to the component,\\n\\t\\tand any unused styles are dead-code-eliminated.\\n\\t\\tIn this page, Svelte can't know which elements
@ispyinternet
ispyinternet / page.json
Created August 14, 2018 03:03
sapper (working)
{
"page": {
"pattern": {},
"parts": [null, {
"name": "blog_$slug",
"component": {
"filename": "/home/richard/TestCognito/Project/Server/Cognito/routes/blog/[slug].html",
"css": {
"code": ".content.svelte-gnxal1 h2{font-size:1.4em;font-weight:500}.content.svelte-gnxal1 pre{background-color:#f9f9f9;box-shadow:inset 1px 1px 5px rgba(0,0,0,0.05);padding:0.5em;border-radius:2px;overflow-x:auto}.content.svelte-gnxal1 pre code{background-color:transparent;padding:0}.content.svelte-gnxal1 ul{line-height:1.5}.content.svelte-gnxal1 li{margin:0 0 0.5em 0}",
"map": "{\"version\":3,\"file\":\"[slug].html\",\"sources\":[\"[slug].html\"],\"sourcesContent\":[\"<svelte:head>\\n\\t<title>{post.title}</title>\\n</svelte:head>\\n\\n<h1>{post.title}</h1>\\n\\n<div class='content'>\\n\\t{@html post.html}\\n</div>\\n\\n<style>\\n\\t/*\\n\\t\\tBy default, CSS is locally scoped to the component,\\n\\t\\tand any unused styles are dead-code-eliminated.\\n\\t\\tIn this page, Svelte can't know which elements
@ispyinternet
ispyinternet / gist:18aaa337ba044668c9dcf160cf6f6eb6
Created May 1, 2019 09:14
sapper / aws-serverless-express
'use strict'
process.env.SAPPER_DEST = __dirname + "/__sapper__/build";
import app from './__sapper__/build/server/server.js';
import awsServerlessExpress from 'aws-serverless-express';
exports.handler = (event, context) => {
console.log(event);