Skip to content

Instantly share code, notes, and snippets.

View AdelDima's full-sized avatar
:octocat:
Working from home

Adel Tahri AdelDima

:octocat:
Working from home
View GitHub Profile
@AdelDima
AdelDima / BaseForm.tsx
Created October 9, 2023 21:12 — forked from ShinyObjectLabs/BaseForm.tsx
Framer Form Component
/*
MIT License
Copyright © Joel Whitaker
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@AdelDima
AdelDima / .env
Created July 25, 2023 08:12
Notion Chart with deepNote
NOTION_TOKEN=secret_UQ...
DATABASE_ID=3fb5...
@AdelDima
AdelDima / docker-compose.yml
Created January 17, 2021 20:17 — forked from byk0t/docker-compose.yml
Docker compose for odoo:14 and PostgreSQL:13
version: '3'
services:
db:
image: postgres:13
volumes:
- db-data:/var/lib/postgresql/data/pgdata
ports:
- 5432:5432/tcp
environment:
- POSTGRES_PASSWORD=odoo
@AdelDima
AdelDima / iterm2-solarized.md
Created January 17, 2019 17:11 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@AdelDima
AdelDima / .minttyrc
Created January 1, 2018 17:28
PixelDima Zsh-theme
BoldAsFont=-1
#Transparency=5
Padding=18
FontSmoothing=full
Font=Inconsolata-dz for Powerline
#Font=Fira Code Retina
FontHeight=12
FontWeight=500
Columns=120
@AdelDima
AdelDima / functions.php
Created June 11, 2017 09:37
Check WordPress Version
<?php
/* Check WordPress Version */
function dima_wp_version_check( $version = '3.0' ) {
global $wp_version;
if ( version_compare( $wp_version, $version, ">=" ) ) {
return true;
}
return false;
}
@AdelDima
AdelDima / functions.php
Last active June 10, 2017 10:45
functions Okab WordPress Theme
<?php
/**
* Add a Read More button
* @return string
*/
function prefix_blog_read_more_btn() {
$post = get_post( get_the_ID() );
$post = get_permalink( $post, false );
return "<a style=\"display: block; width: 120px; margin-top: 20px;\" class=\"dima-button dima-btn-no-rounded fill dima-btn-mini\" href=\"{$post}\">"
@AdelDima
AdelDima / .zshrc
Last active August 8, 2022 00:20
Cygwin & oh-my-zsh
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="agnoster"
//Change File extensions
for file in *.php ; do mv $file `echo $file | sed 's/\(.*\.\)php/\1html/'` ; done
//Rename all folders and files to lowercase on Linux
First, make sure zmv is loaded.
autoload -U zmv
Also, make sure extendedglob is on:
setopt extendedglob
Then use:
@AdelDima
AdelDima / PixelDima-Logo.markdown
Created March 8, 2014 18:43
A Pen by Adel Tahri.