Skip to content

Instantly share code, notes, and snippets.

View 6pm's full-sized avatar
💭
I may be slow to respond.

Slava 6pm

💭
I may be slow to respond.
View GitHub Profile
@6pm
6pm / new_gist_file_0
Created November 4, 2014 10:15
Створення елементів на льоту і додавання атрибутів і обработчиків
$("<div/>", {
"class": "clickme",
text: "Нажми на меня!",
click: function(){
$(this).html('Спасибо.');
}
}).appendTo("body");
@6pm
6pm / placeholder
Created February 19, 2015 10:14
стилізувати колір плейсхолдерів
::-webkit-input-placeholder { /* WebKit browsers */
color: #909;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: #909;
opacity: 1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
color: #909;
opacity: 1;
@6pm
6pm / ddos.js
Last active August 29, 2015 14:23 — forked from venomjke/ddos.js
var request = require('request'),
util = require('util'),
fs = require('fs'),
events = require('events');
var attackUrl = 'http://ispi.ru/';
var proxyLists = [];
var proxyFile = __dirname+'/proxylist.txt';
var e = new events.EventEmitter;
@6pm
6pm / jade
Created August 21, 2015 11:01
pricing-block
.price__item.col-sm-4.animated.fadeOut
h3.price__title Service
span.reg &reg;
span.price__title__type Lite
ul.cd-pricing-features
li
span.ion-ios-checkmark-empty
|Premium support
li
span.ion-ios-checkmark-empty
@6pm
6pm / jade
Created August 21, 2015 11:05
team-block
.col-md-4.col-sm-6.col-xs-12
.team__person
.team__person__info
h4.team__person__name John Doe
span.team__person__work Art-director
p Lorem ipsum dolor sit amet, consectetur adipisicing.
.team__person__social
a(href="#")
i.ion-social-facebook-outline
a(href="#")
@6pm
6pm / gist:bbd803e8678be76e24f2
Created August 21, 2015 13:22
portfolio carousel
.portfolio__carousel__wrap
.portfolio__carousel.owl-carousel
// one item
figure.portfolio__carousel__item.item.animated.fadeOut
img(src='img/portfolio/1.jpg' alt='portfolio')
figcaption
h4 Coffee shop
p Design and branding. She brings an eternal summer along.
i.ion-ios-world-outline
@6pm
6pm / gist:2b028b4d456b798bf2b5
Created September 27, 2015 12:25
установити node js на убунту останньої версії
Install curl
sudo apt-get install curl
Install NodeJS :
curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get install -y nodejs
@6pm
6pm / сортувати за 2 полями в обєкті. Count буде пріоритетнішшим
Created December 5, 2016 12:36
javascript sort - сортувати за 2 полями в обєкті. Count буде пріоритетнішшим
var data = [
{ count: 'phone', year: '1956' },
{ count: 'phone', year: '1971' },
{ count: 'text', year: '1989' },
{ count: '33', year: '1932' },
{ count: '33', year: '1912' },
{ count: 'text', year: '1954' },
{ count: 'phone', year: '1920' },
{ count: '33', year: '3444' }
];
@6pm
6pm / README.md
Created March 12, 2017 20:35 — forked from Dr-Nikson/README.md
Auth example (react + redux + react-router)
@6pm
6pm / random.js
Created August 6, 2017 11:49 — forked from kerimdzhanov/random.js
Javascript get random number in a specific range
/**
* Get a random floating point number between `min` and `max`.
*
* @param {number} min - min number
* @param {number} max - max number
* @return {float} a random floating point number
*/
function getRandom(min=0, max=10) {
return Math.random() * (max - min) + min;
}