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
[text* your-name placeholder "Name"] | |
[tel* tel-111 placeholder "Telephone"] | |
[email* your-email placeholder "Email Address"] | |
[textarea your-message placeholder "Message here"] | |
[submit "Send"] | |
} | |
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select { | |
width: 100%; | |
color: #eee!important; |
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
# Blender 2.79b help me lord! | |
SHIFT + c : reset curser to grid center | |
CTRL + . : focus in on selected | |
p : remove face from model and make it its own. | |
UNJOIN | |
p : remove by selected parts (mesh) |
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
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.github.io | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
*/ |
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
# Lists all the items from either product-sitemap.xml or product_category-sitemap.xml | |
# you must provide the full url. | |
from bs4 import BeautifulSoup | |
import json, requests | |
import re, sys | |
url = "" | |
try: | |
url = sys.argv[1] | |
except: |
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
import requests | |
import csv | |
from bs4 import BeautifulSoup | |
#from decimal import * | |
from decimal import Decimal | |
product = ['index1.html','index2.html','index3.html'] | |
for prod in product: |
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 | |
/* | |
Plugin Name: Black Friday Banner | |
Plugin URI: https://github.com/sinebeef | |
Description: A really basic black friday or message banner made upon request. | |
Author: sine | |
Version: 0.1 | |
Author URI: https://github.com/sinebeef | |
*/ |
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
# merge list | |
string = "I said a hib hubbit" | |
list = [] | |
list.extend(string.split()) | |
# replace with diction key values: | |
inch_to_mm = { | |
'3/8"' : '10mm', | |
'1/2"' : '12mm', | |
'5/16"': '8mm', |
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
# SSL FORCE | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
</IfModule> | |
# Block search bots | |
RewriteEngine on | |
RewriteCond %{HTTP_USER_AGENT} AltaVista [OR] |
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
# for when using raw rgb data which is picky with players (safe) | |
ffmpeg -i raw_from_aae.avi -pix_fmt yuv420p output.mp4 |
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
(function ($) { | |
$(document).ready(function () { | |
console.log("ready!"); | |
$('.left').on("click", function (e) { | |
e.preventDefault(); | |
console.log('moo'); | |
}); | |
}); | |
})(jQuery); |