Skip to content

Instantly share code, notes, and snippets.

View justinParton's full-sized avatar

Justin Parton justinParton

View GitHub Profile
private class PageActionListener implements ActionListener {
private int page;
public PageActionListener(int page) {
this.page = page;
}
public void actionPerformed(ActionEvent e) {
setPage(page);
}
@justinParton
justinParton / gist:8309716
Last active February 4, 2018 14:33
Vimeo Page
<?php
$endupload = "up";
class phpVimeo
{
const API_REST_URL = 'http://vimeo.com/api/rest/v2';
const API_AUTH_URL = 'http://vimeo.com/oauth/authorize';
const API_ACCESS_TOKEN_URL = 'http://vimeo.com/oauth/access_token';
const API_REQUEST_TOKEN_URL = 'http://vimeo.com/oauth/request_token';
@justinParton
justinParton / gist:1352711
Created November 9, 2011 19:45
Paging Controls - Appcelerator
Got this from here: http://developer.appcelerator.com/question/42021/scrollableview---manually-position-the-pagingcontrol
To make this:
Open /Library/Application Support/Titanium/mobilesdk/osx/1.x.x/iphone/Classes/TiUIScrollableView.m (where 1.x.x is your version of sdk, like 1.4.2, 1.4.3 or 1.5.0)
find this line in this file:
viewBounds.size.height = visibleBounds.size.height - (showPageControl ? pageControlHeight : 0);
and change to this: