Skip to content

Instantly share code, notes, and snippets.

View namontec's full-sized avatar
🏠
Working from home

Victor Potasyev namontec

🏠
Working from home
View GitHub Profile
@namontec
namontec / .gitignore
Last active March 28, 2019 09:42 — forked from tokineco/.gitignore
Cocos2d-x v3.x .gitignore
# OSX - https://github.com/github/gitignore/blob/master/Global/OSX.gitignore
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
@namontec
namontec / complex-cpp.cpp
Created January 29, 2019 04:51
complex cpp template
#include <iostream>
#include <memory>
#include <string>
using namespace std;
int main()
{
return 0;
@namontec
namontec / gist-cpp.cpp
Created January 27, 2019 12:59
default-cpp
#include <iostream>
int main()
{
return 0;
}
@namontec
namontec / .gitconfig
Last active August 29, 2015 14:23 — forked from shawndumas/.gitconfig
[mergetool]
prompt = false
keepBackup = false
keepTemporaries = false
[merge]
tool = winmerge
[mergetool "winmerge"]
name = WinMerge
@namontec
namontec / ajax-mail.js
Last active August 29, 2015 14:23
ajax send mail js
$(document).ready(function () {
$('#orderForm').submit(function () {
$.ajax({
type: "POST",
url: "mail.php",
data: $(this).serialize()
}).done(function () {
$('#orderModal').modal('hide');
alert("Спасибо за заявку! Скоро мы с вами свяжемся.");
@namontec
namontec / mail.php
Last active November 13, 2015 14:31
ajax send mail php
<?php
$recepient = "[email protected]";
$sitename = "site.ru";
$service = trim($_POST["formInputService"]);
$name = trim($_POST["formInputName"]);
$email = trim($_POST["formInputEmail"]);
$tel = trim($_POST["formInputTel"]);
$text = trim($_POST["formInputComment"]);