Skip to content

Instantly share code, notes, and snippets.

View abd3lraouf's full-sized avatar
📸
Storyteller

Abdelraouf Sabri abd3lraouf

📸
Storyteller
View GitHub Profile
@abd3lraouf
abd3lraouf / MockPlaceHolder.kt
Created August 4, 2022 14:20
How to make placeholder items in Android RecyclerView Android
package com.store.ui.widget
import android.content.Context
import android.util.AttributeSet
import android.widget.LinearLayout
class MockPlaceHolder(context: Context, attrs: AttributeSet?): LinearLayout(context, attrs) {
var repeact = 1
var layoutResource = android.R.layout.activity_list_item
@abd3lraouf
abd3lraouf / Crack Sublime Text Windows and Linux.md
Created January 28, 2022 09:41 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

YouTube Channel https://www.youtube.com/c/jerrylokjianming


How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
@abd3lraouf
abd3lraouf / Readme.md
Last active March 31, 2021 09:39 — forked from damokuro/fix_github_https_repo.sh
Convert HTTPS github clones to use SSH

Introduction

converts git remote from https to ssh using sed

One line

wget https://bit.ly/https_ssh_manoo -O- | bash

Features:

  1. Downlaod
@abd3lraouf
abd3lraouf / ColorUtils.java
Created November 30, 2020 10:30 — forked from XiaoxiaoLi/ColorUtils.java
Java Code to get a color name from rgb/hex value/awt color. The part of looking up a color name from the rgb values is edited from * https://gist.github.com/nightlark/6482130 by Ryan Mast (nightlark)
import java.awt.Color;
import java.util.ArrayList;
/**
* Java Code to get a color name from rgb/hex value/awt color
*
* The part of looking up a color name from the rgb values is edited from
* https://gist.github.com/nightlark/6482130#file-gistfile1-java (that has some errors) by Ryan Mast (nightlark)
*
* @author Xiaoxiao Li
@abd3lraouf
abd3lraouf / cronlist.sh
Created October 14, 2020 00:58 — forked from islander/cronlist.sh
Script to list all cron events on a system - found on stackoverflow.com: http://bit.ly/nkFwD9 Modified from original to list /etc/anacron jobs
#!/bin/bash
# System-wide crontab file and cron job directory. Change these for your system.
CRONTAB='/etc/crontab'
ANACRONTAB='/etc/anacrontab'
CRONDIR='/etc/cron.d'
# Single tab character. Annoyingly necessary.
tab=$(echo -en "\t")
@abd3lraouf
abd3lraouf / media-query.css
Created August 7, 2017 20:43 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@abd3lraouf
abd3lraouf / 0_reuse_code.js
Created December 18, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
/**
* This method displays the given price on the screen.
*/
private void displayPrice(int number) {
TextView priceTextView = (TextView) findViewById(R.id.price_text_view);
priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));
}