View registration-fields.php
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 |
View dl_image.py
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] |
View open-source-imageboard
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 |
View BasePresenter.java
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); |
View LoginActivity.java
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) { |
View LoginRepositoryImpl.java
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; | |
} |
View Repository.java
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); |
View RemoteView.java
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(); |
View LoginPresenter.java
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.mvp.home.login; | |
public class LoginPresenter extends BasePresenter<LoginContract.LoginView> implements LoginContract.ViewAction { | |
private APIManager apiManager; | |
private PreferenceService preference; | |
private INetworkManager networkManager; | |
private Repository<Login> eventRepository; | |
public LoginPresenter(APIManager apiManager, PreferenceService preference, |
NewerOlder