Skip to content

Instantly share code, notes, and snippets.

@kichMan
kichMan / bluepill.cfg
Created July 16, 2019 20:48 — forked from hemalchevli/bluepill.cfg
OpenOCD config file for Bluepill STM32F103C8T6
#source [find interface/stlink-v2-1.cfg]
source [find interface/stlink-v2.cfg]
transport select hla_swd
source [find target/stm32f1x.cfg]
#reset_config srst_only
reset_config none separate
@kichMan
kichMan / Makefile
Last active July 1, 2022 21:17
ATtiny10. Hello World!
MCU=attiny10
PROG=avrispmkii
.PHONY: all flash build download clean
all: build
flash: build download clean
build:
@kichMan
kichMan / Makefile
Last active April 21, 2018 10:37
Project build for ATmega
MCU=m168p
MMCU=atmega168pa
DEVICE=avrisp2
.PHONY: all flash build download clean
all: build
flash: build download clean
@kichMan
kichMan / INSTALL_CUSTOM
Created February 17, 2018 23:23
Скрипт для удобной установки FlatCam в Linux Mint (@source http://www.linuxmint.ro/install/flatcam)
#!/bin/bash
DOWNLOAD_PATH=$(xdg-user-dir DOWNLOAD)
FLATCAM_ZIP="FlatCAM-8.5.zip"
echo Descarcare FlatCAM 8.5...
wget -cq https://bitbucket.org/jpcgt/flatcam/downloads/$FLATCAM_ZIP -P $DOWNLOAD_PATH
echo Instalare FlatCAM...
sudo unzip -o $DOWNLOAD_PATH/$FLATCAM_ZIP -d /opt/
@kichMan
kichMan / uart_const.h
Created June 18, 2017 13:22
Attiny13A UART TX
/*
* uart_const.h
*
* Created: 18.06.2017 14:45:02
* Author: kich
*/
#ifndef UART_CONST_H_
#define UART_CONST_H_
@kichMan
kichMan / format.js
Last active July 1, 2022 21:20
JavaScript HEX to ASCII
/**
* HEX to ASCII
*/
function hex2a(hexx) {
var hex = hexx.toString();//force conversion
var str = '';
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16));
return str;
}
@kichMan
kichMan / style.less
Created May 20, 2016 08:35
Одноуровневые хлебные-крошки c флексом
.module_bread_crumbs {
position: relative;
box-sizing: border-box;
font: normal 11px Tahoma, sans-serif;
padding-bottom: 5px;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
@kichMan
kichMan / ruler.css
Last active September 13, 2015 12:30
@desc Элемент линейки с ценой деления (только на HTML+CSS)
/**
* Стилизация линейки
* @author //github.com/kichman
* @example //jsfiddle.net/kichMan/9qLqy1ae/embedded/result/
*/
.ui_ruler {
position: relative;
box-sizing: border-box;
margin: 20px auto 0;
height: 40px;
@kichMan
kichMan / module_charts_pie.html
Created January 13, 2015 15:07
Круговая диаграмма
<div class="module_charts_pie" data-percent="{base:if-else($percent, $percent, 0)}">
<div class="pie_charts_progress">
<div class="pie_charts_fill" />
</div>
<div class="pie_charts_wrapper" />
</div>
@kichMan
kichMan / fonts.css
Last active August 29, 2015 14:05
CSS perfect include font
/**
* @description Подключение шрифтов с приоритетом *.svg формата
*/
@font-face {
font-family: 'Font Name';
src: url(font_src.eot);
src: url(font_src.eot?#iefix) format('embedded-opentype'),
url(font_src.svg#font_id) format('svg'),
/**
* Здесь можно указывать остальные форматы