Skip to content

Instantly share code, notes, and snippets.

View sevir's full-sized avatar

Jose Francisco Rives sevir

View GitHub Profile
@sevir
sevir / Progress in Titanium
Created March 8, 2011 12:30
Progress window in Titanium cross mobile
function showIndicator()
{
// window container
indWin = Titanium.UI.createWindow({
height:150,
width:150
});
// black view
var indView = Titanium.UI.createView({
@sevir
sevir / log.php
Created January 31, 2015 23:12
CodeIgniter/Creamture Log Viewer
<?php
/**
* Enhaced Log viewer for CodeIgniter
* SeViR @2015
* based in old version of 2010
*/
class Viewer{
//Please for security set your external ip
private static $allow_ips = array(
'127.0.0.1',
@sevir
sevir / base64.js
Created October 24, 2012 15:38
base64 for javascript in browser that it hasn't support window.atob or window.btoa (implemented in Firefox, Webkit and Opera latest versions)
/*
* Implements base64 decode and encode in browser that
* it hasn't support of window.btoa and window.atob
* methods.
* Based in Nick Galbreath
* http://code.google.com/p/stringencoders/source/browse/#svn/
* and Carlo Zottmann jQuery port
* http://github.com/carlo/jquery-base64
* Adapted by SeViR in DIGIO
*/