Skip to content

Instantly share code, notes, and snippets.

View 1271's full-sized avatar
πŸ’“
I want uppy!

Sergei Zharkov 1271

πŸ’“
I want uppy!
View GitHub Profile
@1271
1271 / PCdisplay_v_1.3_1602_nano_168.ino
Last active January 23, 2018 12:32
PCdisplay_v_1.3_1602
#define DRIVER_VERSION 1 // 0 - ΠΌΠ°Ρ€ΠΊΠΈΡ€ΠΎΠ²ΠΊΠ° Π΄Ρ€Π°ΠΉΠ²Π΅Ρ€Π° кончаСтся Π½Π° 4АВ, 1 - Π½Π° 4Π’
// ------------------------ ΠΠΠ‘Π’Π ΠžΠ™ΠšΠ˜ ----------------------------
// ----------------------- ПИНЫ ---------------------------
#define BTN1 A3 // пСрвая ΠΊΠ½ΠΎΠΏΠΊΠ°
#define BTN2 A2 // вторая ΠΊΠ½ΠΎΠΏΠΊΠ°
// ----------------------- ПИНЫ ---------------------------
// -------------------- Π‘Π˜Π‘Π›Π˜ΠžΠ’Π•ΠšΠ˜ ---------------------
#include <OneWire.h> // Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠ° ΠΏΡ€ΠΎΡ‚ΠΎΠΊΠΎΠ»Π° Π΄Π°Ρ‚Ρ‡ΠΈΠΊΠΎΠ²
@1271
1271 / kernel.sh
Last active August 1, 2019 07:51
ubuntu linux kernel autoupdater
#!/usr/bin/env bash
if [[ $# -eq 0 ]]; then
echo "Version not recieve" 2>&1
echo "Example: $0 v3.11.2 l" 2>&1
echo "Example: $0 v3.11.2" 2>&1
exit 1
fi
if [[ $EUID -ne 0 ]]; then
@1271
1271 / ipk.py
Created December 28, 2017 21:23
ipk openwrt downloader
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from requests import get
from lxml.html import document_fromstring
from os import path, makedirs
try:
import progressbar # pip install progressbar2
bar = progressbar.ProgressBar()
_bar = None
@1271
1271 / conda.md
Created November 20, 2017 10:38
Conda py3.5 qt4
https://www.anaconda.com/download/
conda create -n oldpyqt pyqt=4
conda install -c acellera -n oldpyqt pyinstaller
<script>
function downloadPack() {
fetch("https://api.github.com/repos/yuru-yuri/Manga-Downloader/releases/latest")
.then(response => response.json())
.then((out) => {
// Initiate the download.
document.querySelector("#without-html5-").innerHTML="<a href='"+out.zipball_url+"'>Click here if the download didn't start automatically.</a>";
window.location.assign(out.zipball_url);
});
@1271
1271 / gist:7ee295d97071ea046077b0faf8391524
Created September 26, 2017 19:14 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@1271
1271 / Image.cpp
Created August 27, 2017 21:50 — forked from roxlu/Image.cpp
stbi image loading, super clean png/jpg/psd/hdr loading.
#include <roxlu/experimental/Image.h>
namespace roxlu {
Image::Image()
:width(0)
,height(0)
,pixels(NULL)
{
}
@1271
1271 / gist:56e030604544e881ca1caf513c8561b7
Created January 20, 2017 13:33 — forked from alimd/gist:3344523
All github Emoji (Smiles)

All github Emoji (Smiles)

ali.md/emoji

:bowtie: | πŸ˜„ | πŸ˜† | 😊 | πŸ˜ƒ | ☺️ | 😏 | 😍 | 😘 | :kissing_face: | 😳 | 😌 | πŸ˜† | 😁 | πŸ˜‰ | :wink2: | πŸ‘… | πŸ˜’ | πŸ˜… | πŸ˜“

😩 | πŸ˜” | 😞 | πŸ˜– | 😨 | 😰 | 😣 | 😒 | 😭 | πŸ˜‚ | 😲 | 😱 | :neckbeard: | 😫 | 😠 | 😑 | 😀 | πŸ˜ͺ | πŸ˜‹ | 😷

😎 | 😡 | πŸ‘Ώ | 😈 | 😐 | 😢 | πŸ˜‡ | πŸ‘½ | πŸ’› | πŸ’™ | πŸ’œ | ❀️ | πŸ’š | πŸ’” | πŸ’“ | πŸ’— | πŸ’• | πŸ’ž | πŸ’˜ | ✨

http://shields.io/
@1271
1271 / gunter.sh
Last active December 4, 2019 14:37
#!/bin/bash
if [ $# -gt 0 ]
then
max=$1
max=$(( $max + 1 ))
else
max=200
fi