Skip to content

Instantly share code, notes, and snippets.

View muath-ye's full-sized avatar
🚀
npx muath

Muath Alsowadi muath-ye

🚀
npx muath
View GitHub Profile
@muath-ye
muath-ye / sample
Created August 7, 2018 07:01 — forked from anonymous/sample
<Text View
android:text="Hapy Birthday"
android:layout_width="150dp"
android:layout_height="150"
android:background="@android:color/darker_groy"
>
@muath-ye
muath-ye / laravellocal.md
Created August 16, 2018 10:01 — forked from hootlex/laravellocal.md
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
@muath-ye
muath-ye / meta-tags.md
Created March 29, 2019 05:39 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@muath-ye
muath-ye / 1_phpunit-api.md
Created March 10, 2020 04:38 — forked from loonies/1_phpunit-api.md
PHPUnit Cheat Sheet

PHPUnit API reference

  • version 3.6

TODO

Check those constraints:

$this-&gt;anything()
@muath-ye
muath-ye / laravel.js
Created April 29, 2020 07:07 — forked from JeffreyWay/laravel.js
Want to send a DELETE request when outside of a form? This will handle the form-creation bits for you dynamically, similar to the Rails implementation. (Requires jQuery, but doesn't have to.) To use, import script, and create a link with the `data-method="DELETE"` attribute.
/*
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request
- Or, request confirmation in the process -
<a href="posts/2" data-method="delete" data-confirm="Are you sure?">
*/
(function() {
@muath-ye
muath-ye / PewPewPew.php
Created May 8, 2020 21:38 — forked from ericlbarnes/PewPewPew.php
Hold up... Wait a minute... It's a Laravel Chopper
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class PewPewPew extends Command
{
protected $signature = 'pewpewpew';
protected $description = 'Command description';
@muath-ye
muath-ye / settings.json
Created August 28, 2020 07:04
This is vscode settings to work with vector mono font as italic
{
//C:\Users\me\AppData\Roaming\Code\User\settings.json
"todo-tree.tree.showScanModeButton": false,
"files.autoSave": "afterDelay",
"git.enableSmartCommit": true,
"cSpell.userWords": [
"Abdullah",
"Assawadi",
"Laravel",
"Muath",
@muath-ye
muath-ye / heroku-remote.md
Created February 14, 2021 04:38 — forked from randallreedjr/heroku-remote.md
Add a Heroku remote to an existing git repo

Working with git remotes on Heroku

Generally, you will add a git remote for your Heroku app during the Heroku app creation process, i.e. heroku create. However, if you are working on an existing app and want to add git remotes to enable manual deploys, the following commands may be useful.

Adding a new remote

Add a remote for your Staging app and deploy

Note that on Heroku, you must always use master as the destination branch on the remote. If you want to deploy a different branch, you can use the syntax local_branch:destination_branch seen below (in this example, we push the local staging branch to the master branch on heroku.

$ git remote add staging https://git.heroku.com/staging-app.git

Change: launch_background

Path: android/app/src/main/res/drawable/launch_background.xml

Change this:

<item android:drawable="@android:color/white" />

To:

@muath-ye
muath-ye / Export GIT LOG into an Excel file
Last active May 19, 2022 11:38
Export GIT LOG into an Excel file with headers and custom date if needed.
> Export Git log into an excel file.
```bat
git log --date=local --pretty=format:'%h, %an, %ad, "%s"' >> log.csv
```
> Export Git log into an excel file with headers.
```bat
echo sha, contributor, date, message > log.csv && git log --date=local --pretty=format:'%h, %an, %ad, "%s"' >> log.csv
```