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
{ | |
// "window.zoomLevel": 1, | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.tabCompletion": true, | |
"editor.detectIndentation": true, | |
// "editor.formatOnPaste": true, | |
"terminal.external.osxExec": "Hyper.app", | |
"editor.autoIndent": false, | |
"editor.insertSpaces": false, |
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
[...document.querySelectorAll('img')].forEach(image => image.addEventListener('error', () => { | |
image.src = image.src.replace(window.location.origin, 'https://brokernotes.co'); | |
})); |
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
SELECT | |
posts.guid | |
FROM wp_pswe_posts AS posts | |
JOIN wp_pswe_postmeta AS template ON posts.ID = template.post_id | |
WHERE template.meta_key='_wp_page_template' | |
AND template.meta_value='templates/vs-page-v4.php' |
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
// nginx redirect rule | |
if ($request_uri ~* \.(js|css|png|jpg|jpeg|gif|svg)) { | |
rewrite ^/(.+)\.(?:[a-z0-9]+)\.(js|css|png|jpg|jpeg|gif|svg) https://$host/$1.$2 permanent; | |
} |
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
license: mit |
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
license: mit |
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
license: mit |
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
# Sexy Bash Prompt, inspired by "Extravagant Zsh Prompt" | |
# Screenshot: http://cloud.gf3.ca/M5rG | |
# A big thanks to \amethyst on Freenode | |
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM=gnome-256color | |
elif [[ $TERM != dumb ]] && infocmp xterm-256color >/dev/null 2>&1; then export TERM=xterm-256color | |
fi | |
if tput setaf 1 &> /dev/null; then | |
tput sgr0 |
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
import React, { Component } from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
import SimpleForm from './SimpleForm'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> |
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
import React, { Component } from 'react'; | |
class SimpleForm extends Component { | |
componentDidMount() { | |
if (document.getElementById('lf-load-scripts') === null) { | |
var s = document.createElement('script'); | |
s.id = 'lf-load-scripts'; | |
s.type = 'text/javascript'; | |
s.src = | |
'https://d2erq0e4xljvr7.cloudfront.net/assets/js/leadformly-embed_advance.min.js'; |
NewerOlder