This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import requests | |
| import subprocess | |
| import os | |
| import json | |
| import time | |
| from urllib.parse import urlparse, quote | |
| # Configuration | |
| BITBUCKET_USERNAME = "shakir_m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Delete GitHub repositories created in the last hour. | |
| Requires: pip install PyGithub | |
| """ | |
| import os | |
| from datetime import datetime, timedelta, timezone | |
| from github import Github |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import os | |
| import zipfile | |
| import sqlite3 | |
| import tempfile | |
| from pathlib import Path | |
| import sys | |
| def is_valid_sqlite(file_path): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/cupertino.dart'; | |
| import 'package:jezly/components/screenUtil/size_extension.dart'; | |
| import 'package:jezly/components/tablet/phoneModeInTablet.dart'; | |
| import 'package:jezly/helper/primitiveHelpers.dart'; | |
| Future<void> scrollToTarget(GlobalKey<State<StatefulWidget>> targetKey, ScrollController scrollController, {double? extra}) async { | |
| await waitForBuildIfPending(); | |
| final context = targetKey.currentContext; | |
| if (context != null) { | |
| try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.ems.a7diets.Utils | |
| import com.ems.a7diets.Application.AppApplication | |
| import io.branch.indexing.BranchUniversalObject | |
| import io.branch.referral.Branch | |
| import io.branch.referral.util.BranchEvent | |
| import io.branch.referral.util.ContentMetadata | |
| import kotlin.random.Random | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package proto;// Generated by the protocol buffer compiler. DO NOT EDIT! | |
| // source: my.proto | |
| public final class My { | |
| private My() { | |
| } | |
| public static void registerAllExtensions( | |
| com.google.protobuf.ExtensionRegistryLite registry) { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package shakir.bhav.common | |
| import com.google.common.primitives.Ints | |
| import kotlinx.coroutines.GlobalScope | |
| import kotlinx.coroutines.launch | |
| import okhttp3.* | |
| import proto.My // proto file : https://gist.github.com/shakir915/f2f078058183a5beb4a853d7d6529de4 | |
| import java.io.File | |
| import java.io.FileOutputStream | |
| import java.text.SimpleDateFormat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| double centerX = positioned.dx; | |
| double centerY = positioned.dy; | |
| // Inner and outer radii | |
| double innerRadius =radius; | |
| double outerRadius = 500+ ((1 - progress) *500); | |
| Paint ringPaint = Paint() | |
| ..color = colorShadow.withOpacity(opacityShadow) // Color for the ring | |
| ..style = PaintingStyle.stroke |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.graphics.BlurMaskFilter | |
| import androidx.compose.ui.Modifier | |
| import androidx.compose.ui.draw.drawBehind | |
| import androidx.compose.ui.graphics.Color | |
| import androidx.compose.ui.graphics.Paint | |
| import androidx.compose.ui.graphics.drawscope.drawIntoCanvas | |
| import androidx.compose.ui.graphics.toArgb | |
| import androidx.compose.ui.unit.Dp | |
| import androidx.compose.ui.unit.dp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @file:OptIn(ExperimentalEncodingApi::class) | |
| import javax.crypto.Cipher | |
| import javax.crypto.spec.SecretKeySpec | |
| import kotlin.io.encoding.Base64 | |
| import kotlin.io.encoding.ExperimentalEncodingApi | |
| @OptIn(ExperimentalEncodingApi::class) | |
| fun decrptAES(cipherText: String?): String { |
NewerOlder