Skip to content

Instantly share code, notes, and snippets.

View mrzarkovic's full-sized avatar
🌴
On vacation

Milos Zarkovic mrzarkovic

🌴
On vacation
View GitHub Profile
@mrzarkovic
mrzarkovic / autoexec.cfg
Last active December 14, 2022 00:41
CSGO config
// Launch Options
// -tickrate 64 -novid -nojoy -high -freq 240 -refresh 240 -language bananagaming
net_graphproportionalfont 0.5
// 1. Hud
cl_disablefreezecam "1"
cl_showloadout 1
cl_mute_enemy_team 1
cl_hide_avatar_images 2
{
"code-runner.executorMap": {
"javascript": "node",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"php": "php",
"python": "/usr/bin/python3.7",
"perl": "perl",
{
"code-runner.executorMap": {
"javascript": "node",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"php": "php",
"python": "/usr/bin/python3.7",
"perl": "perl",
@mrzarkovic
mrzarkovic / sass-operators.css
Created October 29, 2018 12:45
SASS operators
article[role="main"] {
float: left;
width: 600px / 960px * 100%;
}
aside[role="complementary"] {
float: right;
width: 300px / 960px * 100%;
}
@mrzarkovic
mrzarkovic / sass-extend.css
Created October 29, 2018 12:44
SASS extend
.message {
border: 1px solid #ccc;
padding: 10px;
color: #333;
}
.success {
@extend .message;
border-color: green;
}
@mrzarkovic
mrzarkovic / sass-partials.css
Last active October 29, 2018 12:35
SASS partials
// _menu.scss
.menu {
background: red;
color: white;
& > ul {
& > li {
display: block;
}
@mrzarkovic
mrzarkovic / sass-mixin.css
Created October 29, 2018 12:33
SASS mixin css
.box {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-ms-border-radius: 10px;
border-radius: 10px;
}
@mrzarkovic
mrzarkovic / sass-mixin.scss
Created October 29, 2018 12:32
SASS mixin
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
border-radius: $radius;
}
.box {
@include border-radius(10px);
}
@mrzarkovic
mrzarkovic / sass-variables.scss
Created October 29, 2018 12:30
SASS variables
$primary-color: red;
$secondary-color: blue;
.link {
color: $primary-color;
&:hover {
color: $secondary-color;
}
}
@mrzarkovic
mrzarkovic / css-nesting.css
Created October 29, 2018 12:28
CSS nesting
.parent {
background: yellow;
}
.parent .childOne {
color: red;
}
/* This is child two */
.parent .childTwo {
color: blue;
}