Skip to content

Instantly share code, notes, and snippets.

View tonypee's full-sized avatar

Tony Polinelli tonypee

  • Australia + San Francisco
View GitHub Profile
type Actor {
type: ActorType!
uid: String!
}
# actor type
enum ActorType {
WALL
USER
CLIENT_BOT
{
"__schema": {
"description": null,
"queryType": {
"name": "Query"
},
"mutationType": {
"name": "Mutation"
},
"subscriptionType": {
{
"__schema": {
"description": null,
"queryType": {
"name": "Query"
},
"mutationType": {
"name": "Mutation"
},
"subscriptionType": {
@tonypee
tonypee / tsx
Last active July 1, 2019 22:10
Alert for react-native-web with native-base
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 April 20, 2018 07:27
Declaritive Flexible Layouts
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 08:09
passport auth bearer
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);
});
<style scoped lang="less">
@import "../../styles/variables.less";
.select-container {
position: relative;
width: 210px;
&.invalid {
button {
border: 1px solid @color_error!important;
@tonypee
tonypee / .js
Last active December 21, 2016 03:35
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 July 5, 2016 15:49
Standalone Aurelia Reactive Collection
/* 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;