code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
#titre {
color: #FF1493;
}
#words{
color: white;
}
#transparent{
opacity:0;
filter:alpha(opacity=0); /* For IE8 and earlier */
}
body{
background-image: url("image.gif");
}
#cadre
{
-webkit-border-radius: 10px 10px 10px 10px;
-moz-border-radius:10px 10px 10px 10px;
border-radius:10px 10px 10px 10px;
}
#submit... | zzchatmb | trunk/francais/styleFr.css | CSS | mit | 565 |
//Fonction qui colorie les cases
function underline(block, erreur)
{
if(erreur)
block.style.backgroundColor = "red";
else
block.style.backgroundColor = "green";
}
// Fonction vérifiant le login
function checklogin(block)
{
var space = /\s/g;
// Le login doit avoir une taille >5 et ne d... | zzchatmb | trunk/francais/signupFr.js | JavaScript | mit | 2,592 |
<?php
//démarrage de la session
session_start();
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('p... | zzchatmb | trunk/francais/authentifFr.php | PHP | mit | 3,278 |
<?php
require ('checkFr.php');
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', '... | zzchatmb | trunk/francais/chatFr.php | PHP | mit | 6,720 |
<?php
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', '', 0, null, null, false, ... | zzchatmb | trunk/francais/signupFr.php | PHP | mit | 3,168 |
#titre {
color: #FF1493;
}
#words{
color: white;
}
#transparent{
opacity:0;
filter:alpha(opacity=0); /* For IE8 and earlier */
}
body{
background-image: url("image.gif");
}
/*
margin-top: 15px;
height: 200px;
border-radius: 5px;
background: url('images/sanfrancisco.jpg') no-repeat;
position: relative;
box-shado... | zzchatmb | tags/styleEng.css | CSS | mit | 851 |
<?php
require ('checkEng.php');
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', ... | zzchatmb | tags/chatEng.php | PHP | mit | 6,555 |
<?php
// On démarre la session
session_start();
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('ps... | zzchatmb | tags/checkFr.php | PHP | mit | 1,989 |
<?php
session_start();
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', '', 0, nu... | zzchatmb | tags/logoutFr.php | PHP | mit | 1,477 |
<?php
//démarrage de la session
session_start();
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('p... | zzchatmb | tags/authentifEng.php | PHP | mit | 3,241 |
<?php
// On démarre la session
session_start();
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('ps... | zzchatmb | tags/checkEng.php | PHP | mit | 1,977 |
<?php
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', '', 0, null, null, false, ... | zzchatmb | tags/signupEng.php | PHP | mit | 3,129 |
<?php
require ('checkFr.php');
if ($_SESSION['login1'] == NULL) {
header('Location: authentifFr.php');
}
else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<link re... | zzchatmb | tags/profileFr.php | PHP | mit | 1,601 |
<?php
session_start();
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', '', 0, nu... | zzchatmb | tags/logoutEng.php | PHP | mit | 1,487 |
#titre {
color: #FF1493;
}
#words{
color: white;
}
#transparent{
opacity:0;
filter:alpha(opacity=0); /* For IE8 and earlier */
}
body{
background-image: url("image.gif");
}
#cadre
{
-webkit-border-radius: 10px 10px 10px 10px;
-moz-border-radius:10px 10px 10px 10px;
border-radius:10px 10px 10px 10px;
}
#submit... | zzchatmb | tags/styleFr.css | CSS | mit | 565 |
//Fonction qui colorie les cases
function underline(block, erreur)
{
if(erreur)
block.style.backgroundColor = "red";
else
block.style.backgroundColor = "green";
}
// Fonction vérifiant le login
function checklogin(block)
{
var space = /\s/g;
// Le login doit avoir une taille >5 et ne d... | zzchatmb | tags/signupFr.js | JavaScript | mit | 2,592 |
<?php
//démarrage de la session
session_start();
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('p... | zzchatmb | tags/authentifFr.php | PHP | mit | 3,278 |
<?php
require ('checkFr.php');
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', '... | zzchatmb | tags/chatFr.php | PHP | mit | 6,720 |
<?php
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', '', 0, null, null, false, ... | zzchatmb | tags/signupFr.php | PHP | mit | 3,168 |
//Fonction qui colorie les cases
function underline(block, erreur)
{
if(erreur)
block.style.backgroundColor = "red";
else
block.style.backgroundColor = "green";
}
// Fonction vérifiant le login
function checklogin(block)
{
var space = /\s/g;
// Le login doit avoir une taille >5 et ne... | zzchatmb | tags/signupEng.js | JavaScript | mit | 2,579 |
<?php
require_once("chatFr.php");
class test extends PHPUnit_Framework_TestCase
{
public function setUp()
{
echo "I run before each test\n";
}
public function testRegister()
{
$this->assertFileExists('/home/mbaye/Documents/dev web/mess_sessionFr.txt');
}
public function testfilewrite()
{... | zzchatmb | tags/TestchatFr.php | PHP | mit | 1,080 |
<?php
require ('checkEng.php');
if ($_SESSION['login1'] == NULL) {
header('Location: authentifEng.php');
}
else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<link ... | zzchatmb | tags/profileEng.php | PHP | mit | 1,601 |
<?php
require_once("checkFr.php");
class test extends PHPUnit_Framework_TestCase
{
public function setUp()
{
echo "I run before each test\n";
}
public function testRegister()
{
$this->assertFileExists('/home/mbaye/Documents/devweb/registerFr.txt');
}
public function testOnline()
{... | zzchatmb | tags/TestcheckFr.php | PHP | mit | 1,158 |
<?php
require_once("signupFr.php");
class test extends PHPUnit_Framework_TestCase
{
public function setUp()
{
echo "I run before each test\n";
}
public function testmanage()
{
$login="mama";
$pwd="passe";
$this->assertFalse(manage($login, $pwd));
}
public function TearDown()
{
echo "I run a... | zzchatmb | tags/TestsignFr.php | PHP | mit | 350 |
//============================================================================
// Name : Login.cpp
// Author : zhou zhao
// Version :
// Copyright : Your copyright notice
// Description : EE450 Fall 2011 UNIX Socket Programming Project
//================================================================... | zzfall2011ee450-1 | Login.cpp | C++ | gpl3 | 8,473 |
/*
* SuperRecord.h
*
* Created on: Nov 12, 2011
* Author: zhouzhao
*/
#ifndef SUPERRECORD_H_
#define SUPERRECORD_H_
#include <string>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
using namespace std;
class SuperRecord {
private:
string username;
string ipaddr;
string port;
int soc... | zzfall2011ee450-1 | SuperRecord.h | C++ | gpl3 | 727 |
//============================================================================
// Name : User.cpp
// Author : zhou zhao
// Version :
// Copyright : Your copyright notice
// Description : EE450 Fall 2011 UNIX Socket Programming Project
//=================================================================... | zzfall2011ee450-1 | User.cpp | C++ | gpl3 | 7,737 |
/*
* ServerRecord.h
*
* Created on: Nov 5, 2011
* Author: zhouzhao
*/
#ifndef SERVERRECORD_H_
#define SERVERRECORD_H_
#include <string>
using namespace std;
class ServerRecord {
private:
unsigned int userid;
string username;
string password;
string ipaddr;
string portnum;
bool login;
public:
Serv... | zzfall2011ee450-1 | ServerRecord.h | C++ | gpl3 | 755 |
//============================================================================
// Name : Supernode.cpp
// Author : zhou zhao
// Version :
// Copyright : Your copyright notice
// Description : EE450 Fall 2011 UNIX Socket Programming Project
//============================================================... | zzfall2011ee450-1 | Supernode.cpp | C++ | gpl3 | 8,757 |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| zyh9992004-fanfou | tools/openHttpDebug.sh | Shell | asf20 | 229 |
package com.ch_linghu.fanfoudroid;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.B... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/DmActivity.java | Java | asf20 | 17,752 |
package com.ch_linghu.fanfoudroid;
import java.text.MessageFormat;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Adapte... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/FollowingActivity.java | Java | asf20 | 3,315 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/LoginActivity.java | Java | asf20 | 11,240 |
package com.ch_linghu.fanfoudroid.data;
import com.ch_linghu.fanfoudroid.fanfou.DirectMessage;
import com.ch_linghu.fanfoudroid.fanfou.User;
import com.ch_linghu.fanfoudroid.util.TextHelper;
public class Dm extends Message {
@SuppressWarnings("unused")
private static final String TAG = "Dm";
public... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/data/Dm.java | Java | asf20 | 884 |
package com.ch_linghu.fanfoudroid.data;
import java.util.Date;
public class Message {
public String id;
public String screenName;
public String text;
public String profileImageUrl;
public Date createdAt;
public String userId;
public String favorited;
public String truncated;
public St... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/data/Message.java | Java | asf20 | 517 |
package com.ch_linghu.fanfoudroid.data;
import android.database.Cursor;
public interface BaseContent {
long insert();
int delete();
int update();
Cursor select();
}
| zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/data/BaseContent.java | Java | asf20 | 184 |
package com.ch_linghu.fanfoudroid.data;
import java.util.Date;
import android.os.Parcel;
import android.os.Parcelable;
public class User implements Parcelable {
public String id;
public String name;
public String screenName;
public String location;
public String description;
public String profil... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/data/User.java | Java | asf20 | 2,793 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/data/Tweet.java | Java | asf20 | 6,379 |
package com.ch_linghu.fanfoudroid.db;
/**
* All information of status table
*
*/
public final class StatusTablesInfo {
} | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/db/StatusTablesInfo.java | Java | asf20 | 136 |
package com.ch_linghu.fanfoudroid.db;
import android.database.Cursor;
import android.provider.BaseColumns;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.util.DateTimeHelper;
/**
* Table - Statuses
* <br /> <br />
* 为节省流量,故此表不保证本地数据库中所有消息具有前后连贯性, 而只确保最新的MAX_... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/db/StatusTable.java | Java | asf20 | 6,715 |
package com.ch_linghu.fanfoudroid.db;
import android.database.Cursor;
import android.provider.BaseColumns;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data.User;
public final class UserInfoTable implements BaseColumns {
public static final String TAG = "UserInfoTable";
public static... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/db/UserInfoTable.java | Java | asf20 | 4,443 |
package com.ch_linghu.fanfoudroid.db;
import java.io.File;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.Locale;
import android.content.ContentValues;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
imp... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/db/TwitterDatabase.java | Java | asf20 | 39,493 |
package com.ch_linghu.fanfoudroid.db;
import java.text.ParseException;
import android.database.Cursor;
import android.provider.BaseColumns;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data.User;
/**
* Table - Followers
*
*/
public final class FollowTable implements BaseColumns {
... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/db/FollowTable.java | Java | asf20 | 4,626 |
package com.ch_linghu.fanfoudroid.db;
import java.text.ParseException;
import android.database.Cursor;
import android.provider.BaseColumns;
import android.util.Log;
import com.ch_linghu.fanfoudroid.data.Dm;
/**
* Table - Direct Messages
*
*/
public final class MessageTable implements BaseColumns {
publ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/db/MessageTable.java | Java | asf20 | 3,293 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/StatusActivity.java | Java | asf20 | 21,838 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/PreferencesActivity.java | Java | asf20 | 3,039 |
package com.ch_linghu.fanfoudroid;
import java.util.HashSet;
import org.acra.ReportingInteractionMode;
import org.acra.annotation.ReportsCrashes;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.net.Con... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/TwitterApplication.java | Java | asf20 | 6,911 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/service/TwitterService.java | Java | asf20 | 19,229 |
package com.ch_linghu.fanfoudroid.service;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.List;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/service/WidgetService.java | Java | asf20 | 4,485 |
package com.ch_linghu.fanfoudroid.service;
import java.util.List;
import android.content.Context;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.util.Log;
/**
* Location S... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/service/LocationService.java | Java | asf20 | 3,675 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/service/BootReceiver.java | Java | asf20 | 1,245 |
package com.ch_linghu.fanfoudroid.service;
public interface IService {
void startService();
void stopService();
}
| zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/service/IService.java | Java | asf20 | 123 |
package com.ch_linghu.fanfoudroid.http;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/http/Response.java | Java | asf20 | 6,106 |
package com.ch_linghu.fanfoudroid.http;
/**
* HTTP StatusCode is not 200
*/
public class HttpException extends Exception {
private int statusCode = -1;
public HttpException(String msg) {
super(msg);
}
public HttpException(Exception cause) {
super(cause);
}
public HttpE... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/http/HttpException.java | Java | asf20 | 741 |
package com.ch_linghu.fanfoudroid.http;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.zip.GZIPInputStream;
impor... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/http/HttpClient.java | Java | asf20 | 28,093 |
package com.ch_linghu.fanfoudroid.http;
import java.util.HashMap;
import java.util.Map;
public class HTMLEntity {
public static String escape(String original) {
StringBuffer buf = new StringBuffer(original);
escape(buf);
return buf.toString();
}
public static void escape(StringBuf... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/http/HTMLEntity.java | Java | asf20 | 26,524 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/MentionActivity.java | Java | asf20 | 3,429 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import android.app.SearchManager;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.Menu;
import android.widget... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/SearchResultActivity.java | Java | asf20 | 7,883 |
package com.ch_linghu.fanfoudroid.db2;
import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import com.ch_linghu.fanfoudroid.db2.FanContent.*;
public class FanDatabase {
priva... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/db2/FanDatabase.java | Java | asf20 | 3,588 |
package com.ch_linghu.fanfoudroid.db2;
import java.util.ArrayList;
import java.util.Arrays;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
/**
* Wrapper of SQliteDatabse#query, OOP style.
*
* Usage:
* ----------------... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/db2/Query.java | Java | asf20 | 9,118 |
package com.ch_linghu.fanfoudroid.db2;
public abstract class FanContent {
public static class StatusTable{
public static final String TABLE_NAME = "statuses";
public static class Columns {
public static final String ID = "_id";
public static final String STATUS_ID = "... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/db2/FanContent.java | Java | asf20 | 4,085 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.ListView;
import android.widget.TextView;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoud... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/UserTimelineActivity.java | Java | asf20 | 14,130 |
package com.ch_linghu.fanfoudroid.util;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Arrays;
import java.util.HashMap;
import android.util.Log;
import com.ch_linghu.fanfoudroid.TwitterApplication;
/**
* Debug Timer
*
* Usage:
* --------------------------------
* DebugTimer.s... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/util/DebugTimer.java | Java | asf20 | 4,762 |
package com.ch_linghu.fanfoudroid.util;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import android.util.Log;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.TwitterAppl... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/util/DateTimeHelper.java | Java | asf20 | 3,539 |
package com.ch_linghu.fanfoudroid.util;
import android.os.Bundle;
public class MiscHelper {
private static final String TAG = "MiscHelper";
public static boolean isTrue(Bundle bundle, String key) {
return bundle != null && bundle.containsKey(key)
&& bundle.getBoolean(key);
}
}
| zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/util/MiscHelper.java | Java | asf20 | 317 |
package com.ch_linghu.fanfoudroid.util;
import java.io.InputStream;
import java.io.OutputStream;
public class StreamUtils {
public static void CopyStream(InputStream is, OutputStream os)
{
final int buffer_size=1024;
try
{
byte[] bytes=new byte[buffer_size];
... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/util/StreamUtils.java | Java | asf20 | 572 |
package com.ch_linghu.fanfoudroid.util;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.TwitterApplication;
public class PhotoHelper {
private static final String TAG = "ImageHelper";
private static Pattern PHOTO_PAGE_LINK = Pat... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/util/PhotoHelper.java | Java | asf20 | 1,774 |
package com.ch_linghu.fanfoudroid.util;
public class EncryptUtils {
private static final String SECRET_CODE = "::SECRET::";
public static String encryptPassword(String password) {
//return Base64.encodeToString(password.getBytes(), Base64.DEFAULT);
return password;
}
public static St... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/util/EncryptUtils.java | Java | asf20 | 464 |
package com.ch_linghu.fanfoudroid.util;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import android.t... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/util/TextHelper.java | Java | asf20 | 5,452 |
package com.ch_linghu.fanfoudroid.util;
import java.io.File;
import java.io.IOException;
import android.os.Environment;
/**
* 对SD卡文件的管理
* @author ch.linghu
*
*/
public class FileHelper {
private static final String TAG = "FileHelper";
private static final String BASE_PATH="fanfoudroid";
public st... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/util/FileHelper.java | Java | asf20 | 813 |
package com.ch_linghu.fanfoudroid.fanfou;
/**
* An exception class that will be thrown when WeiboAPI calls are failed.<br>
* In case the Fanfou server returned HTTP error code, you can get the HTTP status code using getStatusCode() method.
*/
public class WeiboException extends Exception {
private int statusCod... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/WeiboException.java | Java | asf20 | 982 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/RetweetDetails.java | Java | asf20 | 6,255 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/Configuration.java | Java | asf20 | 12,102 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/Paging.java | Java | asf20 | 3,847 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/Trends.java | Java | asf20 | 6,595 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/Trend.java | Java | asf20 | 3,323 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/QueryResult.java | Java | asf20 | 6,405 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/Weibo.java | Java | asf20 | 61,360 |
/*
* UserObjectWapper.java created on 2010-7-28 上午08:48:35 by bwl (Liu Daoru)
*/
package com.ch_linghu.fanfoudroid.fanfou;
import java.io.Serializable;
import java.util.List;
/**
* 对User对象列表进行的包装,以支持cursor相关信息传递
* @author liudaoru - daoru at sina.com.cn
*/
public class UserWapper implements Seriali... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/UserWapper.java | Java | asf20 | 1,281 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/Photo.java | Java | asf20 | 3,160 |
/*
Copyright (c) 2007-2009
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following dis... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/Query.java | Java | asf20 | 6,708 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/WeiboResponse.java | Java | asf20 | 9,049 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/SavedSearch.java | Java | asf20 | 5,041 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/DirectMessage.java | Java | asf20 | 7,766 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/WeiboSupport.java | Java | asf20 | 2,533 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/User.java | Java | asf20 | 25,389 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/RefuseError.java | Java | asf20 | 4,494 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/Status.java | Java | asf20 | 13,518 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/IDs.java | Java | asf20 | 4,847 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/fanfou/RateLimitStatus.java | Java | asf20 | 4,015 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.database.Cursor;
import android.os.Bundle;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.db.StatusTable;
import com.ch_linghu.fanfoudroid.fanfou.Status;
import com.ch_linghu.fanfoudroi... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/BrowseActivity.java | Java | asf20 | 2,319 |
package com.ch_linghu.fanfoudroid.data2;
public class Photo {
private String thumburl;
private String imageurl;
private String largeurl;
public Photo() {}
public String getThumburl() {
return thumburl;
}
public void setThumburl(String thumburl) {
this.thumburl = thumb... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/data2/Photo.java | Java | asf20 | 815 |
package com.ch_linghu.fanfoudroid.data2;
import java.util.Date;
public class User {
private String id;
private String name;
private String screen_name;
private String location;
private String desription;
private String profile_image_url;
private String url;
private boolean isProtected;... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/data2/User.java | Java | asf20 | 4,354 |
package com.ch_linghu.fanfoudroid.data2;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
public class DataUtils {
static SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy", Locale.US);
pub... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/data2/DataUtils.java | Java | asf20 | 570 |
package com.ch_linghu.fanfoudroid.data2;
import java.util.Date;
public class Status {
private Date created_at;
private String id;
private String text;
private String source;
private boolean truncated;
private String in_reply_to_status_id;
private String in_reply_to_user_id;
privat... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/data2/Status.java | Java | asf20 | 4,203 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/app/ImageManager.java | Java | asf20 | 16,006 |
package com.ch_linghu.fanfoudroid.app;
import android.graphics.Bitmap;
import android.widget.ImageView;
import com.ch_linghu.fanfoudroid.TwitterApplication;
import com.ch_linghu.fanfoudroid.app.LazyImageLoader.ImageLoaderCallback;
public class SimpleImageLoader {
public static void display(final ImageView i... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/app/SimpleImageLoader.java | Java | asf20 | 912 |
package com.ch_linghu.fanfoudroid.app;
import java.lang.Thread.State;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import android.graphi... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/app/LazyImageLoader.java | Java | asf20 | 6,721 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/app/Preferences.java | Java | asf20 | 2,723 |
package com.ch_linghu.fanfoudroid.app;
import java.util.HashMap;
import android.graphics.Bitmap;
public class MemoryImageCache implements ImageCache {
private HashMap<String, Bitmap> mCache;
public MemoryImageCache() {
mCache = new HashMap<String, Bitmap>();
}
@Override
public Bitmap ... | zyh9992004-fanfou | src/com/ch_linghu/fanfoudroid/app/MemoryImageCache.java | Java | asf20 | 831 |