Skip to content

Instantly share code, notes, and snippets.

View pierre-H's full-sized avatar
🇫🇷
Cultive son jardin

Pierre pierre-H

🇫🇷
Cultive son jardin
  • Strasbourg, France
View GitHub Profile
@pierre-H
pierre-H / index.d.ts
Last active December 9, 2020 13:30
Expo TypeScript Definitions
declare module 'Expo' {
import { EventSubscription } from 'fbemitter';
import { Component } from 'react';
import { ViewStyle, ViewProperties, ColorPropType } from 'react-native';
/**
* Expo Accelerometer
*/
export namespace Accelerometer {
// TODO: good export type of x, y and z
@pierre-H
pierre-H / declarations.d.ts
Created January 23, 2017 09:12
Admin On Rest - Typescript declaration
declare module 'admin-on-rest' {
function jsonServerRestClient(url: string): Promise<{type: string, resource: string, param: {}}>;
class Admin extends React.Component<{
restClient: Promise<{type: string, resource: string, param: {}}>,
title ?: string,
dashboard?: React.Component<void, void>,
theme?: __MaterialUI.Styles.MuiTheme,
appLayout?: React.Component<void, void>
}, void> {}
@pierre-H
pierre-H / index.html
Last active August 24, 2016 15:36
JQuery : conditional field depending on another field
<form>
<select id="my-select">
<option value="1">1</option>
<option value="2">2</option>
</select>
<input type="text" data-conditional="my-select" data-conditional-on="1" />
</form>