Skip to content

Instantly share code, notes, and snippets.

@axwax
axwax / jquery.last.tweets.min.js
Created October 19, 2012 11:26
xtreme-theme 1.5.2 updated twitter user timeline url
/**
* Xtreme One
*
* @copyright Copyright 2010-2012, dynamicinternet GmbH
* @license see http://xtreme-theme.com/licence/
* @link http://xtreme-theme.com
* @package xtreme-one
**/
(function(b){b.fn.extend({xtremeTweets:function(c){var d={username:"",showAvatar:false,showUsername:false,showFollower:false,numberTweets:5,avatarSize:40};this.options=b.extend(d,c);var e=this;return this.each(function(){var f=b(this);var g="";b('<ul class="xtreme-tweets"><li class="preLoader">'+xtreme_last_tweets.l10n.loading+"</li></ul>").appendTo(f);b.ajax({type:"GET",url:"https://api.twitter.com/1/statuses/user_timeline.json?screen_name="+e.options.username+"&count="+e.options.numberTweets+"",dataType:"jsonp",error:function(i,j,h){f.find("ul.xtreme-tweets").append("<li>An error occurred "+h+"</li>");},success:function(h){b("li.preLoader").remove();b.each(h,function(l,n){var p=n.created_at;var j=n.text.replace(/((https?|s?ftp|ssh)\:\/\/[^\"\s\<\>]*[^.,;'\">\:\s\<\>\)\]\!])/g,function(i){ret
@axwax
axwax / frontlinesms-posts.php
Created January 15, 2012 22:28
FrontlineSMS to WordPress Posts
<?php
/*
* Plugin Name: FrontlineSMS-Posts
* Plugin URI: https://gist.github.com/1617749
* Description: Plugin to create WordPress post from Frontline SMS, based on a plugin by Kaka E. Prakasa ( https://github.com/pr4ka5a/wp-frontlinesms_posts/ )
* Author: AxWax
* Version: 0.1
* Author URI: http://axwax.de
*/