Skip to content

Instantly share code, notes, and snippets.

View crismanNoble's full-sized avatar

Cris Noble crismanNoble

View GitHub Profile
@crismanNoble
crismanNoble / mc-submit.js
Last active September 29, 2015 14:36
Simple form AJAX example
$('document').ready(function(){
$('.mc-form-example').submit(function(e){
//prevent the form from submitting via the browser redirect
e.preventDefault();
//grab attributes and values out of the form
var data = {email: $('#mc-email').val()};
var endpoint = $(this).attr('action');
<?php
//fill in these values for with your own information
$api_key = 'Y0UR_AP1_K3Y';
$datacenter = 'us6';
$list_id = '24d099dff7';
$email = $_POST['email'];
$status = 'pending';
if(!empty($_POST['status'])){
{
"adult": false,
"backdrop_path": null,
"belongs_to_collection": null,
"budget": 500000,
"genres": [
{
"id": 27,
"name": "Horror"
}
{
"backdrop_path": "\/okhLwP26UXHJ4KYGVsERQqp3129.jpg",
"created_by": [
{
"id": 63554,
"name": "Dave Erickson",
"profile_path": null
},
{
"id": 1223867,
var tid = setInterval(function(){if (document.readyState!=='complete' ) return;clearInterval( tid );var head = document.head || document.getElementsByTagName('head')[0],style = document.createElement('style'), cssContent = ':before,:after{content:none !important}';style.type = 'text/css';if (style.styleSheet){style.styleSheet.cssText = cssContent;} else {style.appendChild(document.createTextNode(cssContent));}head.appendChild(style);setTimeout(function(){head.removeChild(style);}, 0);}, 40 );document.onreadystatechange;
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = false
trim_trailing_whitespace = true
{
"bold_folder_labels": true,
"color_scheme": "Packages/Monokai Extended/Monokai Extended Bright.tmTheme",
"convert_tabspaces_on_save": true,
"ignored_packages":
[
"Vintage"
],
"save_on_focus_lost": true,
"tab_size": 2,
@crismanNoble
crismanNoble / bookmarklet-boilerplate.js
Last active August 29, 2015 14:25
Bookmarklet that does nothing
javascript:(function(){console.log('nothing');})();
@crismanNoble
crismanNoble / gist:e020e2862596e6656ad6
Created July 22, 2015 18:48
my favorite editorconfig
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
@crismanNoble
crismanNoble / Knocked-Out-California.markdown
Created January 13, 2015 07:48
Knocked Out California