This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Custom Registration Fields | |
Plugin URI: | |
Description: | |
Version: 0.1 | |
Author: CSSIgniter | |
Author URI: | |
License: GPLv2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import shutil | |
import time | |
import time | |
import threading | |
def dl(): | |
image_url = "https://p3.fgies.com/bucket-pnb/PNB-11.jpg" | |
filename_jpeg = image_url.split("/")[-1] | |
filename_ts = filename_jpeg.split(".")[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/kennell/imageboards | |
https://github.com/blobmon/simplechan | |
https://gitgud.io/LynxChan/LynxChan | |
https://github.com/VVatashi/TinyIB | |
https://github.com/bakape/meguca | |
https://github.com/lalcmellkmal/doushio | |
https://github.com/underr/shoganai | |
https://github.com/sougai/chakai | |
https://github.com/vampiricwulf/ex-tanoshiine | |
https://github.com/praetorg/uchan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* ROUTES: | |
* (Authorization header with api key is required for user session) | |
* | |
* /register | |
* method - post | |
* params - name, email, password | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class BasePresenter<V extends RemoteView> { | |
private WeakReference<V> view = null; | |
public final void attachView(V view) { | |
if (view == null) throw new NullPointerException("View must not be null"); | |
if(this.view != null) detachView(this.view.get()); | |
this.view = new WeakReference<V>(view); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.myapp.ui.home; | |
public class LoginActivity extends BaseActivity implements LoginContract.LoginView { | |
// field declaration | |
private LoginPresenter presenter; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.myapp.core.data.repository.impl; | |
public class LoginRepositoryImpl implements Repository<Login> { | |
private DatabaseRealm databaseRealm; | |
public LoginRepositoryImpl(DatabaseRealm databaseRealm) { | |
this.databaseRealm = databaseRealm; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Repository<T> { | |
T find(String guid); | |
List<T> findAll(); | |
void add(T item); | |
void add(List<T> items); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface RemoteView { | |
void showProgress(); | |
void hideProgress(); | |
void showUnauthorizedError(); | |
void showEmpty(); |
NewerOlder