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 |
|---|---|---|---|---|---|
package net.srcz.android.screencast.api.injector;
import com.android.ddmlib.SyncService.ISyncProgressMonitor;
public class NullSyncProgressMonitor implements ISyncProgressMonitor {
public void advance(int arg0) {
}
public boolean isCanceled() {
return false;
}
public void start(int arg0) {
}
... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/api/injector/NullSyncProgressMonitor.java | Java | asf20 | 407 |
package net.srcz.android.screencast.api.injector;
import java.io.IOException;
import java.io.OutputStream;
import com.android.ddmlib.IShellOutputReceiver;
public class OutputStreamShellOutputReceiver implements IShellOutputReceiver {
OutputStream os;
public OutputStreamShellOutputReceiver(OutputStrea... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/api/injector/OutputStreamShellOutputReceiver.java | Java | asf20 | 612 |
package net.srcz.android.screencast.api.injector;
public class ConstEvtKey {
// Field descriptor #13 I
public static final int KEYCODE_UNKNOWN = 0;
// Field descriptor #13 I
public static final int KEYCODE_SOFT_LEFT = 1;
// Field descriptor #13 I
public static final int KEYCODE... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/api/injector/ConstEvtKey.java | Java | asf20 | 9,059 |
package net.srcz.android.screencast.api.injector;
import java.awt.event.KeyEvent;
public class KeyCodeConverter {
public static int getKeyCode(KeyEvent e) {
char c = e.getKeyChar();
int code = 0;
if(Character.isLetter(c))
code = ConstEvtKey.KEYCODE_A + (Character.toLowerCase(c)-'a');
if(Charac... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/api/injector/KeyCodeConverter.java | Java | asf20 | 2,171 |
package net.srcz.android.screencast.api.injector;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
import net.srcz.android.screencast.api.AndroidDevice;
import net.srcz.android.screencast.api.StreamUtils;
import com... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/api/injector/Injector.java | Java | asf20 | 5,257 |
package net.srcz.android.screencast.api.injector;
public class ConstEvtMotion {
// Field descriptor #10 I
public static final int ACTION_DOWN = 0;
// Field descriptor #10 I
public static final int ACTION_UP = 1;
// Field descriptor #10 I
public static final int ACTION_MOVE = 2;
... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/api/injector/ConstEvtMotion.java | Java | asf20 | 804 |
package net.srcz.android.screencast.api.file;
import java.io.File;
import net.srcz.android.screencast.api.AndroidDevice;
public class FileInfo {
public AndroidDevice device;
public String path;
public String attribs;
public boolean directory;
public String name;
public File downloadTemporary() {
try {
... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/api/file/FileInfo.java | Java | asf20 | 585 |
package net.srcz.android.screencast.api;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Vector;
import net.srcz.android.screencast.api.file.FileInfo;
import net.srcz.android.screencast.api.injector.NullSyncProgressMonitor;
import net... | zyq726-0001 | AndroidScreencast/src/net/srcz/android/screencast/api/AndroidDevice.java | Java | asf20 | 2,969 |
package net.srcz.android.screencast.client;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
public class Main {
static boolean debug = false;
int port;
public Main(int port, boolean debug) {
this.port = port;
this.debug = debug;
}
public void exe... | zyq726-0001 | AndroidScreencastClient/src/net/srcz/android/screencast/client/Main.java | Java | asf20 | 2,458 |
package net.srcz.android.screencast.client;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.Socket;
import android.os.IBinder;
import android.os.RemoteException;
import android.os.ServiceMa... | zyq726-0001 | AndroidScreencastClient/src/net/srcz/android/screencast/client/ClientHandler.java | Java | asf20 | 3,540 |
del classes.dex
set PATH=%PATH%;C:\Users\a015843\Documents\perso\android-sdk-windows-1.5_r3_\platforms\android-1.5\tools
cmd /c dx --dex --output=C:\Users\a015843\eclipse-workspace\AndroidScreencastClient\classes.dex C:\Users\a015843\eclipse-workspace\AndroidScreencastClient\MyInjectEventApp.jar
aapt add MyInjectEve... | zyq726-0001 | AndroidScreencastClient/MyInjectEventApp.bat | Batchfile | asf20 | 475 |
package net.appositedesigns.fileexplorer.activity;
import net.appositedesigns.fileexplorer.util.BookmarksHelper;
import net.appositedesigns.fileexplorer.util.PreferenceHelper;
import android.app.ListActivity;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceCha... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/activity/BaseFileListActivity.java | Java | gpl3 | 1,804 |
package net.appositedesigns.fileexplorer.activity;
import android.app.ActionBar;
import android.app.ActionBar.OnNavigationListener;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.DialogInterface;
import android.content.Intent;
import android.... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/activity/FileListActivity.java | Java | gpl3 | 16,569 |
package net.appositedesigns.fileexplorer.activity;
import android.content.Intent;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceClickListener;
import android.preference.PreferenceActivity;
import android.preference.PreferenceFragment;
import an... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/activity/SettingsActivity.java | Java | gpl3 | 3,276 |
package net.appositedesigns.fileexplorer.activity;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.R.string;
import net.appositedesigns.fileexplorer.util.PreferenceHelper;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.DialogInte... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/activity/EulaPopupBuilder.java | Java | gpl3 | 1,520 |
package net.appositedesigns.fileexplorer.activity;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import net.appositedesigns.fileexplorer.FileExplorerApp;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.adapters... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/activity/BookmarkListActivity.java | Java | gpl3 | 6,757 |
package net.appositedesigns.fileexplorer.model;
import java.util.List;
public class FileListing {
private List<FileListEntry> children;
private boolean isExcludeFromMedia = false;
public List<FileListEntry> getChildren() {
return children;
}
public void setChildren(List<FileListEntry> children) ... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/model/FileListing.java | Java | gpl3 | 654 |
package net.appositedesigns.fileexplorer.adapters;
import java.util.List;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.activity.BookmarkListActivity;
import net.appositedesigns.fileexplorer.model.FileListEntry;
import net.appositedesigns.fileexplorer.util.Util;
import and... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/adapters/BookmarkListAdapter.java | Java | gpl3 | 2,702 |
package net.appositedesigns.fileexplorer.adapters;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import net.appositedesigns.fileexplorer.R;
import net.appositede... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/adapters/FileListAdapter.java | Java | gpl3 | 2,561 |
package net.appositedesigns.fileexplorer.callbacks;
public interface CancellationCallback {
void onCancel();
}
| zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/callbacks/CancellationCallback.java | Java | gpl3 | 120 |
package net.appositedesigns.fileexplorer.callbacks;
public interface OperationCallback<T> {
T onSuccess();
void onFailure(Throwable e);
}
| zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/callbacks/OperationCallback.java | Java | gpl3 | 149 |
package net.appositedesigns.fileexplorer.callbacks;
import android.content.Intent;
import android.net.Uri;
import android.view.ActionMode;
import android.view.ActionMode.Callback;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.webkit.MimeTypeMap;
impo... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/callbacks/FileActionsCallback.java | Java | gpl3 | 3,369 |
package net.appositedesigns.fileexplorer.util;
public class AbortionFlag {
private boolean aborted = false;
public synchronized void abort()
{
aborted = true;
}
public synchronized boolean isAborted()
{
return aborted;
}
}
| zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/util/AbortionFlag.java | Java | gpl3 | 253 |
package net.appositedesigns.fileexplorer.util;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Environment;
import android.os.StatFs;
import android.text.InputTy... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/util/Util.java | Java | gpl3 | 11,837 |
package net.appositedesigns.fileexplorer.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
/**
* The class provides the utility method to zip files or folders uses
* java.util.zip package underne... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/util/ZipUtil.java | Java | gpl3 | 2,306 |
package net.appositedesigns.fileexplorer.util;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Instrumentation.ActivityResult;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
import... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/util/FileActionsHelper.java | Java | gpl3 | 13,797 |
package net.appositedesigns.fileexplorer.util;
import java.util.Comparator;
import net.appositedesigns.fileexplorer.activity.BaseFileListActivity;
import net.appositedesigns.fileexplorer.activity.FileListActivity;
import net.appositedesigns.fileexplorer.model.FileListEntry;
import net.appositedesigns.fileexplo... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/util/FileListSorter.java | Java | gpl3 | 1,484 |
package net.appositedesigns.fileexplorer.util;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import net.appositedesigns.fileexplorer.activity.BookmarkListActivity;
import net.appositedesigns.fileexplorer.model.FileListEntry;... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/util/BookmarksHelper.java | Java | gpl3 | 5,004 |
package net.appositedesigns.fileexplorer.util;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import net.appositedesigns.fileexplorer.FileExplorerApp;
import net.appositedesigns.fileexplorer.exception.Location... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/util/PreferenceHelper.java | Java | gpl3 | 6,190 |
package net.appositedesigns.fileexplorer.workers;
import java.io.File;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.activity.FileListActivity;
import net.appositedesigns.fileexplorer.exception.LocationInvalidException;
import net.appositedesigns.fileexplorer.util.AbortionF... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/workers/Zipper.java | Java | gpl3 | 6,303 |
package net.appositedesigns.fileexplorer.workers;
import java.io.File;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.activity.FileListActivity;
import net.appositedesigns.fileexplorer.util.AbortionFlag;
import net.appositedesigns.fileexplorer.util.Util;
import android.app.... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/workers/FileMover.java | Java | gpl3 | 3,427 |
package net.appositedesigns.fileexplorer.workers;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Map;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.activity.FileListActivity;
... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/workers/Finder.java | Java | gpl3 | 4,111 |
package net.appositedesigns.fileexplorer.workers;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.activity.BookmarkListActivity;
import net.appositedesigns.fileexplorer.mod... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/workers/BookmarkLoader.java | Java | gpl3 | 2,891 |
package net.appositedesigns.fileexplorer.workers;
import java.io.File;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.activity.FileListActivity;
import net.appositedesigns.fileexplorer.callbacks.OperationCallback;
import net.appositedesigns.fileexplorer.util.Util;
import an... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/workers/Trasher.java | Java | gpl3 | 3,281 |
package net.appositedesigns.fileexplorer.workers;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.zip.Zi... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/workers/Unzipper.java | Java | gpl3 | 7,521 |
package net.appositedesigns.fileexplorer.exception;
public class LocationInvalidException extends Exception {
private static final long serialVersionUID = -4046926680600982016L;
private String location;
public LocationInvalidException(String location) {
super();
this.location = location;
}
p... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/exception/LocationInvalidException.java | Java | gpl3 | 462 |
package net.appositedesigns.fileexplorer;
import android.app.Application;
import android.content.Intent;
public class FileExplorerApp extends Application {
public static final int THEME_BLACK = R.style.Theme_FileExplorer;
public static final int THEME_WHITE = R.style.Theme_FileExplorer_Light;
public stat... | zzkkugou-android-file-explorer | src/net/appositedesigns/fileexplorer/FileExplorerApp.java | Java | gpl3 | 1,261 |
/**
* New node file
*/
| zzz-tce | index.js | JavaScript | oos | 25 |
body
padding: 50px
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif
a
color: #00B7FF | zzz-tce | public/stylesheets/style.styl | Stylus | oos | 102 |
body {
padding: 50px;
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}
a {
color: #00b7ff;
}
| zzz-tce | public/stylesheets/style.css | CSS | oos | 110 |
<!DOCTYPE html>
<html>
<head>
<title><%= title %></title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
<h1><%= title %></h1>
<p>Welcome to <%= title %></p>
</body>
</html> | zzz-tce | views/index.ejs | EJS | oos | 231 |
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, user = require('./routes/user')
, http = require('http')
, path = require('path');
var app = express();
// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname +... | zzz-tce | app.js | JavaScript | oos | 1,027 |
/*
* GET home page.
*/
exports.index = function(req, res){
res.render('index', { title: 'Express' });
}; | zzz-tce | routes/index.js | JavaScript | oos | 117 |
/*
* GET users listing.
*/
exports.list = function(req, res){
res.send("respond with a resource");
}; | zzz-tce | routes/user.js | JavaScript | oos | 114 |
/*
* Copyright 2012 Hai Bison
*
* 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 ... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/prefs/DisplayPrefs.java | Java | asf20 | 5,421 |
/*
* Copyright 2012 Hai Bison
*
* 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 ... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/prefs/Prefs.java | Java | asf20 | 2,882 |
/*
* Copyright 2012 Hai Bison
*
* 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 ... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/prefs/SecurityPrefs.java | Java | asf20 | 4,281 |
/*
* Copyright 2012 Hai Bison
*
* 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 ... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/util/IEncrypter.java | Java | asf20 | 1,541 |
/*
* Copyright 2012 Hai Bison
*
* 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 ... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/util/UI.java | Java | asf20 | 4,152 |
/*
* Copyright 2012 Hai Bison
*
* 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 ... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/util/Randoms.java | Java | asf20 | 2,824 |
/*
* Copyright 2012 Hai Bison
*
* 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 ... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/util/InvalidEncrypterException.java | Java | asf20 | 998 |
/*
* Copyright 2012 Hai Bison
*
* 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 ... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/util/Sys.java | Java | asf20 | 1,064 |
/*
* Copyright 2012 Hai Bison
*
* 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 ... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/widget/ViewCompat_v16.java | Java | asf20 | 1,245 |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 app... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/widget/LockPatternView.java | Java | asf20 | 47,483 |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 app... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/widget/LockPatternUtils.java | Java | asf20 | 10,471 |
/*
* Copyright 2012 Hai Bison
*
* 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 ... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/widget/LockPatternView_v14.java | Java | asf20 | 2,289 |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 app... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/collect/Lists.java | Java | asf20 | 2,227 |
/*
* Copyright 2012 Hai Bison
*
* 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 ... | zzljob-android-lockpattern | code/src/group/pals/android/lib/ui/lockpattern/LockPatternActivity.java | Java | asf20 | 31,512 |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 app... | zzljob-android-lockpattern | resources/original source/LockPatternView.java | Java | asf20 | 41,812 |
package cat.model;
public class Budget {
private Integer id;
private Integer categoryID;
private String year;
private String month;
private String color75;
private String color90;
private Float money;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
... | zzuoqiang- | src/cat/model/Budget.java | Java | mit | 1,096 |
package cat.model;
public class Overdraw {
private int id;
private long time;
private float money;
private String remark;
private String address;
private long returnTime;
private float returnMoney;
private String returnRemark;
private int completed;
public int getId() {
return id;
}
p... | zzuoqiang- | src/cat/model/Overdraw.java | Java | mit | 1,458 |
package cat.model;
public class Category {
private Integer id;
private Integer parentID;
private String type;
private String name;
private Integer displayOrder;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getParentID() {
retu... | zzuoqiang- | src/cat/model/Category.java | Java | mit | 816 |
package cat.model;
public class Item {
private Integer id;
private String title;
private Long time;
private Float money;
private Integer categoryID;
private String remark;
private String user;
private String address;
private String categoryName;
private String parentCategoryName;
public Integ... | zzuoqiang- | src/cat/model/Item.java | Java | mit | 1,646 |
package cat.model;
import java.util.Vector;
public class NavigatePage {
private int totalPage;
private int total;
private Vector<Vector> currentPageResult;
private Float totalIncome = 0f;
private Float totalExpenditure = 0f;
private Float totalBalance = 0f;
public int getTotalPage() {
return t... | zzuoqiang- | src/cat/model/NavigatePage.java | Java | mit | 1,239 |
package cat;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.bluetooth.BluetoothStateException;
import javax.bluetooth.DeviceClass;
import javax.bluetooth.DiscoveryAgent;
import javax.bluetooth.DiscoveryListener;
import javax.bluetooth.LocalDevice;
import j... | zzuoqiang- | src/cat/RFClientOne.java | Java | mit | 4,001 |
package cat;
import java.awt.Component;
import net.sf.nachocalendar.components.DateField;
import net.sf.nachocalendar.components.DefaultHeaderRenderer;
import net.sf.nachocalendar.components.HeaderPanel;
import net.sf.nachocalendar.components.HeaderRenderer;
public class DateField2
extends DateField
... | zzuoqiang- | src/cat/DateField2.java | Java | mit | 907 |
#include <windows.h>
#include <jni.h>
#define PATH_SEPARATOR ';' /* define it to be ':' on Solaris */
#define USER_CLASSPATH "core.jar;dependencies/nachocalendar-0.23.jar;dependencies/jcommon-1.0.16.jar;dependencies/jfreechart-1.0.13.jar;dependencies/poi-3.7-20101029.jar;dependencies/sqlitejdbc-v056.jar"
int __... | zzuoqiang- | wrap/vc/wrapper.c | C | mit | 2,306 |
all:
cd vc && nmake deploy
clean:
cd vc && nmake clean
| zzuoqiang- | wrap/Makefile | Makefile | mit | 65 |
#include <stdlib.h>
#include <stdio.h>
int main(){
// puts("hello java");
system("start javaw -jar core.jar");
return 0;
}
| zzuoqiang- | wrap/gcc/wrapper.c | C | mit | 135 |
package backup;
import cat.DateField2;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Logger;
import java.awt.Component;
import javax.swing.AbstractCellEditor;
import javax.swing.JTable;
import javax.swing.table.TableCellEditor;
pu... | zzuoqiang- | old/backup/DateCellEditor.java | Java | mit | 1,043 |
import texture.TexturePacket;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;
import com.badlogic.gd... | zzzzzzzzzzzzzzzzz | trunk/src/RockMan.java | Java | art | 1,198 |
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL10;
public class GameScreen implements Screen {
World world;
WorldRender worldRender;
@Override
public void dispose() {
}
@Override
public void hide() {
}
@Override
public void pause() {
... | zzzzzzzzzzzzzzzzz | trunk/src/GameScreen.java | Java | art | 671 |
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.scenes.scene2d.Group;
public class World extends Group {
public RockMan rockMan;
public World() {
rockMan = new RockMan(new Vector2(1, 1));
addActor(rockMan);
}
}
| zzzzzzzzzzzzzzzzz | trunk/src/World.java | Java | art | 245 |
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
cfg.title = "Roc... | zzzzzzzzzzzzzzzzz | trunk/src/Main.java | Java | art | 447 |
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public class FlashScreen implements Screen {
MyGame myGame;
Texture textureBg;
SpriteBatch spriteBatch;
public ... | zzzzzzzzzzzzzzzzz | trunk/src/FlashScreen.java | Java | art | 1,056 |
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
public class MyGame extends com.badlogic.gdx.Game {
FlashScreen flashScreen;
public static int WIDTH;
public static int HEIGHT;
@Override
public void create() {
WIDTH = Gdx.graphics.getWidth();
HEIGHT = Gdx.graphics.getHeight()... | zzzzzzzzzzzzzzzzz | trunk/src/MyGame.java | Java | art | 438 |
package texture;
import java.util.List;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
public class TexturePacket {
public TextureAtlas atlas;
static TexturePacket self;
public static TexturePacket getInstance() {
... | zzzzzzzzzzzzzzzzz | trunk/src/texture/TexturePacket.java | Java | art | 852 |
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.scenes.scene2d.Stage;
public class WorldRender {
World world;
ShapeRenderer shapeRenderer;
Stage stage;
public WorldRender(World w) {
stage = new Stage()... | zzzzzzzzzzzzzzzzz | trunk/src/WorldRender.java | Java | art | 826 |
// JavaScript Document
var UU = new Array(0, 0, 1, -1);
var VV = new Array(1, -1, 0, 0);
function getRandom(n) {
return Math.round(Math.random() * (n - 1));
}
function newArray(col) {
var a = new Array;
for (var i = 0; i < col; i++)
a[i] = new Array;
return a;
}
function Point(x, y) {
this.x = x;
this.y = y... | zzzzzzzzzzzzzzzzz | trunk/Algorithms.js | JavaScript | art | 7,035 |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define _GNU_SOURCE
#include <getopt.h>
#include "common.h"
#define PORT 42380
#define BUF_SIZE 256
#define SCREENSHOT_CMD "... | zzou-screenshot | native/main.c | C | bsd | 7,145 |
/*
* fbshot.c -- FrameBuffer Screen Capture Utility
* (C)opyright 2002 sfires@sfires.net
*
* Originally Written by: Stephan Beyer <PH-Linex@gmx.net>
* Further changes by: Paul Mundt <lethal@chaoticdreams.org>
* Rewriten and maintained by: Dariusz Swiderski <sfires@sfires.net>
* Modular version by: Karol Kuczmars... | zzou-screenshot | native/fbshot.c | C | bsd | 9,985 |
#ifndef COMMON_H
#define COMMON_H
struct picture{
int xres,yres;
char *buffer;
struct fb_cmap *colormap;
char bps,gray;
};
int TakeScreenshot (char* device, struct picture* pict);
#endif
| zzou-screenshot | native/common.h | C | bsd | 198 |
@ set GCC=arm-none-linux-gnueabi-gcc.exe
@ set C_FLAGS=-DDEBUG
@ set ADB=C:\Android\tools\adb.exe
@echo Compiling...
@ %GCC% %C_FLAGS% -c main.c -o main.o
@if not ERRORLEVEL 0 goto Error
@ %GCC% %C_FLAGS% -c fbshot.c -o fbshot.o
@if not ERRORLEVEL 0 goto Error
@echo Linking...
@ %GCC% --static fbshot.o m... | zzou-screenshot | native/make.bat | Batchfile | bsd | 680 |
# Android Screenshot Library
# -- Native Android application --
# Makefile
x86_GCC=gcc
ARM_GCC=/opt/local/arm-2010q1/bin/arm-none-linux-gnueabi-gcc
C_FLAGS=-DDEBUG
L_FLAGS=--static
ADB=/var/lib/google/android-sdk-linux_86/tools/adb
DEVICE_FILE=/data/local/asl-native
native: fbshot main
${ARM_GCC} ${L_FLAGS} fbsho... | zzou-screenshot | native/makefile | Makefile | bsd | 755 |
cmd /c make.bat | zzou-screenshot | native/make.ps1 | PowerShell | bsd | 15 |
### Android Screenshot Library ###
##################################
### Startup script ###
"Android Screenshot Library -- initializing..." | Out-Host
try
{
# Check whether ANDROID environmental variable is set
if ([String]::IsNullOrEmpty($Env:ANDROID)) {
"*** Android SDK not found. ***" |... | zzou-screenshot | desktop/run.ps1 | PowerShell | bsd | 1,886 |
@echo off
echo Android Screenshot Library -- Initializing...
if not defined ANDROID goto SdkPathNotDefined
echo Waiting for device to be connected...
%ANDROID%\platform-tools\adb.exe wait-for-device
echo - Installing native service...
%ANDROID%\platform-tools\adb.exe push ./asl-native /data/local/asl-nati... | zzou-screenshot | desktop/run.bat | Batchfile | bsd | 799 |
#!/bin/bash
# Android Screenshot Library #
##############################
# Startup script #
echo "Android Screenshot Library -- initializing..."
#
if [ -z $ANDROID ]; then
echo "*** Android SDK not found ***"
echo "Make sure the ANDROID variable is pointing to Android SDK root directory"
else
adb="$AN... | zzou-screenshot | desktop/run.sh | Shell | bsd | 893 |
<html>
<head>
<meta http-equiv="Refresh" content="0; url=http://code.google.com/p/android-screenshot-library/wiki/Usage">
<title>Android Screenshot Library</title>
</head>
<body>You should be redirected to ASL wiki page. If not, click <a href="http://code.google.com/p/android-screenshot-library/wiki/Usage">... | zzou-screenshot | readme.html | HTML | bsd | 345 |
package pl.polidea.asl;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.Method;
import java.net.InetSocketAddress;
import java.ne... | zzou-screenshot | demo/src/pl/polidea/asl/ScreenshotService.java | Java | bsd | 8,506 |
// AIDL file specifying interface used by clients to retrieve screenshots
package pl.polidea.asl;
// Interface for fetching screenshots
interface IScreenshotProvider {
// Checks whether the native background application is running
// (and thus whether the screenshots are available)
boolean isAvailable();
// Cre... | zzou-screenshot | demo/src/pl/polidea/asl/IScreenshotProvider.aidl | AIDL | bsd | 415 |
package pl.polidea.asl.demo;
import pl.polidea.asl.*;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.res.Resources.NotFoundException;
import android.os.*;
import android.v... | zzou-screenshot | demo/src/pl/polidea/asl/demo/ScreenshotDemo.java | Java | bsd | 2,705 |
# Android Screenshot Library
############################
# Publishing script
# Create directory for package
Remove-Item dist -Recurse -ErrorAction SilentlyContinue
New-Item dist -ItemType Directory -ErrorAction SilentlyContinue | Out-Null
# Copy native application
Copy-Item native/asl-native dist/
# Cop... | zzou-screenshot | publish.ps1 | PowerShell | bsd | 781 |
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
m4_define([MAJOR_VERSION], 1)
m4_define([MINOR_VERSION], 6)
m4_define([MICRO_VERSION], 1)
AC_PREREQ(2.59)
AC_INIT([klish],
[MAJOR_VERSION.MINOR_VERSION.MICRO_VERSION],
[serj... | zzysjtu-klish | configure.ac | M4Sugar | bsd | 15,589 |
/*
* conf.h
*/
/**
\ingroup clish
\defgroup clish_conf config
@{
\brief This class is a config in memory container.
Use it to implement config in memory.
*/
#ifndef _konf_tree_h
#define _konf_tree_h
#include <stdio.h>
#include "lub/types.h"
#include "lub/list.h"
typedef struct konf_tree_s konf_tree_t;
#define... | zzysjtu-klish | konf/tree.h | C | bsd | 2,254 |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
#include <assert.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
#include "lub/types.h"
#include "lub/ar... | zzysjtu-klish | konf/query/query.c | C | bsd | 6,479 |
#include "private.h"
#include "lub/dump.h"
/*-------------------------------------------------------- */
void konf_query_dump(konf_query_t *this)
{
const char *op;
lub_dump_printf("query(%p)\n", this);
lub_dump_indent();
switch (this->op) {
case KONF_QUERY_OP_SET:
op = "SET";
break;
case KONF_QUERY_OP_UNSE... | zzysjtu-klish | konf/query/query_dump.c | C | bsd | 1,230 |
#ifndef _konf_query_private_h
#define _konf_query_private_h
#include "konf/query.h"
#include "lub/types.h"
struct konf_query_s {
konf_query_op_t op;
char *pattern;
unsigned short priority;
bool_t seq; /* sequence aka auto priority */
unsigned short seq_num; /* sequence number */
unsigned int pwdc;
char **pwd;
... | zzysjtu-klish | konf/query/private.h | C | bsd | 403 |
/*
* buf.c
*
* This file provides the implementation of a buf class
*/
#include "private.h"
#include "lub/argv.h"
#include "lub/string.h"
#include "lub/ctype.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#define KONF_BUF_CHUNK 1024
/*-----------------------... | zzysjtu-klish | konf/buf/buf.c | C | bsd | 6,242 |
/*
* conf.h
*/
#ifndef _konf_buf_private_h
#define _konf_buf_private_h
#include "konf/buf.h"
#include "lub/bintree.h"
/*---------------------------------------------------------
* PRIVATE TYPES
*--------------------------------------------------------- */
struct konf_buf_s {
lub_bintree_node_t bt_node;
int fd;
... | zzysjtu-klish | konf/buf/private.h | C | bsd | 375 |