I hereby claim:
- I am amogower on github.
- I am amogower (https://keybase.io/amogower) on keybase.
- I have a public key ASAz8a5KXBNJEHEgcJfadd5IpQCxUTv9s7iG8Er5HQBboQo
To claim this, I am signing this object:
| function submitForm(){ | |
| event.preventDefault(); | |
| var $form = $(this) | |
| var method = $form.attr('method'); | |
| var url = "http://localhost:3000" + $form.attr('action'); | |
| var isFileUpload = $form.attr("enctype") === 'multipart/form-data'; | |
| var data = $form.serialize(); | |
| if(isFileUpload) { | |
| data = new FormData($form[0]); |
| #!/usr/bin/python | |
| import os | |
| import sys | |
| import csv | |
| import datetime | |
| import time | |
| import twitter | |
| def test(): |
| Once the confirmation email has been sent, show a button labeled “Open in Gmail” on the confirmation page that links to a Gmail search for the confirmation email. This way the user can find the right the email with one click, quickly confirm, and complete the sign up process. | |
| The following search query tends to find the email: | |
| in:anywhere subject:”Confirm your awesomess” from:team@betalist.com | |
| Here’s what the link looks like as a URL: | |
| https://mail.google.com/mail/u/0/#search/in%3Aanywhere+subject%3A%22Confirm%20your%20awesomeness%22+from%3Ateam%40betalist.com |
| var $sidebar = $('#sidebar'), | |
| $window = $(window), | |
| offset = $sidebar.offset(), | |
| topPadding = 0; | |
| $window.scroll(function() { | |
| if ($window.scrollTop() > offset.top) | |
| { | |
| $('#sidebar').removeClass('checkout-sidebar'); | |
| $('#sidebar').addClass('checkout-sidebar-fixed'); |
| function getFormOriginalState() | |
| { | |
| startItems = convertSerializedArrayToHash($form.serializeArray()); | |
| } | |
| function checkFormForChanges() | |
| { | |
| var currentItems = convertSerializedArrayToHash($form.serializeArray()); | |
| var dataToSubmit = hashDiff(startItems, currentItems); | |
| return dataToSubmit; |
I hereby claim:
To claim this, I am signing this object:
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
| const action = { | |
| type, // specify the action type | |
| data // optional data can be passed | |
| }; | |
| Store.prototype.dispatch = function(action) { | |
| // based on the action type | |
| // generate a new state of the application, | |
| // by passing it to a reducer | |
| const state = this.reducer(action); |
| var iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform); | |
| var ff = navigator.userAgent.indexOf('Firefox') > 0; |
| document.addEventListener('DOMContentLoaded', function() { | |
| let body = document.querySelector('.body'); | |
| // attach event listener to whole body | |
| body.addEventListener('click', function(e) { | |
| if (e.target) { | |
| switch (e.target.nodeName) { | |
| case 'DIV': | |
| console.log('You clicked on a div'); |