Skip to content

Instantly share code, notes, and snippets.

@martdn
martdn / spoiler.css
Last active February 5, 2016 08:16
Hover spoiler css3
.row {
width: 300px;
margin: 0 auto;
font-family: "Scada", Arial, Tahoma;
}
.btn-close{
position:relative;
display:inline-block;
height:40px;
@martdn
martdn / col-1-5.css
Created November 11, 2015 07:44
Grid 5 columns twitter bootstrap
section.page1 .container,
footer .container {
width: 780px;
}
/* Grid 5 columns */
.col-xs-1-5,
.col-sm-1-5,
.col-md-1-5,
.col-lg-1-5 {
@martdn
martdn / navbar.js
Last active November 12, 2015 09:30
Show fixed navbar when scroll
$(document).ready(function(){
var top_show = 90;
$(window).scroll(function () {
if ($(this).scrollTop() > top_show) $('.fixed-navbar').fadeIn(100);
else $('.fixed-navbar').fadeOut(100);
});
});
@martdn
martdn / btwp.html
Last active February 5, 2016 08:01
Bootstrap Tooltip within Popover
<div class="container">
<button id="popover1" type="button" class="" data-placement="bottom">on click</button>
<!-- Popover content 1-->
<div id="popoverContent1" style="display: none">
<form>
<div class="form-group has-error">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" placeholder="Email">
</div>
@martdn
martdn / grid.scss
Created March 14, 2016 09:38
example scss - Grid
@mixin grid(
$width: 960px,
$gutter: 20px,
$columns : 12,
$prefix: true,
$push: true
) {
$column_width: $width/$columns;
@martdn
martdn / .bowerrc
Last active March 15, 2016 12:04
Bower proxy configuration
//В корне проекта, в файле .bowerrc прописываем конфигурацию proxy
{
"directory": "app/components/",
"proxy":"http://user:password@host:8080",
"https-proxy":"http://user:password@host:8080"
}
@martdn
martdn / mixin.scss
Last active March 22, 2016 10:44
mixin for input placegolder "text-overflow:hidden" and state ":focus" color on SCSS
//Input placeholder text-overflow, focus color
@mixin input-placeholder($text, $color) {
&[placeholder] {text-overflow: $text;}
&::-webkit-input-placeholder {text-overflow: $text;}
&::-moz-placeholder {text-overflow: $text;}/* Firefox 19+ */
&:-moz-placeholder {text-overflow: $text;}/* Firefox 18- */
&:-ms-input-placeholder {text-overflow: $text;}
//Input placeholder :focus
@martdn
martdn / getsburned.sol
Last active July 16, 2018 09:52
Destruction smart-contract. Код контракта удалится из блокчейна, и им нельзя никак воспользоваться.
pragma solidity ^0.4.18;
contract GetsBurned {
function BurnMe () public {
// Selfdestruct and send eth to self,
selfdestruct(address(this));
}
}
const path = require('path');
const webpack = require('webpack');
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
module.exports = {
entry: {
main: './src/features/main/index.js',
upstream app_dashboard {
server 127.0.0.1:3000;
keepalive 8;
}
# the nginx server instance
server {
listen 80;
listen [::]:80;
# server_name domain.com www.domain.com;