I hereby claim:
- I am desulaid on github.
- I am desulaid (https://keybase.io/desulaid) on keybase.
- I have a public key ASAJ5eZ7dqc0ysHKwb7K5V9VwznnHF_qXcU6Wv4V4FOJfAo
To claim this, I am signing this object:
require 'net/http' | |
require 'date' | |
class NoVKAPI | |
attr_accessor :file | |
# Инициализация нового пользователя | |
def initialize(id) | |
uri = URI("https://vk.com/foaf.php?id=#{id}") | |
@file = Net::HTTP.get(uri) |
import re | |
text = input('Введите строку: ') | |
count = len(re.findall(r"\w+", text)) | |
print(f'Количество слов: {count}') |
#include <iostream> | |
#include <regex> | |
#include <string> | |
int main() | |
{ | |
std::string text; | |
std::regex exp("\\w+"); | |
std::smatch match; |
program regex; | |
uses | |
RegExpr; | |
var | |
re:TRegExpr; | |
count:Integer; | |
text:String; |
#!/usr/bin/env python3 | |
from time import sleep | |
from requests import post | |
from time import localtime | |
from time import strftime | |
from re import findall | |
class Vk: | |
def __init__(self, access_token): |
#include <stdio.h> | |
void test(int (*heh)(const char *str, ...)); | |
int main() { | |
int (*addr)(const char *str, ...) = &printf; | |
test(addr); | |
} | |
void test(int (*heh)(const char *str, ...)) { |
#define dialog%0\32;%1(%2) \ | |
public dlg_%1(%2); \ | |
public dlg_%1(%2) | |
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { | |
new | |
func[32] = "dlg_", | |
dlgid[6]; | |
valstr(dlgid, dialogid); |
I hereby claim:
To claim this, I am signing this object:
import requests | |
import re | |
import time | |
import os | |
def get_date_foaf(id): | |
""" | |
Функция get_date_foaf возвращает True, если пользователь существует, а иначе - False. | |
При вызове она создает в папке vk файл с id пользователя. | |
В файле есть дата и время регистрации в вк. |
#ifndef INI_HPP | |
#define INI_HPP | |
#include <map> | |
#include <regex> | |
#include <string> | |
#include <fstream> | |
#include <iostream> | |
class ini_document { |