Skip to content

Instantly share code, notes, and snippets.

View barbwiredmedia's full-sized avatar

Barbara Talbot barbwiredmedia

View GitHub Profile
@adnan360
adnan360 / https-on-localhost.md
Last active April 24, 2024 03:23
Use HTTPS on Localhost (XAMPP, Windows)

Sometimes some websites require https to work. This can be useful in those cases.

This has been tested with XAMPP (PHP 7.0.8) on Windows 7. Please see the Reference links at the end if in confusion about some step.

STEP 1: Editing Configs

Open:

C:\xampp\php\php.ini
@emmajane
emmajane / gist:59321345a81a4f5837c0
Last active February 28, 2024 16:35
JQL Syntax for the Impatient

JQL Syntax for the Impatient

There are a few JQL syntax bits to get you started:

  • AND --- allows you to add qualifiers to a list
  • != Thing --- target one thing
  • is in (List, Of, Things) --- target a bunch of things (Done, Closed, Resolved) typically
  • not in (List, of, Things) --- do not include a bunch of things
  • -1w --- relative time. You can also use -1d for day
  • "2015/3/15" --- specific dates
@pedrokoblitz
pedrokoblitz / .htaccess
Created November 4, 2014 12:41
htaccess
# Apache Server Configs v2.3.0 | MIT License
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have access
# to the main server config file (usually called `httpd.conf`), you should add
# this logic there: http://httpd.apache.org/docs/current/howto/htaccess.html.
# ##############################################################################
# # CROSS-ORIGIN RESOURCE SHARING (CORS) #
# ##############################################################################
@uditveerwani
uditveerwani / package,json
Created August 12, 2014 08:18
Roots task for Gulp (npm modules)
{
"name": "roots",
"version": "7.0.0",
"author": "Ben Word <ben@benword.com>",
"homepage": "http://roots.io",
"repository": {
"type": "git",
"url": "git://github.com/roots/roots.git"
},
"bugs": {
@logeshpaul
logeshpaul / SimpleWebApp.markdown
Last active August 29, 2015 14:04
Gulp + Sass + Browser Sync

Prerequisites

Before starting, you should have:

A project containing at least an index.html & some scss files. NodeJS installed. GulpJS installed globally 'npm install -g gulp'

Step 1 - Install We need to install 3 tools locally to our project - gulp, gulp-sass & browser-sync. In your terminal/command line, navigate to your project directory and run

@barbwiredmedia
barbwiredmedia / functions.php
Created May 13, 2014 18:52
Hide ACF menu item from the admin menu
/**
* Hide ACF menu item from the admin menu
*/
function remove_acf_menu()
{
// provide a list of usernames who can edit custom field definitions here
$admins = array(
@landru247
landru247 / css.css
Created April 23, 2014 18:19
Bootstrap: 5 col grid - adds new grid pattern to bootstrap (5 col)
.col-sm-15,
.col-md-15,
.col-lg-15 {
position: relative;
min-height: 1px;
padding-right: 10px;
padding-left: 10px;
}
.col-xs-15 {
@landru247
landru247 / WordPress: get list of terms
Last active August 29, 2015 13:58
WordPress: get list of terms - Puts a list of Terms (taxonomies) in a <ul> and does not add <a> links
<!-- if in a loop -->
<?php
$terms_as_text = strip_tags(get_the_term_list($wp_query->post->ID, 'tmc_works', '', ', ', ''));
echo $terms_as_text;
?>
<!-- or -->
<?php echo '<ul>'; ?>
@landru247
landru247 / Contact Form 7: validation.css
Created April 2, 2014 16:55
Contact Form 7: validation - removes the error/success message and removes the default field validation and replaces with colored fields
div.wpcf7-response-output, div.wpcf7-validation-errors { display: none !important; }
span.wpcf7-not-valid-tip { display: none; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: red; background-color: rgba(153,0,0,0.3); }
@landru247
landru247 / CSS: responsive text.css
Created January 28, 2014 23:20
CSS: responsive text - Percentage based
html { font-size: 100%; }
body { line-height: 1.6875; font-family: 'Lato', arial, helvetica, sans-serif; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: 'Bitter', arial, helvetica, sans-serif; font-weight: 700; margin-top: 0; line-height: 1.1; }
h1 { font-size: 200%; }
h2 { font-size: 180%; }
h3 { font-size: 160%; }
h4 { font-size: 120%; }
h5 { font-size: 100%; }
h6 { font-size: 80%; }
p { color: #666; font-size: 100%; font-weight: 500; margin-bottom: 5%; }