Skip to content

Instantly share code, notes, and snippets.


  • Ayogo Health Inc.
Block or report user

Report or block prescod

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View VSCode Debugging Configuration for CumulusCI
"name": "Python: CCI",
"type": "python",
"request": "launch",
"program": "/path/to/virtualenv/bin/cci",
"console": "integratedTerminal",
"pythonPath": "/path/to/virtualenv/bin/python",
"args": ["task", "run", "robot",
"-o", "suites", "./cumulusci/robotframework/tests/salesforce/api.robot"]
prescod / Datepicker.js
Created Mar 26, 2019
Datepicker issues.
View Datepicker.js
/* eslint-disable no-console, react/prop-types */
import React, { Component, useState } from 'react';
import logo from './logo.svg';
import './App.css';
import {IconSettings, Datepicker, Button} from '@salesforce/design-system-react';
class Example extends React.Component {
static displayName = 'DatepickerExample';
constructor(props) {
prescod / Type signature
Created Mar 25, 2019
Type signature from Flow and React
View Type signature
{|+AbstractComponent: type AbstractComponent<-Config, +Instance = mixed> = React$AbstractComponent<Config, Instance>, +Children: {+count: (children: ChildrenArray<any>) => number, +forEach: <T>(children: ChildrenArray<T>, fn: (child: T, index: number) => mixed, thisArg?: mixed) => void, +map: <T, U>(children: ChildrenArray<T>, fn: (child: $NonMaybeType<T>, index: number) => U, thisArg?: mixed) => Array<$NonMaybeType<U>>, +only: <T>(children: ChildrenArray<T>) => $NonMaybeType<T>, +toArray: <T>(children: ChildrenArray<T>) => Array<$NonMaybeType<T>>}, +ChildrenArray: type ChildrenArray<+T> = $ReadOnlyArray<ChildrenArray<T>> | T, +Component: class React$Component<Props, State = void>, +ComponentType: type ComponentType<-P> = React$ComponentType<P>, +ConcurrentMode: ({children: ?React$Node}) => React$Node, +Config: type Config<Props, DefaultProps> = React$Config<Props, DefaultProps>, +Context: type Context<T> = React$Context<T>, +DOM: any, +Element: type Element<+C> = React$Element<C>, +ElementConfig: type Elemen
prescod /
Created Mar 14, 2019
Weird filter attribute missing bug
import django_filters
class Xyzzy:
myfilter = django_filters.rest_framework.ChoiceFilter()
class Xyzzy(django_filters.rest_framework.FilterSet):
myfilter = django_filters.rest_framework.ChoiceFilter()
View gist:9445649
"metadata": {
"name": "",
"signature": "sha256:0843cdf949229008d5c2362c84a6d66cb70da9a0f72079a98cbeb0efe7c7404b"
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
"cells": [
You can’t perform that action at this time.