Skip to content

Instantly share code, notes, and snippets.

View aifrak's full-sized avatar

Franklin Rakotomalala aifrak

  • CLARK
  • Frankfurt, Germany
  • LinkedIn in/aifrak
View GitHub Profile
@aifrak
aifrak / elixir.json
Last active February 15, 2025 06:44
VSCode Elixir snippets
{
"Loops through recursion": {
"prefix": "rec",
"body": [
"def ${1:recursion}(${2:list}) do",
" ${1:recursion}(${2:list}, ${3:[]})",
"end",
"",
"def ${1:recursion}([${4:head} | ${5:tail}], ${6:acc}) do",
" ${0:CODE}",
@aifrak
aifrak / phoenix-heex.json
Last active February 14, 2025 16:14
VSCode Phoenix HEEx snippets
{
"LiveView: Phoenix.LiveComponent call": {
"body": [
"<.live_component",
" module={$1}",
" id={$2}",
" $0",
"/>"
],
"description": "LiveView: Phoenix.LiveComponent call",
@aifrak
aifrak / oh-my-posh_custom-theme.omp.yml
Last active October 5, 2024 19:17
oh-my-posh custom theme
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
console_title_template: "{{ .Shell }} {{if .Root}} ⚡ {{end}}{{.UserName}} \u2794 📁{{.Folder}}"
final_space: true
version: 2
palette:
aws_background: "#FFA400"
executiontime_background: "#4c1f5e"
exit_success: "#16a34a"
@aifrak
aifrak / dark+.yaml
Created June 29, 2024 14:27
Tabby custom terminal theme (based on Dark+)
# Replace "terminal" key with the code below.
terminal:
searchOptions: {}
colorScheme:
name: Dark+
foreground: '#CCCCCC'
background: '#010409'
cursor: '#FFFFFF'
colors:
@aifrak
aifrak / liveview.code-snippets
Last active November 30, 2024 20:14
VSCode Phoenix LiveView snippets
{
"LiveView: ~p sigil": {
"scope": "elixir,phoenix-heex",
"body": [
"~p\"/$1\""
],
"description": "LiveView: ~p sigil",
"prefix": [
"~p"
]