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
# Ubuntu | |
sudo service apache2 start | |
sudo service apache2 stop | |
sudo service apache2 restart | |
# CentOS 7.x or newer | |
sudo systemctl start httpd.service | |
sudo systemctl stop httpd.service | |
sudo systemctl restart httpd.service |
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: Rizky Syazuli <br4inwash3r@gmail.com> | |
* This code snippet is used to show live IDR estimate of your crypto assets in Bitcoin.co.id | |
* Used as a bookmarklet. Go here to do convert any JS snippets into a bookmarklet: https://bookmarkify.it | |
*/ | |
if (window.location.href !== 'https://vip.bitcoin.co.id/market') { | |
alert(`Your're not in VIP spot market page`); | |
} |
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
@mixin size($width, $height: $width) { | |
width: $width; | |
height: $height; | |
} |
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
@mixin position($position, $args) { | |
@each $o in top right bottom left { | |
$i: index($args, $o); | |
@if $i and $i + 1 <= length($args) and type-of(nth($args, $i + 1)) == number { | |
#{$o}: nth($args, $i + 1); | |
} | |
} | |
position: $position; | |
} |
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
@mixin css-triangle($triangle-size, $triangle-color, $triangle-direction) { | |
content: ""; | |
display: block; | |
width: 0; | |
height: 0; | |
border: inset $triangle-size; | |
@if ($triangle-direction == top) { | |
border-color: $triangle-color transparent transparent transparent; | |
border-top-style: solid; |
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
@mixin clearfix { | |
*zoom:1; | |
&:before, &:after { content: " "; display: table; } | |
&:after { clear: both; } | |
} |
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
/** | |
* Extending Paul Irish’s DOM-ready execution for single-page AJAX application. | |
* This snippet executes methods based on URL hash values. | |
* | |
* Original implementation by Paul Irish & Viget Labs: http://bit.ly/aEwAny | |
* Requires jQuery Address plugin: http://bit.ly/11wNxa | |
* | |
* TODO: support HTML5 History API. | |
* | |
*/ |
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
doctype 5 | |
// paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ | |
//if IE 8 | |
<html class="no-js lt-ie9" lang="en"> | |
//[if gt IE 8]><! | |
html(class="no-js", lang="en") | |
//<![endif] | |
head |
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
# EditorConfig is awesome: https://EditorConfig.org | |
root = true | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
indent_style = tab | |
indent_size = 4 |
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
<!-- YouTube & Vimeo --> | |
<style> | |
.embed-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
padding-top: 30px; | |
height: 0; | |
overflow: hidden; | |
max-width: 100%; | |
height: auto; |