Skip to content

Instantly share code, notes, and snippets.

View BenoitDuffez's full-sized avatar

Benoit Duffez BenoitDuffez

  • Kerlink
  • Los Angeles greater area, CA, USA
View GitHub Profile
// ==UserScript==
// @name SelfServicePlus
// @namespace SelfServicePlus
// @match http://astsih/SelfService/*
// @version v1.0
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
function loadJQuery(callback) {
var script = document.createElement("script");
public class ViewPagerFragment extends Fragment {
private MyTabsAdapter mAdapter;
private static final int NB_TABS = 2; // to change with what you need
private static final String[] TAB_TITLES = new String[NB_TABS];
public static ViewPagerFragment newInstance(final Bundle args) {
final ViewPagerFragment f = new ViewPagerFragment();
f.setArguments(args);
return f;
}