This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.provider.Settings; | |
import com.facebook.react.bridge.ReactApplicationContext; | |
import com.facebook.react.bridge.ReactContext; | |
import com.facebook.react.bridge.ReactContextBaseJavaModule; | |
import com.facebook.react.bridge.ReactMethod; | |
import android.util.Log; | |
import android.net.Uri; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.<packagename>; | |
import com.facebook.react.ReactPackage; | |
import com.facebook.react.bridge.ReactApplicationContext; | |
import com.facebook.react.bridge.NativeModule; | |
import com.facebook.react.uimanager.ViewManager; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opaque type MediumDate: string = string; | |
utils.formatMediumDate = (d: DayJSable): MediumDate => { | |
dayjs(d).format('DD-MM-YYY'); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {type MediumDate} from './utils'; | |
const format = (d: DayJSable): MediumDate => { | |
dayjs(d).format('DD-MM-YYYY'); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fooProto = { | |
data: { | |
descriptor: 'bar' | |
}, | |
printDescriptor: () => console.log(this.data.descriptor), | |
}; | |
const foo1 = Object.create(fooProto); | |
const foo2 = Object.create(fooProto); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fooProto = { | |
data: { | |
descriptor: 'bar' | |
}, | |
printDescriptor: () => console.log(this.data.descriptor), | |
}; | |
const foo1 = Object.create(fooProto); | |
const foo2 = Object.create(fooProto); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import graphene | |
from graphene_django.types import DjangoObjectType | |
from core.models import Profile | |
class ProfileType(DjangoObjectType): | |
class Meta: | |
model = Profile | |
class ProfileMutation(graphene.Mutation): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import { Admin, Resource } from 'react-admin'; | |
import buildGraphQLProvider from 'ra-data-graphql'; | |
import ApolloClient from 'apollo-boost'; | |
import { buildQuery } from './buildQuery'; | |
import { uri } from './config'; | |
const client = ApolloClient({ uri }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
class Business(models.Model): | |
NORTH_AMERICA = "North America" | |
ASIA = "Asia" | |
AFRICA = "Africa" | |
SOUTH_AMERICA = "South America" | |
AUSTRALIA = "Australia" | |
LOCATION_CHOICES = ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import graphene | |
from graphene_django.types import DjangoObjectType | |
import core.models | |
class Profile(DjangoObjectType): | |
class Meta: | |
model = core.models.Profile |
OlderNewer