Skip to content

Instantly share code, notes, and snippets.

View otoo-peacemaker's full-sized avatar
👨‍💻
Program Focuser

Peacemaker Otoo otoo-peacemaker

👨‍💻
Program Focuser
View GitHub Profile
@UbadahJ
UbadahJ / FilterableListAdapter.kt
Last active May 5, 2024 02:25
A filterable ListAdapter for RecyclerView
abstract class FilterableListAdapter<T, VH : RecyclerView.ViewHolder>(
diffCallback: DiffUtil.ItemCallback<T>
) : ListAdapter<T, VH>(diffCallback), Filterable {
private var originalList: List<T> = currentList.toList()
override fun getFilter(): Filter {
return object : Filter() {
override fun performFiltering(constraint: CharSequence?): FilterResults {
return FilterResults().apply {
@otoo-peacemaker
otoo-peacemaker / codepenchallenge-full-page-nav.markdown
Created November 5, 2020 22:42
#CodepenChallenge Full Page Nav

#CodepenChallenge Full Page Nav

A concept design of full page navigation, full of typography, and using icons as large images. I haven't used neither Javascript codes, nor a CSS preprocessors here.

A Pen by kwesi_welbred on CodePen.

License.

@otoo-peacemaker
otoo-peacemaker / JDBC.jar
Created July 21, 2019 19:51
Java Database Programming
/*The following codes consists of three java classes: DBconnection class,CreateTable class, and Main JDBC class.
*The DBconnection class helps to use the Database connection anywhere your programme.
*The CreateTable also helps to access or manipualte database right in the project with less code complexity.
*The main JDBC class is where we the actual coding. Thus, The DML and DQL.
*/
//Java class : DBconnection
@rxaviers
rxaviers / gist:7360908
Last active May 5, 2024 15:52
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: