Skip to content

Instantly share code, notes, and snippets.

@agustinhaller
agustinhaller / cron update fix
Created October 1, 2012 19:16
cron update fix
// This function will get only the latest 5000 followers of certain user and update them in the db
// First we ask Twitter for fresh followers
$fresh_followers = array();
$tmhOAuth = initTmhOAuth($organizer_username);
$tmhOAuth->request('GET', $tmhOAuth->url('1/followers/ids'), array(
'stringify_ids' => true,
'screen_name' => $organizer_username
));
<?php
/*ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
*/
require_once("includes/all.inc.php");
require_once("includes/header.inc.php");
require_once("includes/footer.inc.php");
@agustinhaller
agustinhaller / Twitter.class.php
Created October 24, 2012 17:57
twitter class
<?php
/****** STYLE GUIDES *****/
/* About parameters: */
/*
To make it flexible, all parameters have to be optional (that's why it receives an array) but there are some that are hard to remember and could
be the default for certain scenarios. So if the parameter needed is in the array $parameter use it, if not use
the default fallback.
*/
@agustinhaller
agustinhaller / Twitter.class.php
Created October 29, 2012 12:38
twitter class
tweetExists
@agustinhaller
agustinhaller / Twitter.methods.php
Created October 29, 2012 12:38
twitter methods (sortwit)
<?php
//session_start();
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
require_once("includes/all.inc.php");
require_once("includes/Twitter.class.php");
@agustinhaller
agustinhaller / Twitter.class.php
Created October 29, 2012 12:39
twitter class
<?php
/****** STYLE GUIDES *****/
/* About parameters: */
/*
To make it flexible, all parameters have to be optional (that's why it receives an array) but there are some that are hard to remember and could
be the default for certain scenarios. So if the parameter needed is in the array $parameter use it, if not use
the default fallback.
*/
@agustinhaller
agustinhaller / Twitter.class.php
Created October 29, 2012 12:40
twitter class
<?php
/****** STYLE GUIDES *****/
/* About parameters: */
/*
To make it flexible, all parameters have to be optional (that's why it receives an array) but there are some that are hard to remember and could
be the default for certain scenarios. So if the parameter needed is in the array $parameter use it, if not use
the default fallback.
*/
@agustinhaller
agustinhaller / index.html
Created November 3, 2012 11:31
index bumbea
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Bumbea.com</title>
<meta name="description" content="">
/* ==========================================================================
Product autocomplete styles
========================================================================== */
ul.autocomplete-list
{
z-index: 3;
width: 390px;
background: white;
margin: 0px;
padding: 0px;
<ul class="thumbnail autocomplete-list">
<li class="autocomplete-item">
<a href="#" title="">
<img src="http://bumbea.com/site/img/resources/galaxy-s.jpeg" class="pull-left product-image img-polaroid">
<div class="product-details pull-left">
<h5>Galaxy S</h5>
<div class="product-rating">
<i class="icon-star"></i>
<i class="icon-star"></i>
<i class="icon-star-empty"></i>