Skip to content

Instantly share code, notes, and snippets.

View SAGV's full-sized avatar

Artem Golovin SAGV

View GitHub Profile
--[[
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
### Keybase proof
I hereby claim:
* I am sagv on github.
* I am sagv (https://keybase.io/sagv) on keybase.
* I have a public key whose fingerprint is 9570 5F66 8271 B18F 6570 5326 BB6B 19D1 D170 2E86
To claim this, I am signing this object:
@SAGV
SAGV / sendFormExample.js
Created March 28, 2014 15:27
JS example of sending form
$(document).ready(function() {
//if submit button is clicked
$('#submit').click(function () {
//Get the data from all the fields
var name = $('input[name=name]');
var email = $('input[name=contact]');
var comment = $('textarea[name=project]');
@SAGV
SAGV / 0_reuse_code.js
Created January 13, 2014 20:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console