Skip to content

Instantly share code, notes, and snippets.

🏠
аааа

jgfhkjtdyj zhepa

🏠
аааа
Block or report user

Report or block zhepa

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
@zhepa
zhepa / VK album Download.js
Last active Jul 22, 2018
Скачать альбом ВКонтакте бесплатно
View VK album Download.js
const fs = require('fs');
const https = require('https');
const settings = {
albumId: 123,
token: 'сосать жопу'
};
https.get(`https://api.vk.com/method/photos.get?photo_sizes=1&album_id=${settings.albumId}&access_token=${settings.token}&v=5.70`, res => {
View ass.js
function formatTimestamp(ts) {
var now = new Date()
var dif = timestamp() - ts
if (dif <= 30) return "только что"
else if (dif < 60) return "30 секунд назад"
else if (dif < 120) return "минуту назад"
else if (dif < 180) return "две минуты назад"
else if (dif < 240) return "три минуты назад"
else if (dif < 300) return "четыре минуты назад"
View .css
# Body
?path: /.+/.+
body: //article[@class="readable-container"]
body: //div[has-class("entry-content")]
body: //div[@class="top-video"]/div[@class="container"]
body: //div[has-class("conteudo_post")]
# Title
title: //h1[has-class("entry-title") and text()]
View getLinesNumber.cpp
stock getLinesNumber(string[], max_line_len)
{
new lines = 1;
for(new i, line_len, word_len, bool:tilda; string[i] != EOS; i++)
{
if(tilda)
{
if(string[i] == 'n')
{
line_len = 0;
View aaaa.cpp
#include <stdio.h>
#include <math.h>
int i, j, A[5][10], counter[2], result[2];
void main(void)
{
randomize();
for(i = 0; i < 5; i++)
{
for(j = 0; j < 10; j++) A[i][j] = random(10) * (random(2) == 1?1:-1);
View voleen.c
#include <stdio.h>
#include <string.h>
int i, n, point;
char s[] = "100.14889878";
void main(void)
{
for(i = 0; i < strlen(s); i++)
{
View seedorov.c
#include <stdio.h>
#include <string.h>
#define MAX_WORDS 10
char word[MAX_WORDS + 1][32], string[256];
int start_pos = -1, count, i, j;
void main(void)
{
printf("Введи строку: ");
View seedorov.c
#include <stdio.h>
#include <stdlib.h>
#define rows 4
#define lines 3
int i, j, A[lines][rows];
void main(void)
{
system("cls");
@zhepa
zhepa / xyu2.c
Last active May 24, 2016
output something with sort
View xyu2.c
#include <stdio.h>
#include <stdlib.h>
#define MAX_PEOPLE 32
struct
{
char name[16], surname[16];
int age;
}
@zhepa
zhepa / xyu.c
Created May 24, 2016
output something
View xyu.c
#include <stdio.h>
#include <stdlib.h>
struct human
{
char name[16], surname[16];
int age;
}
void main(void)
You can’t perform that action at this time.