Skip to content

Instantly share code, notes, and snippets.

View Tmeister's full-sized avatar
🇲🇽
Working from home

Enrique Chavez Tmeister

🇲🇽
Working from home
View GitHub Profile
{
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"phpcs.standard": "WordPress",
"phpfmt.passes": [
"DoubleToSingleQuote",
"SpaceAroundParentheses"
],
"phpfmt.psr2": false,
"phpfmt.indent_with_space": false
@Tmeister
Tmeister / queries.css
Created March 7, 2019 15:19
Quick Sample
/*
* Device = Laptops, Desktops
*/
@media (min-width: 1025px){
body{
font-size: 18px;
}
}
/*
@Tmeister
Tmeister / acf.php
Last active February 9, 2019 23:41
<?php
/**
* Get the header BG color
*
* @return string
*/
public function blogColor()
{
$term = get_queried_object();
tree: {
name: 'Topics',
children: [
{
name: 'Business',
children: [
{
name: 'Company',
children: [
{ name: 'Date Company Was Founded', size: 10 },
{
"workbench.iconTheme": "eq-material-theme-icons-darker",
"editor.fontFamily": "'Fira Code', Operator Mono, Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 14,
"editor.letterSpacing": 0.5,
"files.trimTrailingWhitespace": true,
"editor.fontWeight": "500",
"editor.cursorStyle": "line",
"editor.cursorWidth": 5,
"editor.renderWhitespace": "none",
{
"editor.formatOnSave": false,
"javascript.format.enable": true,
"eslint.autoFixOnSave": true,
"vetur.format.defaultFormatter.html": "prettyhtml",
"eslint.alwaysShowStatus": true,
"eslint.options": {
"extensions": [".html", ".js", ".vue", ".jsx"]
},
"eslint.validate": [
0x31c24E6b6151785A94C22b0a906F96615eFB7aEB
@Tmeister
Tmeister / .soliumrc.json
Created January 11, 2018 17:16
Solidity Lint Rules
{
"custom-rules-filename": null,
"rules": {
"imports-on-top": true,
"variable-declarations": true,
"array-declarations": true,
"operator-whitespace": true,
"lbrace": true,
"mixedcase": false,
"camelcase": false,
@Tmeister
Tmeister / CF7 Form
Last active April 20, 2019 04:46
Contact Form 7 - User Profile
<label> Your Name (required)
[text* your-name] </label>
<label> Your Email (required)
[email* your-email] </label>
<label> Your Phone (required)
[tel* your-phone] </label>
<label> Subject
@Tmeister
Tmeister / wp-config.php
Created July 13, 2017 15:29
Set the WP setting to the current server host
<?php
define('SP_REQUEST_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']);
define('WP_SITEURL', SP_REQUEST_URL);
define('WP_HOME', SP_REQUEST_URL);