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 com.trilead.ssh2.transport; import java.math.BigInteger; import com.trilead.ssh2.DHGexParameters; import com.trilead.ssh2.crypto.dh.DhExchange; import com.trilead.ssh2.crypto.dh.DhGroupExchange; import com.trilead.ssh2.packets.PacketKexInit; /** * KexState. * * @author Christian Plattner, p...
1030365071-xuechao
src/com/trilead/ssh2/transport/KexState.java
Java
asf20
746
package com.trilead.ssh2; /** * In most cases you probably do not need the information contained in here. * * @author Christian Plattner, plattner@trilead.com * @version $Id: ConnectionInfo.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ */ public class ConnectionInfo { /** * The used key exchange ...
1030365071-xuechao
src/com/trilead/ssh2/ConnectionInfo.java
Java
asf20
1,378
package com.trilead.ssh2.crypto.cipher; /* This file was shamelessly taken from the Bouncy Castle Crypto package. Their licence file states the following: Copyright (c) 2000 - 2004 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) Permission is hereby granted, free of charge, to any perso...
1030365071-xuechao
src/com/trilead/ssh2/crypto/cipher/AES.java
Java
asf20
45,563
package com.trilead.ssh2.crypto.cipher; import java.io.IOException; import java.io.InputStream; /** * CipherInputStream. * * @author Christian Plattner, plattner@trilead.com * @version $Id: CipherInputStream.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ */ public class CipherInputStream { BlockC...
1030365071-xuechao
src/com/trilead/ssh2/crypto/cipher/CipherInputStream.java
Java
asf20
3,067
package com.trilead.ssh2.crypto.cipher; /** * CBCMode. * * @author Christian Plattner, plattner@trilead.com * @version $Id: CBCMode.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ */ public class CBCMode implements BlockCipher { BlockCipher tc; int blockSize; boolean doEncrypt; byte[] cbc_vector...
1030365071-xuechao
src/com/trilead/ssh2/crypto/cipher/CBCMode.java
Java
asf20
1,915
package com.trilead.ssh2.crypto.cipher; /* This file is based on the 3DES implementation from the Bouncy Castle Crypto package. Their licence file states the following: Copyright (c) 2000 - 2004 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) Permission is hereby granted, free of charge...
1030365071-xuechao
src/com/trilead/ssh2/crypto/cipher/DES.java
Java
asf20
14,918
package com.trilead.ssh2.crypto.cipher; /** * This is CTR mode as described in draft-ietf-secsh-newmodes-XY.txt * * @author Christian Plattner, plattner@trilead.com * @version $Id: CTRMode.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ */ public class CTRMode implements BlockCipher { byte[] X; byte...
1030365071-xuechao
src/com/trilead/ssh2/crypto/cipher/CTRMode.java
Java
asf20
1,305
package com.trilead.ssh2.crypto.cipher; import java.io.IOException; import java.io.OutputStream; /** * CipherOutputStream. * * @author Christian Plattner, plattner@trilead.com * @version $Id: CipherOutputStream.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ */ public class CipherOutputStream { Bl...
1030365071-xuechao
src/com/trilead/ssh2/crypto/cipher/CipherOutputStream.java
Java
asf20
3,080
package com.trilead.ssh2.crypto.cipher; import java.util.Vector; /** * BlockCipherFactory. * * @author Christian Plattner, plattner@trilead.com * @version $Id: BlockCipherFactory.java,v 1.2 2008/04/01 12:38:09 cplattne Exp $ */ public class BlockCipherFactory { static class CipherEntry { Str...
1030365071-xuechao
src/com/trilead/ssh2/crypto/cipher/BlockCipherFactory.java
Java
asf20
3,320
package com.trilead.ssh2.crypto.cipher; /** * BlockCipher. * * @author Christian Plattner, plattner@trilead.com * @version $Id: BlockCipher.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ */ public interface BlockCipher { public void init(boolean forEncryption, byte[] key); public int getBlockSize()...
1030365071-xuechao
src/com/trilead/ssh2/crypto/cipher/BlockCipher.java
Java
asf20
406
package com.trilead.ssh2.crypto.cipher; /* This file was shamelessly taken (and modified) from the Bouncy Castle Crypto package. Their licence file states the following: Copyright (c) 2000 - 2004 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) Permission is hereby granted, free of charg...
1030365071-xuechao
src/com/trilead/ssh2/crypto/cipher/DESede.java
Java
asf20
2,900
package com.trilead.ssh2.crypto.cipher; /* This file was shamelessly taken from the Bouncy Castle Crypto package. Their licence file states the following: Copyright (c) 2000 - 2004 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) Permission is hereby granted, free of charge, to any perso...
1030365071-xuechao
src/com/trilead/ssh2/crypto/cipher/BlowFish.java
Java
asf20
20,816
package com.trilead.ssh2.crypto.cipher; /** * NullCipher. * * @author Christian Plattner, plattner@trilead.com * @version $Id: NullCipher.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $ */ public class NullCipher implements BlockCipher { private int blockSize = 8; public NullCipher() { } pu...
1030365071-xuechao
src/com/trilead/ssh2/crypto/cipher/NullCipher.java
Java
asf20
663
package com.trilead.ssh2.crypto.digest; import java.math.BigInteger; /** * HashForSSH2Types. * * @author Christian Plattner, plattner@trilead.com * @version $Id: HashForSSH2Types.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ public class HashForSSH2Types { Digest md; public HashForSSH2Type...
1030365071-xuechao
src/com/trilead/ssh2/crypto/digest/HashForSSH2Types.java
Java
asf20
1,553
package com.trilead.ssh2.crypto.digest; /** * MAC. * * @author Christian Plattner, plattner@trilead.com * @version $Id: MAC.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ public final class MAC { Digest mac; int size; public final static String[] getMacList() { /* Higher Priority First ...
1030365071-xuechao
src/com/trilead/ssh2/crypto/digest/MAC.java
Java
asf20
1,822
package com.trilead.ssh2.crypto.digest; /** * HMAC. * * @author Christian Plattner, plattner@trilead.com * @version $Id: HMAC.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ public final class HMAC implements Digest { Digest md; byte[] k_xor_ipad; byte[] k_xor_opad; byte[] tmp; int size...
1030365071-xuechao
src/com/trilead/ssh2/crypto/digest/HMAC.java
Java
asf20
1,578
package com.trilead.ssh2.crypto.digest; /** * MD5. Based on the example code in RFC 1321. Optimized (...a little). * * @author Christian Plattner, plattner@trilead.com * @version $Id: MD5.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ /* * The following disclaimer has been copied from RFC 1321: ...
1030365071-xuechao
src/com/trilead/ssh2/crypto/digest/MD5.java
Java
asf20
8,195
package com.trilead.ssh2.crypto.digest; /** * SHA-1 implementation based on FIPS PUB 180-1. * Highly optimized. * <p> * (http://www.itl.nist.gov/fipspubs/fip180-1.htm) * * @author Christian Plattner, plattner@trilead.com * @version $Id: SHA1.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ public...
1030365071-xuechao
src/com/trilead/ssh2/crypto/digest/SHA1.java
Java
asf20
18,717
package com.trilead.ssh2.crypto.digest; /** * Digest. * * @author Christian Plattner, plattner@trilead.com * @version $Id: Digest.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ public interface Digest { public int getDigestLength(); public void update(byte b); public void update(byte[] b);...
1030365071-xuechao
src/com/trilead/ssh2/crypto/digest/Digest.java
Java
asf20
483
package com.trilead.ssh2.crypto; import java.io.CharArrayWriter; import java.io.IOException; /** * Basic Base64 Support. * * @author Christian Plattner, plattner@trilead.com * @version $Id: Base64.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ */ public class Base64 { static final char[] alphabet...
1030365071-xuechao
src/com/trilead/ssh2/crypto/Base64.java
Java
asf20
3,149
package com.trilead.ssh2.crypto; import java.io.IOException; import java.math.BigInteger; /** * SimpleDERReader. * * @author Christian Plattner, plattner@trilead.com * @version $Id: SimpleDERReader.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ */ public class SimpleDERReader { byte[] buffer; i...
1030365071-xuechao
src/com/trilead/ssh2/crypto/SimpleDERReader.java
Java
asf20
3,005
package com.trilead.ssh2.crypto; import java.io.BufferedReader; import java.io.CharArrayReader; import java.io.IOException; import java.math.BigInteger; import com.trilead.ssh2.crypto.cipher.AES; import com.trilead.ssh2.crypto.cipher.BlockCipher; import com.trilead.ssh2.crypto.cipher.CBCMode; import com.t...
1030365071-xuechao
src/com/trilead/ssh2/crypto/PEMDecoder.java
Java
asf20
9,657
package com.trilead.ssh2.crypto; import com.trilead.ssh2.compression.CompressionFactory; import com.trilead.ssh2.crypto.cipher.BlockCipherFactory; import com.trilead.ssh2.crypto.digest.MAC; import com.trilead.ssh2.transport.KexManager; /** * CryptoWishList. * * @author Christian Plattner, plattner@t...
1030365071-xuechao
src/com/trilead/ssh2/crypto/CryptoWishList.java
Java
asf20
1,043
package com.trilead.ssh2.crypto.dh; import java.math.BigInteger; import java.security.SecureRandom; import com.trilead.ssh2.DHGexParameters; import com.trilead.ssh2.crypto.digest.HashForSSH2Types; /** * DhGroupExchange. * * @author Christian Plattner, plattner@trilead.com * @version $Id: DhGroup...
1030365071-xuechao
src/com/trilead/ssh2/crypto/dh/DhGroupExchange.java
Java
asf20
2,477
package com.trilead.ssh2.crypto.dh; import java.io.UnsupportedEncodingException; import java.math.BigInteger; import java.security.SecureRandom; import com.trilead.ssh2.crypto.digest.HashForSSH2Types; import com.trilead.ssh2.log.Logger; /** * DhExchange. * * @author Christian Plattner, plattner@t...
1030365071-xuechao
src/com/trilead/ssh2/crypto/dh/DhExchange.java
Java
asf20
3,808
package com.trilead.ssh2.crypto; /** * Parsed PEM structure. * * @author Christian Plattner, plattner@trilead.com * @version $Id: PEMStructure.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ */ public class PEMStructure { public int pemType; String dekInfo[]; String procType[]; public byte[] d...
1030365071-xuechao
src/com/trilead/ssh2/crypto/PEMStructure.java
Java
asf20
327
package com.trilead.ssh2.crypto; import java.math.BigInteger; import com.trilead.ssh2.crypto.digest.HashForSSH2Types; /** * Establishes key material for iv/key/mac (both directions). * * @author Christian Plattner, plattner@trilead.com * @version $Id: KeyMaterial.java,v 1.1 2007/10/15 12:49:56 cpl...
1030365071-xuechao
src/com/trilead/ssh2/crypto/KeyMaterial.java
Java
asf20
2,566
package com.trilead.ssh2; /** * A <code>SFTPv3DirectoryEntry</code> as returned by {@link SFTPv3Client#ls(String)}. * * @author Christian Plattner, plattner@trilead.com * @version $Id: SFTPv3DirectoryEntry.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ */ public class SFTPv3DirectoryEntry { /** ...
1030365071-xuechao
src/com/trilead/ssh2/SFTPv3DirectoryEntry.java
Java
asf20
1,230
package com.trilead.ssh2.util; import java.io.PrintWriter; import java.io.StringWriter; import java.util.Collections; import java.util.LinkedList; import com.trilead.ssh2.log.Logger; /** * TimeoutService (beta). Here you can register a timeout. * <p> * Implemented having large scale programs in mi...
1030365071-xuechao
src/com/trilead/ssh2/util/TimeoutService.java
Java
asf20
3,443
package com.trilead.ssh2.util; /** * Tokenizer. Why? Because StringTokenizer is not available in J2ME. * * @author Christian Plattner, plattner@trilead.com * @version $Id: Tokenizer.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $ */ public class Tokenizer { /** * Exists because StringTokenizer is n...
1030365071-xuechao
src/com/trilead/ssh2/util/Tokenizer.java
Java
asf20
1,104
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
1030365071-xuechao
src/com/jcraft/jzlib/InfBlocks.java
Java
asf20
15,158
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
1030365071-xuechao
src/com/jcraft/jzlib/StaticTree.java
Java
asf20
6,164
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
1030365071-xuechao
src/com/jcraft/jzlib/JZlib.java
Java
asf20
2,803
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
1030365071-xuechao
src/com/jcraft/jzlib/Tree.java
Java
asf20
14,868
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain th...
1030365071-xuechao
src/com/jcraft/jzlib/ZStreamException.java
Java
asf20
1,931
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
1030365071-xuechao
src/com/jcraft/jzlib/Deflate.java
Java
asf20
54,205
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* Copyright (c) 2001 Lapo Luchini. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, ...
1030365071-xuechao
src/com/jcraft/jzlib/ZInputStream.java
Java
asf20
4,279
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* Copyright (c) 2001 Lapo Luchini. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, ...
1030365071-xuechao
src/com/jcraft/jzlib/ZOutputStream.java
Java
asf20
4,315
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
1030365071-xuechao
src/com/jcraft/jzlib/Inflate.java
Java
asf20
11,302
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
1030365071-xuechao
src/com/jcraft/jzlib/InfCodes.java
Java
asf20
16,042
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code ...
1030365071-xuechao
src/com/jcraft/jzlib/ZStream.java
Java
asf20
6,990
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code ...
1030365071-xuechao
src/com/jcraft/jzlib/InfTree.java
Java
asf20
19,238
/* -*-mode:java; c-basic-offset:2; -*- */ /* Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above...
1030365071-xuechao
src/com/jcraft/jzlib/Adler32.java
Java
asf20
3,289
#!/usr/bin/perl # # ConnectBot: simple, powerful, open-source SSH client for Android # Copyright 2011 Kenny Root, Jeffrey Sharkey # # 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:...
1030365071-xuechao
tools/google-code-upload.pl
Perl
asf20
7,224
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := com_google_ase_Exec LOCAL_CFLAGS := -Werror LOCAL_SRC_FILES := com_google_ase_Exec.cpp LOCAL_LDLIBS := -llog include $(BUILD_SHARED_LIBRARY)
1030365071-xuechao
jni/Exec/Android.mk
Makefile
asf20
220
/* * 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 appli...
1030365071-xuechao
jni/Exec/com_google_ase_Exec.cpp
C++
asf20
5,383
# Build both ARMv5TE and x86-32 machine code. APP_ABI := armeabi x86
1030365071-xuechao
jni/Application.mk
Makefile
asf20
69
include $(call all-subdir-makefiles)
1030365071-xuechao
jni/Android.mk
Makefile
asf20
37
<html> <body style="background-color: #000; color: #fff"> <p>Gestures in ConnectBot allow a user to do several things for which there&#x27;s no keyboard equivalent. If the gestures seem backward, then imagine that you&#x27;re grabbing the text and moving it with your finger.</p> <h1><a name="Page_Up_/_Page_Down" />Pag...
1030365071-xuechao
assets/help/ScreenGestures.html
HTML
asf20
1,613
<html> <body style="background-color: #000; color: #fff"> <p><img src="http://connectbot.googlecode.com/svn/trunk/www/keyboard.jpg" /></p> <p>Here are some keyboard shortcuts available when a <strong>hardware keyboard</strong> is present. If you&#x27;re using a phone where the main input type is a <strong>virtual key...
1030365071-xuechao
assets/help/PhysicalKeyboard.html
HTML
asf20
2,582
<html> <body style="background-color: #000; color: #fff"> <p><img src="http://connectbot.googlecode.com/svn/trunk/www/magic-cb-screen.png" width="100%" /></p> <h2>Caveats</h2> <p>Since ConnectBot doesn&#x27;t use any of the normal TextView widgets, Android&#x27;s IME structure isn&#x27;t designed to directly support ...
1030365071-xuechao
assets/help/VirtualKeyboard.html
HTML
asf20
2,345
<html> <body style="background-color: #000; color: #fff"> <h2>Helpful hints</h2> <p>When you have multiple sessions open, you can 'pan' between them by swiping your finger left-to-right or right-to-left over the screen.</p> <p>Long-press on your Android desktop to create direct shortcuts to frequently-used SSH host...
1030365071-xuechao
assets/help/Hints.html
HTML
asf20
515
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> <title>管理员 - 歪伯乐微招聘 - 微博招聘、求职、简历信息,一站聚合、管理、定制</title> <link...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/admin.html
HTML
gpl3
4,350
<?php include_once('common.inc.php'); func_register(array( 'user' => array( 'callback' => 'deal_user', ), 'profile' => array( 'callback' => 'profile_show', ), )); function theme_user($data) { include_once("theme.inc.php"); $content = ''; foreach($data as $r)...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/user.inc.php
PHP
gpl3
5,040
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> <meta name="keywords" content="免费发布微博招聘、求职信息,免费定制微职位、微简历" /> ...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/default-bak.html
HTML
gpl3
12,704
<?php include_once('common.inc.php'); func_register(array( 'hot' => array( 'callback' => 'deal_hot', ), )); function get_tags($id) { include_once("common.inc.php"); connect_db(); $view = "SELECT tags.name from tags, (SELECT * FROM tag_relationship WHERE tweet_id='$id') as r WH...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/hot.inc.php
PHP
gpl3
6,549
<?php class UUID { public static function v4() { return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', // 32 bits for "time_low" mt_rand(0, 0xffff), mt_rand(0, 0xffff), // 16 bits for "time_mid" mt_rand(0, 0xffff), // 16 bits for "time_hi_and_version", // four most signific...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/uuid.inc.php
PHP
gpl3
1,127
Ybole - Python backend ... Coming soon!
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/views/home.tpl
Smarty
gpl3
40
#coding:utf8 from bottle import route, run, debug, template, request, validate, error, response, redirect from y_common import * from weibopy.auth import WebOAuthHandler from weibopy import oauth @route('/login') def login(): redirect('/sina/login') @route('/sina/login') def sina_login(): auth = WebOAuthH...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/y_login.py
Python
gpl3
863
from bottle import route, run, debug, template, request, validate, error, response, redirect @route('/apply/sent') @route('/apply/sent/show') def apply_sent_show(): return template('home') @route('/apply/sent/add/:tweet_id') def apply_sent_add(tweet_id): return template('home') @route('/apply/sent/exist/...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/y_apply.py
Python
gpl3
574
from bottle import route, run, debug, template, request, validate, error, response, redirect @route('/') @route('/home') def home(): return template('home') #return 'Ybole - Python backend ... Coming soon!'
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/y_home.py
Python
gpl3
216
from bottle import route, run, debug, template, request, validate, error, response, redirect @route('/admin/') def admin(): return template("home") @route('/admin/tag') def admin_tag(): return template("home") @route('/admin/tag/edit') def admin_tag(): return template("home")
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/y_admin.py
Python
gpl3
292
import re, base64, json baseurl = "http://www.ybole.com:81" gng_secret = "HUSTGNGisVeryGelivable" sina_consumer_key= "961495784" sina_consumer_secret ="47d9d806a1dc04cc758be6f7213465bc" def htmlEncode(str): """ Returns the HTML encoded version of the given string. This is useful to display a plain ASCII...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/y_common.py
Python
gpl3
623
#coding:utf8 # Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. from urllib2 import Request, urlopen import base64 from weibopy import oauth from weibopy.error import WeibopError from weibopy.api import API class AuthHandler(object): def apply_auth(self, url, method, headers, parameters): ...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/weibopy/auth.py
Python
gpl3
6,080
# Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. class WeibopError(Exception): """Weibopy exception""" def __init__(self, reason): try: self.reason = reason.encode('utf-8') except: self.reason = reason def __str__(self): return self.reason...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/weibopy/error.py
Python
gpl3
322
# Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. from weibopy.utils import parse_datetime, parse_html_value, parse_a_href, \ parse_search_datetime, unescape_html class ResultSet(list): """A list like object that holds results from a Twitter API query.""" class Model(object): def _...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/weibopy/models.py
Python
gpl3
10,222
""" The MIT License Copyright (c) 2007 Leah Culver Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/weibopy/oauth.py
Python
gpl3
23,187
# Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. from weibopy.models import ModelFactory from weibopy.utils import import_simplejson from weibopy.error import WeibopError class Parser(object): def parse(self, method, payload): """ Parse the response payload and return the result...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/weibopy/parsers.py
Python
gpl3
2,316
# Copyright 2010 Joshua Roesslein # See LICENSE for details. from datetime import datetime import time import htmlentitydefs import re def parse_datetime(str): # We must parse datetime this way to work in python 2.4 #return datetime(*(time.strptime(str, '%a %b %d %H:%M:%S +0800 %Y')[0:6])) #Change...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/weibopy/utils.py
Python
gpl3
2,209
# Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. import httplib import urllib import time import re from weibopy.error import WeibopError from weibopy.utils import convert_to_utf8_str re_path_template = re.compile('{\w+}') def bind_api(**config): class APIMethod(object): path...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/weibopy/binder.py
Python
gpl3
8,100
# Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. """ weibo API library """ __version__ = '1.5' __author__ = 'Joshua Roesslein' __license__ = 'MIT' from weibopy.models import Status, User, DirectMessage, Friendship, SavedSearch, SearchResult, ModelFactory, IDSModel from weibopy.error import WeibopErr...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/weibopy/__init__.py
Python
gpl3
706
# Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. import httplib from socket import timeout from threading import Thread from time import sleep import urllib from weibopy.auth import BasicAuthHandler from weibopy.models import Status from weibopy.api import API from weibopy.error import WeibopError ...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/weibopy/streaming.py
Python
gpl3
6,143
# Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. import os import mimetypes from weibopy.binder import bind_api from weibopy.error import WeibopError from weibopy.parsers import ModelParser class API(object): """Twitter API""" def __init__(self, auth_handler=None, host='api.t....
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/weibopy/api.py
Python
gpl3
25,468
# Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. from weibopy.error import WeibopError class Cursor(object): """Pagination helper class""" def __init__(self, method, *args, **kargs): if hasattr(method, 'pagination_mode'): if method.pagination_mode == 'cursor': ...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/weibopy/cursor.py
Python
gpl3
4,026
# Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. import time import threading import os import cPickle as pickle try: import hashlib except ImportError: # python 2.4 import md5 as hashlib try: import fcntl except ImportError: # Probably on a windows system # TODO: use win32f...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/weibopy/cache.py
Python
gpl3
7,372
#coding:utf8 import os, sys from bottle import route, run, debug, template, request, validate, error, response, redirect # only needed when you run Bottle on mod_wsgi from bottle import default_app from y_home import * from y_apply import * from y_admin import * from y_login import * #reload(sys) #sys.setdefaultencodi...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/index.py
Python
gpl3
544
# -*- coding: utf-8 -*- """ Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (Routes) with url parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and template engines - all in a single file and with no dependencies...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/pybackend/bottle.py
Python
gpl3
73,521
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> <title>意见反馈 - 歪伯乐微招聘 - 微博招聘、求职、简历信息,一站聚合、管理、定制</title> <lin...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/feedback.html
HTML
gpl3
8,956
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> </head> <frameset rows="50,*" bordercolor="#f5f5f5"> <frame src="files/header.html" noresize="1" frameborder="0" bordercolor="#f5f5f5"></frame> <frameset cols...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/index.html
HTML
gpl3
511
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> </head> <body> <h1> Compatibi...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/013.html
HTML
gpl3
1,330
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="ot...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/001.html
HTML
gpl3
951
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> </head> <body> <h1> Help Butt...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/009.html
HTML
gpl3
405
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> </head> <body> <h1> CKFinder ...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/license.html
HTML
gpl3
435
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> </head> <body> <h1> CKFinder ...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/002.html
HTML
gpl3
1,555
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> </head> <body> <h1> Refresh B...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/007.html
HTML
gpl3
1,458
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> </head> <body> <h1> Files Pan...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/004.html
HTML
gpl3
3,801
window.onload = function() { var copyP = document.createElement( 'p' ) ; copyP.className = 'copyright' ; copyP.innerHTML = '&copy; 2007-2011 <a href="http://cksource.com" target="_blank">CKSource</a> - Frederico Knabben . All rights reserved.<br /><br />' ; document.body.appendChild( document.createElement( '...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/other/help.js
JavaScript
gpl3
435
body { margin: 0px; font-family: Georgia, Trebuchet, Trebuchet MS, Verdana; } h1 { background-color: #f5f5f5; color: #696969; padding-left: 20px; padding-right: 20px; padding-top: 10px; padding-bottom: 10px; margin: 0px; margin-bottom: 40px; } p, ul, ol { margin-bottom: 30px; margin-t...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/other/help.css
CSS
gpl3
687
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> </head> <body> <h1> Settings ...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/008.html
HTML
gpl3
2,779
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> <script type="text/javascript"> ...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/suggestions.html
HTML
gpl3
927
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> </head> <body> <h1> Context M...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/012.html
HTML
gpl3
1,464
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> </head> <body> <h1> Legal Not...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/011.html
HTML
gpl3
1,101
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> </head> <body> <h1> Folders P...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/003.html
HTML
gpl3
5,003
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <style type="text/css"> body { margin: 0px; font-family: Trebuchet, Trebuchet MS, Arial; } a { text-decoration: none ; } a:hover { text-deco...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/toc.html
HTML
gpl3
2,369
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <style type="text/css"> body { margin: 0px; font-family: Trebuchet, Trebuchet MS, Verdana; background-color: #696969; color: #f5f5f5; pad...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/header.html
HTML
gpl3
877
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> </head> <body> <h1> Toolbar ...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/005.html
HTML
gpl3
1,228
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> </head> <body> <h1> Status Ba...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/010.html
HTML
gpl3
1,132
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder User's Guide</title> <link href="other/help.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="other/help.js"></script> </head> <body> <h1> Upload Bu...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/en/files/006.html
HTML
gpl3
2,742
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html lang="es"> <head> <title>Gu&iacute;a para el usuario de CKFinder</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> frame {border-color:#f5f5f5} ...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/es/index.html
HTML
gpl3
569
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="es"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Guía del usuario de CKFinder</title> <link href="other/help.css" type="text/css" rel="stylesheet"> <script...
0f523140-f3b3-4653-89b0-eb08c39940ad
trunk/src/html/ckfinder/help/es/files/013.html
HTML
gpl3
1,685