Skip to content

Instantly share code, notes, and snippets.

View humazed's full-sized avatar

Ibrahim Eid humazed

View GitHub Profile
@humazed
humazed / cleanup_all_projects.ps1
Last active December 7, 2023 18:31
powershell script for cleaning up build files in all Flutter and Android projects
Write-Host "Cleaning up build files in all Flutter and Android projects..."
$rootPath = Get-Location
Get-ChildItem -Path $rootPath -Recurse -Directory | ForEach-Object {
$currentDir = $_
$flutterProject = Join-Path $currentDir.FullName "pubspec.yaml"
$androidProject = Join-Path $currentDir.FullName "android\gradlew"
if (Test-Path $flutterProject) {
@humazed
humazed / gist:dfc2268dc092823a035fe1957a1bdcf7
Last active March 23, 2020 11:19 — forked from EvanHahn/gist:2587465
Caesar shift in JavaScript could be used with file renamer
/*
JavaScript Caesar shift
by Evan Hahn (evanhahn.com)
* * * * * * * * * * * *
For small occasions (like month-anniversaries), I like to make little websites
for people that only "unlock" on the right day.
@humazed
humazed / asset_generator.dart
Last active December 10, 2023 21:10
copied from https://github.com/flutter-dev/asset_generator with changing the generated variable names to be more short and follow dart's variable naming convention of lower camel case.
// Copyright 2018 DebuggerX <dx8917312@gmail.com>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
var preview_server_port = 2227;
void main() async {
bool working = false;
@humazed
humazed / apps.json
Last active December 19, 2021 12:18
{
"apps": {
"com.uni.funbus": 0,
"goatheer.com.goatheer": 0,
"com.android.hilwawater": 1,
"com.app.seet": 0,
"com.example.rzq_customer": 0
}
}
@humazed
humazed / apps.json
Last active January 8, 2019 06:15
apps
{
"prolink": false
}
@humazed
humazed / customer.getfixbee.com.customer.updator.json
Last active October 5, 2018 23:09
Fix Bee Fixer updator file
{
"is_run_mode": "true",
"name": "Fix Bee Fixer",
"uri_current": "customer.getfixbee.com.customer",
"version_code_current": "12000",
"version_code_min": "12000",
"update_info": "On version 1.2.0.0 we added new and improved layout to simpilify the ordering process",
"update_date": "6/10/2018"
}
@humazed
humazed / FcmUtils.kt
Last active June 22, 2018 18:22
send notification from the app using fcm*note this mithod is not safe.
package com.tyyar.tyyar.driver.utils.firebase
import com.google.gson.Gson
import com.tyyar.tyyar.driver.model.JsonRequest
import okhttp3.*
import java.io.IOException
val JSON = MediaType.parse("application/json; charset=utf-8")
val key = "AIza..."
@humazed
humazed / okhttp_transport_OkHttpRequest.java
Last active September 21, 2017 00:06
okhttp transport for appengine
import com.google.api.client.http.LowLevelHttpRequest;
import com.google.api.client.http.LowLevelHttpResponse;
import com.google.api.client.util.Preconditions;
import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
public class OkHttpRequest extends LowLevelHttpRequest {
@humazed
humazed / Android NetworkUtil
Last active August 8, 2017 15:43
NetworkUtil containing the following: getCaCheOkHttpClient
package humazed.github.com.smartbaking_java.utils;
import android.content.Context;
import android.support.annotation.NonNull;
import com.blankj.utilcode.util.NetworkUtils;
import okhttp3.Cache;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
package com.example.huma.test001.recycler_view_stackoverflow;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;