Skip to content

Instantly share code, notes, and snippets.

Avatar

Tony Polinelli tonypee

  • Melbourne + San Francisco
View GitHub Profile
View schema.graphql
type Actor {
type: ActorType!
uid: String!
}
# actor type
enum ActorType {
WALL
USER
CLIENT_BOT
View schema.json
{
"__schema": {
"description": null,
"queryType": {
"name": "Query"
},
"mutationType": {
"name": "Mutation"
},
"subscriptionType": {
View schema.json
{
"__schema": {
"description": null,
"queryType": {
"name": "Query"
},
"mutationType": {
"name": "Mutation"
},
"subscriptionType": {
@tonypee
tonypee / tsx
Last active Jul 1, 2019
Alert for react-native-web with native-base
View tsx
import React from "react";
import { observable } from "mobx";
import { isWeb } from "../core/helpers";
import { Alert as NativeAlert, StyleSheet } from "react-native";
import {
Card,
Text,
View,
Header,
Content,
@tonypee
tonypee / layout.ts
Created Apr 20, 2018
Declaritive Flexible Layouts
View layout.ts
import * as React from 'react'
import * as css from 'csstips'
import { style } from 'typestyle'
import { classes } from './utils'
import { CLIENT_RENEG_LIMIT } from 'tls'
const defaultSpacing = 10
export const FlexContainer = props => {
if (!props.children) {
@tonypee
tonypee / .js
Created May 19, 2017
passport auth bearer
View .js
var express = require('express');
var app = express();
var passport = require('passport')
, BearerStrategy = require('passport-http-bearer').Strategy;
app.use(passport.initialize());
passport.serializeUser(function(user, done) {
done(null, user);
});
View Select.vue
<style scoped lang="less">
@import "../../styles/variables.less";
.select-container {
position: relative;
width: 210px;
&.invalid {
button {
border: 1px solid @color_error!important;
View .js
Searching: /search?q=clothing
[
{ tag: 'hat', count:15 },
{ tag: 'scarf', count:4 },
{ tag: 'shoes', count:5 },
]
Related tagsTag /related?tag=clothing
[
@tonypee
tonypee / gist:c2dcf22a1f3075e388fc0a7454a88ef6
Created Jul 5, 2016
Standalone Aurelia Reactive Collection
View gist:c2dcf22a1f3075e388fc0a7454a88ef6
/* eslint-disable */
/*
I wanted to remove all dependancies, and update to firebase v3
Forked from: https://github.com/PulsarBlow/aurelia-firebase/blob/master/dist/es6/configuration.js
*/
export class ReactiveCollection {
_query = null;