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
ls |grep .css |
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
$columns: 16; | |
$gridWidth: 960px; | |
@mixin drupalCols($rows: 4, $padding: 0 10px) { | |
width: ($gridWidth / $columns) * $rows; | |
float: left; | |
padding: $padding; | |
@include box-sizing(border-box); | |
} | |
.my-div { |
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
$columns: 12; | |
$gridWidth: 100%; | |
@mixin drupalCols($rows: 4, $padding: 0 10px) { | |
width: ($gridWidth / $columns) * $rows; | |
float: left; | |
padding: $padding; | |
@include box-sizing(border-box); | |
} | |
.my-div { |
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
@mixin clearfix { | |
&:after { | |
content: " "; | |
display: table; | |
clear: both; | |
} | |
} | |
$columns: 12; | |
@while $columns > 0 { |
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
#!/bin/bash | |
# Create a folder + download latest WordPress. | |
# Create a database with the same name + add the whole | |
# shebang to gitlab. | |
# For this to work the directory contining the repo has | |
# to have the same name as the gitlab repo | |
basedir="/Users/richardsweeney/s/" | |
MYSQL=`which mysql` |
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
if ( $( "#map-canvas" ).length ) { // or whatever - only add if the map container exists | |
var address = $(".company-address").text() // get the address from somewhere | |
var geocoder = new google.maps.Geocoder() | |
// geocode the address | |
geocoder.geocode({ 'address': address }, function( results, status ) { | |
if ( status == google.maps.GeocoderStatus.OK ) { | |
var location = results[0].geometry.location | |
// Encode the coordinates |
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
.htaccess | |
wp-config.php | |
wp-content/uploads/ | |
wp-content/blogs.dir/ | |
wp-content/upgrade/ | |
wp-content/backup-db/ | |
wp-content/advanced-cache.php | |
wp-content/wp-cache-config.php | |
sitemap.xml | |
*.log |
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
$('#acf_fields tr.field_label input.label').live('blur', function() | |
{ | |
var label = $(this); | |
var name = $(this).closest('tr').siblings('tr.field_name').find('input.name'); | |
if(name.val() == '') | |
{ | |
var val = label.val(); | |
var ex = { | |
'ä': 'a', |
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
#!/bin/bash | |
# Initializes a git repo & adds gitlab repo as origin. | |
# For this to work the directory contining the repo has | |
echo "Enter the directory/database directory name:" | |
read directory | |
basedir="/Users/richardsweeney/s/" | |
MYSQL=`which mysql` |
OlderNewer