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 | |
// GoogleVoice(EMAIL, PASSWORD) | |
$gv = new GoogleVoice('example@gmail.com', 'password'); | |
// Sends an SMS. send_sms(NUMBER, MESSAGE) | |
echo $gv->send_sms('+15555555555', 'Example'); | |
// Gets all the sms | |
// get_sms() - returns all the sms | |
// get_sms(true) - returns all the unread sms | |
echo $gv->get_sms(); | |
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
import re | |
import urllib2 | |
import urllib | |
import simplejson as json | |
# add my.ooma.com credentials here | |
username = '' | |
password = '' | |
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor()) |
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 | |
/* | |
Plugin Name: Settings API Example | |
Plugin URI: http://wpengineer.com/ | |
Description: Complete and practical example of use of the Settings API to add fields on the Writing option page | |
Author: Ozh | |
Author URI: http://ozh.org/ | |
*/ | |
// We'll use ozhwpe (Ozh / WP Engineer) as a prefix throughout the plugin | |
// Register and define the settings |
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 | |
$postTitle = $_POST['post_title']; | |
$post = $_POST['post']; | |
$submit = $_POST['submit']; | |
if(isset($submit)){ | |
global $user_ID; | |
$new_post = array( |
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 | |
/* | |
Copyright (c) 2009 Dimas Begunoff, http://www.farinspace.com/ | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, |
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
! Rules to limit FB tracking of me and doing various "scary" things. | |
! Read more: http://nikcub.appspot.com/logging-out-of-facebook-is-not-enough | |
! | |
! The filters live on the Customize tab of AdBlock Options in Chrome. | |
@@http://envoy510.blogspot.com/$document | |
@@||www.blogger.com^$document | |
@@|http://www.peteralfonso.com/2011/02/download-stock-rooted-gingerbread.html|$document |
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
function parseURL(url) { | |
var a = document.createElement('a'); | |
a.href = url; | |
return { | |
source: url, | |
protocol: a.protocol.replace(':',''), | |
host: a.hostname, | |
port: a.port, | |
query: a.search, | |
params: (function(){ |
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 parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
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
function gup( name ){ | |
var cre_getDocIdelement = document.getElementById( 'gbmpm_0_l' ); | |
name = name.replace( /[\[]/,"\\\[" ).replace( /[\]]/,"\\\]" ); | |
var regexS = "[\\?&]" + name + "=([^&#]*)"; | |
var regex = new RegExp( regexS ); | |
var results = regex.exec( cre_getDocIdelement ); | |
if( results == null ) return ""; |
NewerOlder