Skip to content

Instantly share code, notes, and snippets.

View faizalanwar's full-sized avatar
:shipit:
sup

Faizal Anwar faizalanwar

:shipit:
sup
View GitHub Profile
@faizalanwar
faizalanwar / gist:2442666e0cec0b5e02b785dd7f53f0c3
Created March 4, 2020 10:32
Key Sublime Text 3.2.1 Build 3207 - Sublime Text 3 License Key
Key Sublime Text 3.2.1 Build 3207
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
{
"linkedin": "linkedin.com/in/faizalanwar/",
"instagram": "instagram.com/fzlanwr/",
"twitter": "twitter.com/fzlanwr",
}
<script>
$(function() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$('#tambahkeranjang').click(function(e) {
e.preventDefault();
var qty = $("#qty").val();
@faizalanwar
faizalanwar / setup-oh-my-zsh-powerlevel9k.sh
Created July 17, 2021 06:42 — forked from AlexZeitler/setup-oh-my-zsh-powerlevel9k.sh
Installing zsh / oh-my-zsh / Powerlevel9k on Ubuntu 18.04
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mkdir ~/.local/share/fonts/
mv PowerlineSymbols.otf ~/.local/share/fonts/
fc-cache -vf ~/.local/share/fonts/
mkdir ~/.config/fontconfig/conf.d/
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
echo "Log out of your session and login again."
package com.naskahkode.final_faizalanwar;
import android.annotation.TargetApi;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Build;
import android.view.LayoutInflater;
//create new
composer create-project --prefer-dist laravel/laravel example-app
composer create-project laravel/laravel example-app "8.*"
php artisan make:controller controller_name
php artisan make:model model_name
php artisan make:migration migration_name
php artisan make:seeder seeder_name
php artisan make:middleware middleware_name
@for ($z = 0; $z < count($hasil); $z++)
<?php
if (isset($hasil[$z][0])) {
$a1[$z] = $hasil[$z][0];
} else {
$a1[$z] = 0;
}
?>
@endfor
1- add php 8 to your composer.json (I've kept v7.4 just in case production server does not support php 8 yet)
"php": "^7.4|^8.0",
2- to run composer update to update your laravel to the latest version
composer update
3- make sure update the following libraries since they exist in all laravel applications
1.
<?php
/*
Pattern
*
**
***
****
*****