Skip to content

Instantly share code, notes, and snippets.

AlexanderBukhtaty

Block or report user

Report or block AlexanderBukhtaty

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SassMeister-input.scss
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
/* Media query breakpoints */
$mw576: "(min-width: 576px)";
$mw768: "(min-width: 768px)";
$mw992: "(min-width: 992px)";
$mw1200: "(min-width: 1200px)";
@AlexanderBukhtaty
AlexanderBukhtaty / SassMeister-input.scss
Created Mar 27, 2018
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
@mixin response-rule($property, $defaultValue, $responsiveValues) {
& {
#{$property}: $defaultValue;
}
@each $media, $value in $responsiveValues {
@AlexanderBukhtaty
AlexanderBukhtaty / generation-font-styles-mixin.scss
Created Oct 11, 2017
Миксин для генерации правил шрифтов
View generation-font-styles-mixin.scss
$fonts-list: "DINPro-Regular" "DINPro-Bold" "DINPro-Medium";
@mixin gen-fonts {
@each $font in $fonts-list{
@font-face {
font-family: '#{$font}';
src: url('../fonts/#{$font}.eot'); /* IE9 Compat Modes */
src: url('../fonts/#{$font}.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/#{$font}.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/#{$font}.woff') format('woff'), /* Pretty Modern Browsers */
@AlexanderBukhtaty
AlexanderBukhtaty / SassMeister-input.scss
Last active Mar 27, 2018
Миксин для адаптивности конкретного поля (автоматический умножается на кофицент)
View SassMeister-input.scss
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
@function _length($number, $unit) {
$strings: 'px' 'cm' 'mm' '%' 'ch' 'pica' 'in' 'em' 'rem' 'pt' 'pc' 'ex' 'vw' 'vh' 'vmin' 'vmax';
$units: 1px 1cm 1mm 1% 1ch 1pica 1in 1em 1rem 1pt 1pc 1ex 1vw 1vh 1vmin 1vmax;
$index: index($strings, $unit);
@AlexanderBukhtaty
AlexanderBukhtaty / usefull_mixins.scss
Last active Jun 15, 2017
Полезные миксины
View usefull_mixins.scss
/*********************************************************STRING REPLACE************************************************************/
@function str-replace($string, $search, $replace: '') {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
}
@return $string;
}
View Counter.js
function Counter(start) {
var count = start;
var timer;
var timerDelay = 1000;
return {
increment: function(){
count++;
},
start: function(){
if(timer == undefined){
@AlexanderBukhtaty
AlexanderBukhtaty / component-no-work.css
Last active Jan 23, 2017
Класс для указания поверх компонента, что то не работает.
View component-no-work.css
.no-work:before {content: '';display: block;width: 100%;height: 100%;background-color: rgba(3,3,3,0.5);z-index: 10;position: absolute;left: 0;right: 0;top:0;}
.no-work:after {content:"Компонент времено не работает!";display:block;position: absolute;top:50%;transform:translateY(-50%); z-index:11;font-size:40px;color:#fff;left:0;right:0;text-align: center;}
@AlexanderBukhtaty
AlexanderBukhtaty / mixin-responsive-output.css
Last active Dec 28, 2016
Адаптация только CSS-правила
View mixin-responsive-output.css
.class1 {
padding: #333;
}
@media (min-width: 320px) {
.class1 {
padding: 10px;
}
}
@media (min-width: 480px) {
.class1 {
View Docker commands.md

Images

docker rmi $(docker images -q) //Delete all images (Удаление всех образов)

Containers

docker rm $(docker ps -a -q) //Delete all containers (Удаление всех контейнеров)

@AlexanderBukhtaty
AlexanderBukhtaty / MSRA cmd tips.md
Last active Jan 12, 2016
Удаленный помощник Windows
View MSRA cmd tips.md

Работа с удаленным помошником через консоль

windows XP:(Откроется окно для ввода ip-адреса)

C:\Windows\pchealth\helpctr\binaries\helpctr.exe /url hcp://CN=Microsoft%20Corporation,L=Redmond,S=Washington,C=US/Remote%20Assistance/Escalation/Unsolicited/UnSolicitedRCUI.htm

Windows Vista:(Откроется окно удаленной помощи)

C:\Windows\System32\msra.exe /expert
You can’t perform that action at this time.