Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Slava 6pm

💭
I may be slow to respond.
View GitHub Profile
@6pm
6pm / metro.config.js
Last active Jun 10, 2020
metro.config.js
View metro.config.js
const path = require('path');
// react-native >= 0.57
const extraNodeModules = {
'qb-core': path.resolve(__dirname + '/../qb-core/'),
};
const watchFolders = [
path.resolve(__dirname + '/../qb-core/')
];
View businessCard.sol
pragma solidity ^0.4.0;
contract Ownable {
address owner;
function Ownable() public {
owner = msg.sender;
}
@6pm
6pm / Instructions.md
Created Dec 4, 2017 — forked from pgilad/Instructions.md
Git commit-msg hook to validate for jira issue or the word merge
View Instructions.md

Instructions

  • copy the file commit-msg to .git/hooks/commit-msg
  • make sure your delete the sample file .git/hooks/commit-msg.sample
  • Make commit msg executable. chmod +x .git/hooks/commit-msg
  • Edit commit-msg to better fit your development branch, commit regex and error message
  • Profit $$

Shell example

@6pm
6pm / iterateGenerator.js
Last active Aug 13, 2017
iterate urls with fetch and generators
View iterateGenerator.js
function executeGenerator(generator, yieldValue) {
let next = generator.next(yieldValue);
if (!next.done) {
next.value.then(
result => executeGenerator(generator, result),
err => generator.throw(err)
);
} else {
// catch return of generator
@6pm
6pm / random.js
Created Aug 6, 2017 — forked from kerimdzhanov/random.js
Javascript get random number in a specific range
View random.js
/**
* 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;
}
@6pm
6pm / README.md
Created Mar 12, 2017 — forked from Dr-Nikson/README.md
Auth example (react + redux + react-router)
View README.md
@6pm
6pm / сортувати за 2 полями в обєкті. Count буде пріоритетнішшим
Created Dec 5, 2016
javascript sort - сортувати за 2 полями в обєкті. Count буде пріоритетнішшим
View сортувати за 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 / gist:2b028b4d456b798bf2b5
Created Sep 27, 2015
установити node js на убунту останньої версії
View gist:2b028b4d456b798bf2b5
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
View gist:bbd803e8678be76e24f2
.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 / jade
Created Aug 21, 2015
team-block
View jade
.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="#")
You can’t perform that action at this time.