Skip to content

Instantly share code, notes, and snippets.

View melopilosyan's full-sized avatar

Meliq Pilosyan melopilosyan

View GitHub Profile
@melopilosyan
melopilosyan / booleans.md
Last active May 22, 2019 16:32
Booleans are Easy - True or False?

Boolean Transformations

x || !x == true                         # Tautology
x && !x == false                        # Contradiction
true && x == x                          # Identity law
false || x == x                         # Identity law
true || x == true                       # Nullification law
false && x == false                     # Nullification law
x && x == x                             # Idempotent law
x || x == x                             # Idempotent law
@melopilosyan
melopilosyan / custom-horizontal-scrollbar.css
Created March 16, 2017 14:42
Change horizontal scrollbar appearance
&::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
background-color: #F5F5F5;
border-radius: $ip-scrollbar-height;
}
&::-webkit-scrollbar{
height: $ip-scrollbar-height;
background-color: #F5F5F5;
}
@melopilosyan
melopilosyan / js_strings_reverse.html
Last active June 22, 2016 16:50
String reverse functions in JavaScript with ability to compare speeds within current browser
<html>
<head>
<style>
table {
border-collapse: collapse;
}
th {
padding: 5px;
}
td {