Skip to content

Instantly share code, notes, and snippets.

@jromero
jromero / RemoteFragment.java
Created July 28, 2013 18:01
Use a fragment from a separate package (app) while maintaining resources intact. (Not tested extensively, specially with themes). Note: The remote fragment should be self sufficient and wouldn't be able to interact with dependancies of the main application or vise-versa. [See http://stackoverflow.com/questions/10792136/classcastexception-while-d…
package com.example.api.extension;
import android.app.Fragment;
import android.content.Context;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@jromero
jromero / sybase
Created January 10, 2013 14:16
An init script for sybase for standard start, stop, restart, and status.
#!/bin/sh
#
# Startup script for Sybase ASE
#
# description: Sybase Adaptive Server Enterprise
# is a SQL database server.
# processname: dataserver
SYBASE=/opt/sybase
@jromero
jromero / jquery.jplayerskin.js
Created November 10, 2010 11:34
Update for dynamic content to jplayerskin from blacknroll
/**
* jPlayerSkin - Class to handle with jplayer initialization and skin behavior
*
* @author BlackNRoll
* @update J.Romero
* @version 1.2 (Unofficial)
* @uses jQuery 1.4.2
* @uses jScrollPane
* @param array myPlayList = Array of json objects. Ex.: var myPlayList = [ {artist:"",name:"",mp3:"",cover:""} ];
* @param string container = The id of the container where the player will be build
@jromero
jromero / jquery.jplayerskin.js
Created November 10, 2010 11:26
Update for proper dynamic content functionality
/**
* jPlayerSkin - Class to handle with jplayer initialization and skin behavior
*
* @author BlackNRoll
* @update J.Romero
* @version 1.2 (Unofficial)
* @uses jQuery 1.4.2
* @uses jScrollPane
* @param array myPlayList = Array of json objects. Ex.: var myPlayList = [ {artist:"",name:"",mp3:"",cover:""} ];
* @param string container = The id of the container where the player will be build