Skip to content

Instantly share code, notes, and snippets.

View thefasttracker's full-sized avatar

Oleg Novikov thefasttracker

View GitHub Profile
@thefasttracker
thefasttracker / curl.md
Created December 24, 2022 11:10 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@thefasttracker
thefasttracker / connect.js
Created March 30, 2019 16:01 — forked from gaearon/connect.js
connect.js explained
// connect() is a function that injects Redux-related props into your component.
// You can inject data and callbacks that change that data by dispatching actions.
function connect(mapStateToProps, mapDispatchToProps) {
// It lets us inject component as the last step so people can use it as a decorator.
// Generally you don't need to worry about it.
return function (WrappedComponent) {
// It returns a component
return class extends React.Component {
render() {
return (
@thefasttracker
thefasttracker / supersearch.html
Created April 13, 2017 11:30 — forked from droganaida/supersearch.html
Search plugin (jQuery, CSS, HTML)
<html>
<head>
<title>BlondieCode. Лайфхаки программиста. Поиск с подстановкой.</title>
<meta charset="utf-8">
<meta name="description" content="BlondieCode. Блог блондинки-программиста. Подписывайся. Здесь много интересного.">
<meta name="keywords" content="BlondieCode, программирование">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
@thefasttracker
thefasttracker / CSS - clearfix
Created January 19, 2016 12:38 — forked from kovaldn/CSS - clearfix
CSS - clearfix
.clearfix:before,
.clearfix:after {
content: " "; /* 1 */
display: table; /* 2 */
}
.clearfix:after {
clear: both;
}
@thefasttracker
thefasttracker / main.css
Created January 19, 2016 12:37 — forked from kovaldn/main.css
CSS: footer
<div class="wrapper">
<div class="main-content">
</div>
</div>
<footer class="page-footer">
</footer>
/* прибьём футер к низу*/
.wrapper{
var gulp = require("gulp"),
browserSync = require('browser-sync');
// Сервер
gulp.task('server', function () {
browserSync({
port: 9000,
server: {
baseDir: 'app'
}