This file contains hidden or 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
var getCache = function(url) { | |
var supportsLocalStorage = 'localStorage' in window; | |
// Both functions return a promise, so no matter which function | |
// gets called inside getCache, you get the same API. | |
function getJSON(url) { | |
var promise = $.getJSON(url); |
This file contains hidden or 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
var AWS = require('aws-sdk'); | |
var request = require('request'); | |
var GOOGLE_CLIENT_ID = 'XXXXXX.apps.googleusercontent.com '; | |
var GOOGLE_URL = 'https: //www.googleapis.com/oauth2/v3/tokeninfo?id_token='; | |
var idPoolID = 'us-east-1:XXXXXXX'; | |
var roleArn = 'arn:aws:iam::XXXXXX:role/Cognito_AdminStaffAuth_Role'; | |
var cognitoidentity = new AWS.CognitoIdentity({ | |
region: 'us-east-1' | |
}); | |
module.exports = function(credentials, context) { |
This file contains hidden or 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
{ | |
"name": "tbneventapp", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"build": "browserify app/source/app.js -o app/build/app.js -v -t [ envify --APP_ENV development ] -t [ babelify --presets [ es2015 react ] ]", | |
"run-server": "watch-http-server", | |
"watch-app": "watchify source/app.js -o app/build.js -v -t [ envify --APP_ENV development ] -t [ babelify --presets [ es2015 react ] ]", |
This file contains hidden or 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
.c-slab-text { | |
padding: 0.3em 0; | |
position: relative; | |
padding-left: 20px; | |
overflow: hidden; | |
&:before { | |
content: ' '; | |
position: absolute; | |
top: -2px; |
This file contains hidden or 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 | |
// Save post Hook | |
function grab_fb_video_image( $post_id, $post) { | |
if ( wp_is_post_revision( $post_id ) ) | |
return; | |
$image = get_field('featured_image'); | |
if ($image || is_null($image)) { // No need to continue - image is already there, or no field exists |
This file contains hidden or 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
#nginx | |
127.0.0.1 server.dev |
This file contains hidden or 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 | |
/** | |
* Example programmatic registration of Advanced Custom Fields fields | |
* | |
* @see http://www.advancedcustomfields.com/resources/register-fields-via-php/ | |
*/ | |
function register_custom_acf_fields() { | |
if ( function_exists( 'acf_add_local_field_group' ) ) { |
This file contains hidden or 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
<!-- Color Matrices --> | |
<svg> | |
<filter id="red-matrix" color-interpolation-filters="sRGB"> | |
<feColorMatrix | |
type="matrix" | |
values="0.6 0.8 -0.2 0 0 | |
0.1 0.1 0.5 0 0 | |
-0.3 0 0 0 0 | |
0 0 0 1 0" /> | |
</filter> |