Skip to content

Instantly share code, notes, and snippets.

View vance's full-sized avatar

ForeverScape vance

View GitHub Profile
@joshbuchea
joshbuchea / android-expansion-steps.md
Last active October 2, 2017 12:28
Steps to get cordova-plugin-xapkreader working with Ionic/Cordova 5 project
@zerolab
zerolab / gist:1633661
Created January 18, 2012 15:52
Convert smart quotes with regular ones (and vice-versa)
<?php
//Quotes: Replace smart double quotes with straight double quotes.
//ANSI version for use with 8-bit regex engines and the Windows code page 1252.
preg_replace('[\x84\x93\x94]', '"', $text);
//Quotes: Replace smart double quotes with straight double quotes.
//Unicode version for use with Unicode regex engines.
preg_replace('[\u201C\u201D\u201E\u201F\u2033\u2036]', '"', $text);