View adobe-licenses.vbs
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
'Modified by Travis Smith (wpsmith.net) to fetch all Adobe licenses. | |
'Written by Ryan Williams (ryan@ryadical.com), I am not a programmer so please excuse the messy code | |
'Now to give credit where credit is due: | |
'Cipher code converted from Sam Gleske's javascript found at: http://www.pages.drexel.edu/~sag47/adobe/ | |
'His code was Converted from the source for "Enchanted Keyfinder" | |
'original algorithm by Dave Hope (http://www.davehope.co.uk) | |
'To run this program make sure that sqlite3.exe is in the same folder as this vbs file. | |
'SQLITE3 source and binaries can be found at www.sqlite.org |
View browser-language-codes.js
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
// <![CDATA[ | |
var langCodes = { | |
"af": "Afrikaans", | |
"sq": "Albanian", | |
"an": "Aragonese", | |
"ar": "Arabic (Standard)", | |
"ar-dz": "Arabic (Algeria)", | |
"ar-bh": "Arabic (Bahrain)", | |
"ar-eg": "Arabic (Egypt)", | |
"ar-iq": "Arabic (Iraq)", |
View articulate-email.js
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'); |
View Tetris_Shortcode.php
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 |
View bootstrap-metro-tile.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
/* | |
* metro-bootstrap files | |
*/ | |
.tile { | |
display: block; | |
cursor: pointer; | |
-webkit-perspective: 0; | |
-webkit-transform-style: preserve-3d; | |
-webkit-transition: -webkit-transform 0.2s; | |
float: left; |
View composer.json
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" | |
} |
View Set-WebApplicataionPool.ps1
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){ |
View CopyFilesToAzureStorageContainer.ps1
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 |
View WPS_Ajax.php
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+ | |
*/ |
View wps_force_ssl_shopp_urls.php
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. | |
*/ |
NewerOlder