This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- At this point our environmental jQuery should have already loaded, we'll | |
assign it to a separate variable on the window and delete the dollar sign --> | |
<script> | |
window.jQuery142 = window.jQuery; | |
delete window.$; | |
</script> | |
<!-- Next, we'll load our next version of jQuery --> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Jekyll Pygments syntax highlighter styles | |
// Colors | |
$default: #FFFFFF | |
$background: #010101 | |
$comment: #586E75 | |
$error: #586E75 | |
$generic: #93A1A1 | |
$keyword: #859900 | |
$literal: #93A1A1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
'use strict'; | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json') | |
, coffeelint: { | |
app: ['./assets/javascripts/**/*.coffee'] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://stackoverflow.com/a/1252305/2535178 | |
def get_with_params(domain,path,params) | |
res = Net::HTTP.get(domain, "#{path}?".concat(params.collect { |k,v| "#{k}=#{CGI::escape(v.to_s)}" }.join('&'))) if not params.nil? | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function do_something_else($entry, $form) { | |
// Gravity Forms has validated the data | |
// Our Custom Form Submitted via PHP will go here | |
} | |
add_action("gform_post_submission", "do_something_else", 10, 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def slugify(text) | |
text.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '') | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var e | |
, s | |
, src = '//example.com/example.js' | |
; | |
e = document.createElement('script'); | |
e.async = true; | |
e.type='text/javascript'; | |
e.src = src; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( $http_origin ~ "mydomain.com$" ) { | |
add_header "Access-Control-Allow-Origin" $http_origin; | |
} |
OlderNewer