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
| const express = require('express') | |
| const next = require('next') | |
| const Cache = require('lru-cache'); | |
| const compression = require('compression') | |
| const port = parseInt(process.env.PORT, 10) || 3000 | |
| const dev = process.env.NODE_ENV !== 'production' | |
| const app = next({ 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
| // ========================================================= | |
| // Gulp Task: browsersync | |
| // NOTE: Using gulp v4 | |
| // Description: Sync sass, typescript, html, and browser | |
| // using external config or add modify src | |
| // npm install --save-dev browser-sync gulp-typescript gulpjs/gulp.git#4.0 gulp-load-plugins | |
| // Options: node-sass gulp-sass || gulp-ruby-sass | |
| // ========================================================= | |
| var config = require('../config.js'); | |
| var browserSync = require('browser-sync').create(); |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <rss version="2.0"> | |
| <channel> | |
| <title>Example Feed</title> | |
| <description>Insert witty or insightful remark here</description> | |
| <link>http://example.org/</link> | |
| <lastBuildDate>Sat, 13 Dec 2003 18:30:02 GMT</lastBuildDate> | |
| <managingEditor>johndoe@example.com (John Doe)</managingEditor> |
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
| // Register Custom Taxonomy | |
| function ess_custom_taxonomy_Item() { | |
| $labels = array( | |
| 'name' => 'Brands', | |
| 'singular_name' => 'Brand', | |
| 'menu_name' => 'Brands', | |
| 'all_items' => 'All Brands', | |
| 'parent_item' => 'Parent Brand', | |
| 'parent_item_colon' => 'Parent Brand:', |
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
| schema { | |
| query: RootQueryType | |
| mutation: RootMutationType | |
| } | |
| type RootQueryType { | |
| currentUser: CurrentUser | |
| billing: Billing | |
| } |
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"); | |
| exports.handler = (event, context, callback) => { | |
| var s3 = new AWS.S3(); | |
| var sourceBucket = "SOURCE-BUCKET"; | |
| var destinationBucket = "DESTINATION-BUCKET"; | |
| var objectKey = event.Records[0].s3.object.key; | |
| var copySource = encodeURI(sourceBucket + "/" + objectKey); | |
| var copyParams = { Bucket: destinationBucket, CopySource: copySource, Key: objectKey }; | |
| s3.copyObject(copyParams, function(err, data) { |
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
| { | |
| // http://eslint.org/docs/rules/ | |
| "ecmaFeatures": { | |
| "binaryLiterals": false, // enable binary literals | |
| "blockBindings": false, // enable let and const (aka block bindings) | |
| "defaultParams": false, // enable default function parameters | |
| "forOf": false, // enable for-of loops | |
| "generators": false, // enable generators | |
| "objectLiteralComputedProperties": false, // enable computed object literal property names |
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
| /* | |
| Do not modify this version of the file. It will be copied over when any of the project's targets are built. | |
| If you wish to modify mraid.js, modify the version located at mopub-sdk-common/mraid/mraid.js. | |
| */ | |
| (function() { | |
| var isIOS = (/iphone|ipad|ipod/i).test(window.navigator.userAgent.toLowerCase()); | |
| if (isIOS) { | |
| console = {}; | |
| console.log = function(log) { | |
| var iframe = document.createElement('iframe'); |
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
| /** | |
| * Smooth scroll animation | |
| * @param {int} endX: destination x coordinate | |
| * @param {int) endY: destination y coordinate | |
| * @param {int} duration: animation duration in ms | |
| */ | |
| window.smoothScrollTo = function(endX, endY, duration) { | |
| var startX = window.scrollX || window.pageXOffset, | |
| startY = window.scrollY || window.pageYOffset, | |
| distanceX = endX - startX, |
NewerOlder