[ Launch: Jess' Chronoglyph ] 6046954 by Jackreichert
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
<?xml version="1.0" encoding="UTF-8"?> | |
<w:document xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" | |
xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" | |
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" | |
xmlns:w10="urn:schemas-microsoft-com:office:word" | |
xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" | |
xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" | |
xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" |
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
(function ($) { | |
$(document).ready(function () { | |
$('#next').click(function () { | |
$.post( | |
PT_Ajax.ajaxurl, | |
{ | |
// wp ajax action | |
action: 'ajax-inputtitleSubmit', | |
// vars |
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
$filename="export.csv"; | |
header("Content-type: application/octet-stream"); | |
header("Content-Disposition: attachment; filename=$filename"); | |
header("Pragma: no-cache"); | |
header("Expires: 0"); | |
$csv = fopen('php://output', 'w'); | |
foreach($rows as $ind=>$row){ | |
if($ind==0) | |
fputcsv($csv,array_keys($row)); |
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
chown -R apache:apache . | |
find . -type d -exec chmod 755 {} \; | |
find . -type f -exec chmod 644 {} \; |
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
(function($) { | |
$(document).ready(function(e){ | |
e.preventDefault(); | |
$('input[name=titleSubmit]').click(function(){ | |
$.ajax({ | |
type: "GET", | |
url: SSL_Ajax.ajaxurl, | |
cache: false, | |
dataType: "jsonp", | |
crossDomain: true, |
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
extension NSURL { | |
func getKeyVals() -> Dictionary<String, String>? { | |
var results = [String:String]() | |
var keyValues = self.query?.componentsSeparatedByString("&") | |
if keyValues?.count > 0 { | |
for pair in keyValues! { | |
let kv = pair.componentsSeparatedByString("=") | |
if kv.count > 1 { | |
results.updateValue(kv[1], forKey: kv[0]) | |
} |
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
// helper method | |
function make_dir( $path, $permissions = 0777 ) { | |
return is_dir( $path ) || mkdir( $path, $permissions, true ); | |
} | |
// for use inline | |
if ( ! file_exists( $path ) ) { | |
mkdir( $path, 0777, true ); | |
} |
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
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; | |
killall Finder /System/Library/CoreServices/Finder.app' | |
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; | |
killall Finder /System/Library/CoreServices/Finder.app' |