A Pen by Andrew Lazarus on CodePen.
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
<style> | |
*{font-family: helvetica;} | |
body{color: #333} | |
a{color:#1baebe;} | |
div{margin: 1em; padding: 1em; border-bottom: 1px solid;} | |
textarea{width:100%; padding: 10px; font-size: 1em} | |
</style> | |
<h1>A little bit of Git</h1> | |
<div> |
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
$nav_menu = wp_get_nav_menu_object(21); echo $nav_menu->name; |
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
$gutter: 100% / 36.2; | |
$gutter_em: 1rem; //This needs to be rem to not mess up margins | |
// This calculate the gutter | |
@function col_width($n, $use_calc: false) { | |
$divisor: 12 / $n; | |
@if ($use_calc) { | |
$gutter_offset: $gutter_em * ($divisor - 1); | |
@return calc((100% - #{$gutter_offset}) / #{$divisor}); | |
} |
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
<!--[if lt IE 9]> | |
<script> | |
document.createElement('header'); | |
document.createElement('nav'); | |
document.createElement('section'); | |
document.createElement('article'); | |
document.createElement('aside'); | |
document.createElement('footer'); | |
</script> |
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 | |
/* | |
* Template Name: Property Search | |
*/ | |
get_header(); | |
if(isset($_GET['propertysearch'])) { | |
$property_areas = $_GET['property_areas']; | |
$property_type = $_GET['property_type']; | |
$town = $_GET['town']; |
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
/* =Boneham */ | |
/* =Clean the world */ | |
* {margin:0;padding:0;} | |
/* Form Styling */ | |
.field-validation-error | |
{ | |
color : Red; | |
float : right; |
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
#include <SPI.h> | |
#include <Ethernet.h> // Initialize the libraries. | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //I left the MAC address and IP address blank. | |
byte ip[] = { 192, 168, 1, 99 }; // You will want to fill these in with your MAC and IP address. | |
EthernetServer server(80); // Assigning the port forwarded number. It's almost always 80. | |
String readString; // We will be using strings to keep track of things. |
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
git config --global core.excludesfile ~/.gitignore_global |
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 function is designed to remove all mentions that updates are available. | |
// Mostly because whereever there is a message, there is an update button allowing | |
// you to update with a touch of a button. This might break the website completely! | |
// Remove normall message | |
add_action('admin_menu','wphidenag'); | |
function wphidenag() { | |
remove_action( 'admin_notices', 'update_nag', 3 ); | |
} | |