Skip to content

Instantly share code, notes, and snippets.

View imamabdulazis's full-sized avatar
😅
Making some bug and fix later

Imam Abdul Azis imamabdulazis

😅
Making some bug and fix later
View GitHub Profile
@imamabdulazis
imamabdulazis / build_ios.yml
Created June 22, 2023 15:57 — forked from githappens/build_ios.yml
GitHub Action workflow for building and releasing an iOS app that uses Addressables and relies on the Cloud Content Delivery service.
name: Build and Release Go&Design (iOS)
on:
workflow_dispatch:
inputs:
build_type:
description: 'Create Dev Build? (true/false)'
required: true
default: 'false'
@imamabdulazis
imamabdulazis / name.js
Created February 12, 2023 13:45 — forked from tkon99/name.js
Random Name Generator for Javascript
/*
(c) by Thomas Konings
Random Name Generator for Javascript
*/
function capFirst(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function getRandomInt(min, max) {
@imamabdulazis
imamabdulazis / SestionList.js
Last active January 16, 2023 02:49
Create new react native section List with native JS
const input = [
{
"id": 1,
"title": "Apple Store",
"date": "2021-09-10",
"amount": "$100.00",
},
{
"id": 41,
"title": "Zulauf, Walter and Metz",
@imamabdulazis
imamabdulazis / SectionList.js
Created January 16, 2023 02:32 — forked from bherrero/SectionList.js
React Native - prepare SectionList's array with lodash
// maps it's an array of objects
// groupBy to extract section headers
let dataSource = _.groupBy(maps, o => o.name);
// reduce to generate new array
dataSource = _.reduce(dataSource, (acc, next, index) => {
acc.push({
key: index,
data: next
});
return acc;
@imamabdulazis
imamabdulazis / 00_etc-hosts.md
Created March 21, 2022 03:56 — forked from mul14/00_etc-hosts.md
/etc/hosts for Vimeo, Reddit, Imgur, GitHub, DigitalOcean, dll

Unblock Vimeo, Reddit, Imgur, GitHub, DigitalOcean, NPM, dll

Saya support Internet Positif untuk memblokir porn, situs judi, dan hal-hal ilegal lainnya. Tapi pemerintah dan ISP sangat konyol karena tidak mengizinkan akses ke Vimeo, Reddit, Imgur, Netflix--yang mana bukanlah situs dengan konten utama ilegal.

Linux / BSD / macOS

Tambahkan list di bawah ke /etc/hosts.

Windows

@imamabdulazis
imamabdulazis / compareURL.js
Created January 11, 2022 03:07
Comparing between two URL is equal
/**
* Helper to compare between two url is equals or not
*
* @param {url1} string first url
* @param {url3} string second url
*
* @return @type {boolean}
*/
interface IsEqualURLsProps {
const storage = multer.diskStorage({
destination: function (req, file, cb) {
cb(null, './uploads/');
},
filename: function (req, file, cb) {
console.log("FILE :", file)
cb(null, file.originalname);
}
})
const fileFilter = (req, file, cb) => {
[
{
"name": "Naruto: Shippuuden",
"description": "It has been two and a half years since Naruto Uzumaki left Konohagakure, the Hidden Leaf Village, for intense training following events which fueled his desire to be stronger. Now Akatsuki, the mysterious organization of elite rogue ninja, is closing in on their grand plan which may threaten the safety of the entire shinobi world.",
"Rating": "8.16",
"episode": 500,
"categorie":"Animation | Drama | Adventure",
"studio":"Studio Pierrot",
"img": "https://myanimelist.cdn-dena.com/images/anime/5/17407.jpg"
},