Skip to content

Instantly share code, notes, and snippets.

View Eric-Jalal's full-sized avatar
:octocat:

Eric Jalal Eric-Jalal

:octocat:
View GitHub Profile
@Eric-Jalal
Eric-Jalal / gist:7d3a9fc7146d946af7b9bc3852c380d1
Last active March 13, 2024 22:30
Alacritty config file
# Shell settings
[shell]
args = ['--login']
program = "/bin/zsh"
# Window settings
[window]
dimensions = { columns = 200, lines = 50 }
padding = { x = 10, y = 10 }
dynamic_padding = true
@Eric-Jalal
Eric-Jalal / post.md
Created January 20, 2019 14:09 — forked from grantland/post.md
RecyclerView item onClick

RecyclerView item onClick

RecyclerView does not have an OnItemClickListener like it's predecessor, ListView. However, detecting item clicks is pretty simple.

Set an OnClickListener in your ViewHolder creation:

private class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder>  {

    public static class ViewHolder extends RecyclerView.ViewHolder
@Eric-Jalal
Eric-Jalal / CustomItemClickListener.java
Created January 20, 2019 14:08 — forked from riyazMuhammad/CustomItemClickListener.java
Easy Implementation of RecyclerView custom onItemClickListener
public interface CustomItemClickListener {
public void onItemClick(View v, int position);
}
Open your .zshrc and paste this at the bottom:
```
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
}
```
@Eric-Jalal
Eric-Jalal / gist:f7ea10598d735a0ce71c5c5f46786e80
Created July 11, 2018 21:37 — forked from rxaviers/gist:7360908
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: