Skip to content

Instantly share code, notes, and snippets.

View LikiPiki's full-sized avatar

Sergey LikiPiki

  • Russia
View GitHub Profile
@LikiPiki
LikiPiki / .emacs
Created August 24, 2020 18:59
Evil emacs config
;; Delete selection
(delete-selection-mode t)
;; Disable GUI components
(tooltip-mode -1)
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(blink-cursor-mode -1)
(setq use-dialog-box nil)
from bs4 import BeautifulSoup
import urllib3
import time
url = 'https://yandex.ru/pogoda/saint-petersburg?lat=59.918474&lon=30.480931'
http = urllib3.PoolManager()
while True:
r = http.request('GET', url)
%include "io.inc"
section .data
space db ' ', 0
rs db 'Result is:', 10, 0
ph db 'Your array is:', 10, 0
min db 127
max db -128
mas db 0,0,0,0,0,0,0,0,0,0
@LikiPiki
LikiPiki / Lexa.c
Last active December 1, 2018 12:26
#include <stdio.h>
#include <stdlib.h>
int main() {
FILE *file;
file = fopen("text.txt", "r");
char buff[255];
char *pr;
int max = INT16_MIN;
%include "io.inc"
section .data
space db ' ', 0
db1 db 'deb', 0
rs db 'Result is:', 10, 0
ph db 'Your array is:', 10, 0
max_str db 'Enter max number', 10, 0
min_str db 'Enter min number', 10, 0
min db 0
cmake_minimum_required(VERSION 2.6)
project(laba)
set(CMAKE_CXX_STANDARD 11)
file(GLOB SRC "*.cpp" "*.h")
# FIND_PATH(SDL SDL2/SDL.h)
find_package(SDL2 REQUIRED)
message("find " ${SDL2})
@LikiPiki
LikiPiki / main.go
Created July 31, 2018 19:32
Golang route reuse
package main
import (
"encoding/json"
"net/http"
)
type Controller interface {
GetById(id int) (interface{}, error)
}
@LikiPiki
LikiPiki / main.vue
Created June 21, 2018 20:51
nigth fix cookie jwt
<template lang="pug">
.container
h1 {{msg}}
pre {{token}}
pre {{user}}
.row
.col-sm-6
.form
.form-group
input.form-control(v-model="user.username")
@LikiPiki
LikiPiki / package.json
Last active June 18, 2018 05:32
Webpack base config sass, autoprefixer, es6
{
"name": "packageName",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "webpack --mode=development"
},
"author": "",