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
Press CTRL-H to bring up the Find/Replace Dialog. Choose the "Regular expressions" checkbox near the bottom of the dialog. | |
To add "test" to the beginning of each line, type "^" in the "Find what" field, and "test" in the "Replace with" field. Then hit "Replace All". | |
To add "test" to the end of each line, type "$" in the "Find what" field, and "test" in the "Replace with" field. Then hit "Replace All". |
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
var player = GetPlayer(); | |
var email = player.GetVar("ManagerEmail"); | |
var name = player.GetVar("Name"); | |
var texto = player.GetVar("Commitment") + "\n"; | |
var subject = "My Corporate Responsibility Commitment"; | |
var body_start = "Dear Manager,\n" + name + " has sent you his/her Corporate Responsibility Commitment:\n"; | |
var body_end = "Please discuss this commitment with " + name + "\n"; | |
var mailto_link = 'mailto:' + email + '?subject=' + subject + '&body=' + encodeURIComponent(body_start + texto + body_end); | |
win = window.open(mailto_link, 'emailWin'); |
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
<?php | |
/** | |
* Class Tetris_Shortcode | |
*/ | |
class Tetris_Shortcode { | |
/** | |
* Whether in debug mode or not. | |
* @var bool |
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
/* | |
* metro-bootstrap files | |
*/ | |
.tile { | |
display: block; | |
cursor: pointer; | |
-webkit-perspective: 0; | |
-webkit-transform-style: preserve-3d; | |
-webkit-transition: -webkit-transform 0.2s; | |
float: left; |
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
{ | |
"name": "wpsmith/hide-user", | |
"description": "Hides user in WordPress Admin.", | |
"type": "project", | |
"license": "GPLv2+", | |
"authors": [ | |
{ | |
"name": "Travis Smith", | |
"email": "t@wpsmith.net" | |
} |
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
#--------------------------------------------------------------------------------------- | |
# Name: Set-WebApplicataionPool.ps1 | |
# Description: This script will change SP WebApplication Pools for a Web Application | |
# | |
# Usage: Run the function with the required parameters | |
# By: Ivan Josipovic, Softlanding.ca | |
#--------------------------------------------------------------------------------------- | |
Function Set-WebApplicataionPool($WebAppURL,$ApplicationPoolName){ | |
$apppool = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.ApplicationPools | where {$_.Name -eq $ApplicationPoolName} | |
if ($apppool -eq $null){ |
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
<# | |
.SYNOPSIS | |
Copies files from a local folder to an Azure blob storage container. | |
.DESCRIPTION | |
Copies files (in parallel) from a local folder to a named Azure storage | |
blob container. The copy operation can optionally recurse the local folder | |
using the -Recurse switch. The storage container is assumed to already exist | |
unless the -CreateContainer switch is provided. | |
Note: This script requires an Azure Storage Account to run. The storage account |
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
<?php | |
/** | |
* WP Ajax Abstract Class. | |
* | |
* @package WPS_Core | |
* @author Travis Smith <t@wpsmith.net> | |
* @copyright 2014 Travis Smith | |
* @license GPL-2.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
<?php | |
add_filter( 'shopp_url', 'wps_force_ssl_shopp_urls', 999 ); | |
/** | |
* Conditionally add https scheme to URLs. | |
* | |
* @param string $url URL string. | |
* | |
* @return string $url Maybe modified URL. | |
*/ |