Skip to content

Instantly share code, notes, and snippets.

elexfreeman

Block or report user

Report or block elexfreeman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SeekableFileReader.php
<?php
class SeekableFileReader {
/* указатель на файл */
private $handle;
/* длина файла (кол-во строк)*/
private $fileLength = 0;
/* массив позиций для ф-и fseek() */
private $seekArr = [];
/* текущая позиция */
View likes.sql
-- таблица категорий
-- индексное поле только PRIMARY KEY
CREATE TABLE IF NOT EXISTS `category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
-- таблица лайков
-- индексное поле PRIMARY KEY
View EmailData.php
<?php
/* тут подключения к базе и т.д. */
/* лучше такую обработку делать на C++ */
/* php будет трудно работать с памятью, может течь */
class EmailData {
/* список доменов */
/* $domain['gmail.com'] = 20; */
@elexfreeman
elexfreeman / Component.jsx
Created Nov 13, 2018 — forked from krambertech/Component.jsx
ReactJS: Input fire onChange when user stopped typing (or pressed Enter key)
View Component.jsx
import React, { Component } from 'react';
import TextField from 'components/base/TextField';
const WAIT_INTERVAL = 1000;
const ENTER_KEY = 13;
export default class TextSearch extends Component {
constructor(props) {
super();
View angular5post.ts
export interface Review {
id: number,
published: number,
date: string,
review: string,
user_img: string,
username: string
}
You can’t perform that action at this time.