Skip to content

Instantly share code, notes, and snippets.

View MedRedha's full-sized avatar
:octocat:
In Code We Trust

Med Redha Khelifi MedRedha

:octocat:
In Code We Trust
View GitHub Profile
@MedRedha
MedRedha / Redha Warp Theme.yml
Created November 30, 2022 07:46
Redha Warp Theme
accent: "#00f3bf"
background: "#0f1115"
foreground: "#ffffff"
details: "darker"
terminal_colors:
normal:
black: "#101116"
red: "#ff0064"
green: "#00ff9b"
yellow: "#ff1e00"
@MedRedha
MedRedha / Redha iTerm Colors.itermcolors
Created November 30, 2022 07:36
Redha iTerm/Warp Color Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.086274512112140656</real>

Keybase proof

I hereby claim:

  • I am medredha on github.
  • I am medredha (https://keybase.io/medredha) on keybase.
  • I have a public key ASAxPs1_Ary9xBPf8UwyFugEVVnvBSBpJvUYVLyEhHfkzAo

To claim this, I am signing this object:

@MedRedha
MedRedha / payload.json
Last active February 15, 2024 12:45
Trigger Xcode Simulator Push Notification
// SINCE IT'S A JSON FILE - PLEASE REMOVE ALL THE COMMENTS -
// You can trigger a local push notification on your simulator by either:
// 1. Change file extension from .json to .apns and Drag & Drop the payload.apns on the simulator
// 2. Use terminal with following commandline: xcrun simctl push booted [APP BUNDLE ID] payload.json
// ENJOY!! 🎉
{
"Simulator Target Bundle": "com.apple.mobilecal", // add app bundle id here Calendar app for example
"aps": {
"alert": {
@MedRedha
MedRedha / FILENAME.STYLE.TSX
Last active November 18, 2020 10:43
Legal Doctrine Mobile Project TypeScript File Structure Boilerplate
//////// FILENAME.STYLE.TS ////////
import { Dimensions, Platform, StyleSheet } from 'react-native';
const { width, height } = Dimensions.get('window');
const styles = StyleSheet.create({
mainContainer: {
width,
height,
@MedRedha
MedRedha / flutter-animated-splash.markdown
Last active July 23, 2022 01:53
Flutter Animated Splash
@MedRedha
MedRedha / floating-back-to-top-button-with-smooth-scroll-using-css-jquey.markdown
Created August 29, 2020 01:18
Floating Back to Top Button with Smooth Scroll using CSS & JQuey

Floating Back to Top Button with Smooth Scroll using CSS & JQuey

This type of button is most useful when we have a large amount of content in a single page that time we need this type of button going at the top of the page. Using CSS and JQuery, We can built better interface and make designable button.

When page is scroll down, then button automatically display on the page and when click on button then page will scroll and move on top of the page. Using this button, we can back to the top of the screen without manually scrolling.

A Pen by Rohan Hapani on CodePen.

License.

@MedRedha
MedRedha / hamburger-menu-animations.markdown
Created June 7, 2020 17:46
Hamburger Menu Animations
@MedRedha
MedRedha / index.html
Created June 6, 2020 10:39
Offcanvas sidebar menu with a twist
<div class="page">
<span class="menu_toggle">
<i class="menu_open fa fa-bars fa-lg"></i>
<i class="menu_close fa fa-times fa-lg"></i>
</span>
<ul class="menu_items">
<li><a href="#"><i class="icon fa fa-signal fa-2x"></i> Moar</a></li>
<li><a href="#"><i class="icon fa fa-coffee fa-2x"></i> Coffee</a></li>
<li><a href="#"><i class="icon fa fa-heart fa-2x"></i> Please</a></li>
</ul>