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
*.3ds | |
*.3g2 | |
*.3gp | |
*.7z | |
*.a | |
*.aac | |
*.adp | |
*.ai | |
*.aif | |
*.aiff |
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
"To include this, run `cat .gitlfstrack | xargs git lfs track`" | |
"*.3ds" | |
"*.3g2" | |
"*.3gp" | |
"*.7z" | |
"*.a" | |
"*.aac" | |
"*.adp" | |
"*.ai" | |
"*.aif" |
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
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
chmod +x wp-cli.phar | |
sudo mv wp-cli.phar /usr/local/bin/wp |
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
/* | |
This code will autostart a youtube when visible and stop when not. You could alternatively purchase plugin ARVE pro. | |
Caveits: | |
- Only currently works with one video right now | |
- Depends on jQuery | |
Usage: Add this anywhere | |
<div class="youtube-smartstart-iframe" data-youtube-id="vfuLDmGbqTI"></div> |
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
<apex:page docType="html-5.0" title="Sync Ship Date"> | |
<apex:slds /> <!-- for lightning style --> | |
<style> | |
.create-invoice h3 { | |
padding:20px 0; text-align:center; | |
} | |
.create-invoice .hover-style { | |
cursor:pointer; | |
color: #2771CB; |
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
/** | |
* Disable admin bar on the frontend of your website | |
* for subscribers. | |
* Add this to <them>/functions.php | |
*/ | |
function functionsphp_disable_admin_bar() { | |
if( ! current_user_can('edit_posts') ) | |
add_filter('show_admin_bar', '__return_false'); | |
} | |
add_action( 'after_setup_theme', 'functionsphp_disable_admin_bar' ); |
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
/** | |
* Run a GraphQL Query using isomorphic-fetch | |
*/ | |
const HTTP_BAD_REQUEST = 400 | |
const endpoint = "https://api.graph.cool/simple/v1/cj9g48vlm79hy0120m4tvigm9" | |
let fetchGraphQLCache = []; | |
export default (query, callback) => { |
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
<div id="blurb-google-map-multi-point"> | |
<div id="multi-map" style="width:{{ width }}; height:{{ height }}"></div> | |
<script src="//maps.googleapis.com/maps/api/js?key=KEYHERE"></script> | |
<script> | |
window.addEventListener("load", function () { | |
var geocoder; | |
var latitude = 38.930125; |
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
#!/bin/bash | |
if (( $# != 1 )); then | |
echo "Illegal number of parameters" | |
exit 1 | |
fi | |
find $1 -type f -regex '.*\(jpg\|jpeg\|JPG\)$' -exec mozjpeg -copy none -outfile {} {} \; |
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
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats | |
# Change example.com (server_name) to your website url | |
# Change /path/to/your/root to the correct value | |
server { | |
listen 80; | |
server_name example.com; | |
root /path/to/your/root; | |
index index.html; |