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
// Type definitions for react-table 7 | |
// Project: https://github.com/tannerlinsley/react-table#readme | |
// Definitions by: Grsmto <https://github.com/grsmto> | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
// TypeScript Version: 3.0 | |
declare module "react-table" { | |
export type Cell = { | |
render: (type: string) => any; | |
getCellProps: () => any; | |
column: Column; |
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 { createRequestTypes } from 'utils/actionHelpers'; | |
import { typeValidator } from 'utils/typeValidator'; | |
import { createAction } from 'redux-actions'; | |
import { createApiCall } from 'utils/api'; | |
//region ACTION TYPES | |
const tokenTypes = { | |
SIGN_IN: createRequestTypes('SIGN_IN'), | |
SIGN_OUT: 'SIGN_OUT', | |
UPDATE_TOKEN: 'UPDATE_TOKEN', |
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
<?php | |
/** | |
* Filter stop words in the given array of words. | |
* | |
* @param array $words Array of words to filter. | |
* @return array | |
* New array with filtered words (replaced with asterisks). | |
*/ | |
function filter_stop_words($words) { |
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
<?php | |
/** | |
* Class Account | |
*/ | |
class Account { | |
private $uid; | |
private $name; | |
private $surname; | |
private $email; |
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
<?php | |
/** Add/Edit Form | |
*/ | |
function MYMOD_formid_form($form, $form_state){ | |
$form['event'] = array( | |
'#title' => t('Event'), | |
'#type' => 'select', | |
'#empty_option' => '', | |
'#options' => $event_options, // доступные варианты | |
'#ajax' => array( |
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
<?php | |
function parse_header($file) { | |
$header = array(); | |
$header['requested_precissing_date'] = fread($file, 6); | |
$header['benef_bank_clearing_no'] = fread($file, 12); | |
$header['output_sequence_number'] = fread($file, 5); | |
$header['creation_date'] = fread($file, 6); | |
$header['order_bank_clearing_no'] = fread($file, 7); | |
$header['data_file_ident'] = fread($file, 5); | |
$header['entry_sequence_nubmer'] = fread($file, 5); |