This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Micro clearfix*/ | |
.clearfix | |
{ | |
&:before, | |
&:after | |
{ | |
display: table; | |
content: ""; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getRandomRGBA (_alpha){ | |
function random(){ | |
return (0 + Math.random()*(255+1-0))^0; | |
} | |
return random() + ',' + random() + ',' + random() + ',' + (_alpha || 1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @description Особенность данного метода в том, что позволяет повесить акцессор | |
* на метод без создания нового события (Event) и слушателя | |
* к нему (addEventListener) | |
* | |
* При этом, выгода заключается в сохранении метода, | |
* ранее назначенного через свойство. | |
*/ | |
(function(){ | |
var fn = document.onclick; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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'), | |
/** | |
* Здесь можно указывать остальные форматы |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Стилизация линейки | |
* @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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* uart_const.h | |
* | |
* Created: 18.06.2017 14:45:02 | |
* Author: kich | |
*/ | |
#ifndef UART_CONST_H_ | |
#define UART_CONST_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/ |
OlderNewer