Skip to content

Instantly share code, notes, and snippets.

View test.rst

```plantuml @startuml

Alice -> Bob: Authentication Request Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request Alice <-- Bob: another authentication Response

@enduml ```

View test.md

before text

  • before item
  • to do
  • done
  • after item
  • test
  • [] test after text
View RNPhoneInput.m
#import <React/RCTBridgeModule.h>
#import <React/RCTViewManager.h>
@interface RCT_EXTERN_MODULE(RNPhoneInputSwift, RCTViewManager)
RCT_EXPORT_VIEW_PROPERTY(value, NSString);
@end
View CallVideoStream.js
/**
* Copyright 2017 dialog LLC <info@dlg.im>
* @flow
*/
import React, { PureComponent } from 'react';
type Props = {
className: string,
stream: MediaSource
View animate.js
/*
* Copyright 2017 dialog LLC <info@dlg.im>
* @flow
*/
/* eslint no-mixed-operators:0 */
type Config = {
start: number,
end: number,
View Selector.js
/**
* Copyright 2016 Dialog LLC <info@dlg.im>
* @flow
*/
import React, { Component } from 'react';
import Scroller from '../Scroller/Scroller';
import calculateCursor from '../../utils/calculateCursor';
import { KeyCodes } from './constants';
View markdown.txt
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Vestibulum ut erat hendrerit, euismod risus id, posuere justo.
> Aliquam eu erat ac elit laoreet sagittis faucibus id nunc.
> Sed lectus orci, egestas ac venenatis vitae, semper quis enim.
*Praesent* elit ex, _maximus_ quis mauris non, bibendum ornare odio.
Maecenas id lacus lacinia leo tempor sodales vel in quam. Donec consequat odio ligula, quis facilisis augue dictum sit amet. Quisque est est, lacinia quis velit quis, pretium venenatis mi. Aenean sed eros varius risus tempus iaculis. Maecenas nec dictum justo. Nunc pellentesque turpis ac enim varius luctus. Nam nisi turpis, placerat sollicitudin lacinia in, tempor at dolor. Curabitur massa sapien, ornare viverra urna non, consectetur ornare urna. Praesent vestibulum a magna vitae fringilla. In vel nulla aliquet, interdum velit quis, dapibus risus. Pellentesque nunc libero, scelerisque a ligula vitae, euismod volutpat nunc.
```
View react-addons-css-transition-group.js
/**
* @flow
*/
declare module 'react-addons-css-transition-group' {
declare type TransitionNameShort = {
enter?: string,
leave?: string,
active?: string
};
View redux-logger.d.ts
import { Middleware } from 'redux';
declare module 'redux-logger' {
type LoggerPredicate = (getState: () => any, action: any) => boolean;
type StateToString = (state: any) => string;
type ActionToString = (action: any) => string;
type ErrorToString = (error: any, prevState: any) => string;
interface ColorsObject {