Skip to content

Instantly share code, notes, and snippets.

View nagos's full-sized avatar

Vladimir Yakovlev nagos

View GitHub Profile
@nagos
nagos / pyqt_todo.py
Created August 28, 2010 20:41
Простой todo на PyQT4
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import sys
from PyQt4 import QtGui
from PyQt4 import QtCore
item_count=10
class Todo(QtGui.QWidget):
sudo apt-get install git-core
git clone git://github.com/nagos/chromed_bird.git chromed_bird_ru
root@mini2440:/dev/shm# time pngread small.png
begin
Open
read
png_ptr
Init
info
jmpbuf
sig bytes
info2
#Angstrom bootstrap image
IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"
ANGSTROM_EXTRA_INSTALL ?= ""
DEPENDS = "task-base-extended \
psplash-zap \
esekeyd u-boot-utils tslib \
i2c-tools i2c screen rsync nfs-utils \
@nagos
nagos / ft_test.c
Created February 14, 2011 14:14
Пример чтения состояния ножек FT2232H в режиме MPSSE
/*
Пример быстрого чтения ножек FT2232H
Компилировать командой
gcc -Wall ft_test.c -l ftdi -o ft_test
Пример работы
nagos@VOLODJ:~/1$ ./ft_test
write: 1024
read: 1024
From ce21fbf37a816189d44d8f91844426a9faa7b129 Mon Sep 17 00:00:00 2001
From: Vladimir Yakovlev <nagos@inbox.ru>
Date: Sat, 7 Jul 2012 23:52:41 +0400
Subject: [PATCH] tools: Fix mingw tools build
mkenvimage does not build due to missed os_support.o and unsupported
file modes S_IRGRP S_IWGRP.
Tested with mingw 4.2.1 on ubuntu 12.04.
Signed-off-by: Vladimir Yakovlev <nagos@inbox.ru>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nagos
nagos / captcha_full.ipynb
Created November 15, 2017 09:55
Распознавание капчи на нейронных сетях
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nagos
nagos / log_parse.py
Created February 5, 2020 05:23
Python to InfluxDB transfer
#!/usr/bin/env python3
import sys
from influxdb import InfluxDBClient
def process(fname):
with open(fname) as infile:
json_body = []
for line in infile:
d = line.rstrip().split('\t')
<html>
<link rel="stylesheet" href="dist/vue-calendar-heatmap.css"/>
<script src="https://cdn.jsdelivr.net/npm/vue@2.1.6/dist/vue.js"></script>
<script src="dist/vue-calendar-heatmap.browser.js"></script>
<body>
<div id="example">
<calendar-heatmap :values="[{ date: '2020-9-22', count: 6 }]" end-date="2020-12-1"/>
</div>