Skip to content

Instantly share code, notes, and snippets.

View svgerasimov's full-sized avatar

Svyatoslav Gerasimov svgerasimov

  • Russia, Voronezh
View GitHub Profile
@svgerasimov
svgerasimov / cloudSettings
Created December 24, 2021 17:32 — forked from nickovchinnikov/History|-14a6bd0a|entries.json
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-12-15T06:13:45.321Z","extensionVersion":"v3.4.3"}
List()
var list = Immutable.List([1,2,3])
// [1, 2, 3]
List.isList()
Immutable.List.isList(list)
// true
List.of()
var list = Immutable.List.of(1,2,3);
@svgerasimov
svgerasimov / css-media-queries-cheat-sheet.css
Created December 19, 2019 22:15 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
@svgerasimov
svgerasimov / vanilla-js-cheatsheet.md
Created September 21, 2019 17:49 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@svgerasimov
svgerasimov / README-Template.md
Created September 7, 2019 11:55 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@svgerasimov
svgerasimov / js
Created April 25, 2019 14:00
draggable_flatlist
import React from 'react';
import {
SafeAreaView,
View,
FlatList,
Text,
StyleSheet,
Animated,
PanResponder
} from 'react-native';
<script type="text/javascript">
$(document).ready(function() {
$(".modalbox").fancybox();
$("#contact").submit(function() { return false; });
$("#send").on("click", function() {
var form = $(this);
var phoneval = $("#phone").val();
if (phoneval < 4) {
$("#phone").addClass("error");
@svgerasimov
svgerasimov / php
Last active April 12, 2021 05:37
Отправка писем на почту из формы PHPMailer + AJAX
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
if($_POST){
// Import PHPMailer classes into the global namespace
// These must be at the top of your script, not inside a function
require 'PHPMailer/src/PHPMailer.php';
require 'PHPMailer/src/POP3.php';
require 'PHPMailer/src/SMTP.php';
require 'PHPMailer/src/Exception.php';
@svgerasimov
svgerasimov / form_ajax.js
Last active May 22, 2018 06:59
Отправка данных формы через AJAX
<head>
<link href="magnific-popup/magnific-popup.css" rel="stylesheet">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="magnific-popup/jquery.magnific-popup.js"></script>
</head>
<form action="" id="userData" method="post">
<input type="text" name="phone" class="form-field" placeholder="+ 7 927 618 8007"/>
<button type="submit" id="btn_submit" name="btn_submit" class="form-button">ok</button>
@svgerasimov
svgerasimov / contact_window
Last active March 7, 2018 22:31
Модальное окно
<button onclick="showPopup();">Нажми на меня, чтобы показать форму обратной связи</button>
<div class="popup">
<div class="popup_bg"></div>
<div class="form">
<form>
<input type="text" name="name" placeholder="Ваше имя">
<input type="text" name="email" placeholder="Ваша почта">
<textarea name="message" id="message" cols="30" rows="10" placeholder="Ваше сообщение"></textarea>
<input type="submit" value="Отправить">
</form>