Skip to content

Instantly share code, notes, and snippets.

View Razzwan's full-sized avatar
👽
Working from out of space

Pavel-i-tel Razzwan

👽
Working from out of space
View GitHub Profile

Keybase proof

I hereby claim:

  • I am razzwan on github.
  • I am pavel_i_tel (https://keybase.io/pavel_i_tel) on keybase.
  • I have a public key ASDqoctMupj2_sThKaMiS0fM0eE2XqOv14s8b2VBKWMGPAo

To claim this, I am signing this object:

import FormControl from '@material-ui/core/FormControl';
import FormHelperText from '@material-ui/core/FormHelperText';
import Input from '@material-ui/core/Input';
import InputLabel from '@material-ui/core/InputLabel';
import Select from '@material-ui/core/Select';
import uniqueId from 'lodash-es/uniqueId';
import * as React from 'react';
import { WrappedFieldInputProps, WrappedFieldProps } from 'redux-form';
const onChange = (input: WrappedFieldInputProps) => (event: React.ChangeEvent<HTMLSelectElement>) =>
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import cn from 'classnames'
import { loadScriptOnce } from 'helpers/loadScriptAsync'
import PlaySVG from 'app/components/SVGS/Play'
import './styles.scss'
const bc = 'wistia-video'
class DateRangeField extends Component {
state = {
focusedInput: null,
}
handleCorrectInput = e => {
// some additional staff
switch (keyButton) {
case 42:
// One more service, which do nothisn except create new instance with userId field
class oneSignalService {
async create(user, data) {
return this.repository.create<UserOneSignal>({
userId: user.id,
...data,
});
}
}
@Component()
export class MeService {
constructor() {}
async someMethod(user, data) {
// documented by sequelize, familiar to anyone who has read the library's documentation
await user.$create<UserOneSignal>('oneSignal', data);
}
async reusageInSecondPlace(user, data) {
@Razzwan
Razzwan / Component.js
Last active May 12, 2017 14:57
Component
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { View } from 'react-native'
class Component extends Component {
static propTypes = {
styles: PropTypes.object,
}
state = {
@Razzwan
Razzwan / last.html
Created May 4, 2017 18:17
OAuth registration/login
<!DOCTYPE html>
<html>
<head>
<script>
/*
The data is accessible in two ways:
1. Using the postMessage api, this window will respond to a
'message' event with a post of all the data. (This can
be used by browsers other than IE if this window was
opened with window.open())
'use strict'
import * as a from './_const'
export function loadUser () {
return {
type: a.LOAD_USER,
payload: {
client: 'default', // здесь указано, какой именно url будет использован как базовый (см store/clients/clientsMiddleware)
request: {
Request URL:http://ibsco.loc/entity/file?_format=hal_json
Request Method:POST
Status Code:403 Forbidden
Remote Address:127.0.0.1:80
Referrer Policy:no-referrer-when-downgrade