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: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:
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 / 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);
}
@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 / 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