This file contains 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
configuration { | |
font: "monospace 10"; | |
modi: "drun,run"; | |
show-icons: true; | |
theme: "default"; | |
} | |
* { | |
background: #222222; | |
foreground: #ffffff; |
This file contains 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.github.yohannestz.visionedu.view.customview | |
import android.annotation.SuppressLint | |
import android.content.Context | |
import android.graphics.* | |
import android.util.AttributeSet | |
import android.view.View | |
class RatingView @JvmOverloads constructor( | |
context: Context, |
This file contains 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
bookRepository.getChapaLink = async (userId, bookId) => { | |
let result = { | |
success: false, | |
error: null, | |
checkoutUrl: null | |
}; | |
try { | |
// Retrieve the book details by bookId | |
const book = await bookRepository.getById(bookId); |
This file contains 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
const os = require('os'); | |
const si = require('systeminformation'); | |
const getHardwareHealth = async () => { | |
const cpu = os.cpus(); | |
const totalMemoryBytes = os.totalmem(); | |
const freeMemoryBytes = os.freemem(); | |
const totalMemoryMb = Math.round(totalMemoryBytes / 1024 / 1024); | |
const freeMemoryMb = Math.round(freeMemoryBytes / 1024 / 1024); | |
const platform = os.platform(); |
This file contains 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
/* | |
* Copyright (c) 2024. YohannesTz, Africa Technologies PLC | |
*/ | |
import android.animation.ValueAnimator | |
import android.content.Context | |
import android.graphics.Canvas | |
import android.graphics.Color | |
import android.graphics.Paint | |
import android.graphics.RectF |
This file contains 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
#!/bin/bash | |
# Define the text to add | |
copyright_text=" | |
/* | |
* Copyright (c) 2024, YohannesTz, Africa Technologies PLC //change your text here | |
* | |
*/" | |
# Find all .kt and .java files recursively in the given folder |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@drawable/bgcover" | |
android:orientation="vertical" | |
tools:context=".MainActivity"> |
This file contains 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
<?php | |
defined('BASEPATH') or exit('No direct script access allowed'); | |
class Auth_Util { | |
private $firebaseConfig; | |
private $scope; | |
public function __construct() { | |
$this->CI =& get_instance(); | |
$this->CI->load->library('FirebaseServiceConfig'); |
This file contains 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
# usage | |
chmod +x package_resolver.sh | |
./pacakge_resolver.sh /input/folder /output/folder |
This file contains 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
#!/bin/bash | |
coordinates=("$@") | |
# Start GPX file | |
echo '<?xml version="1.0" encoding="UTF-8"?>' > track.gpx | |
echo '<gpx version="1.1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">' >> track.gpx | |
echo '<trk>' >> track.gpx | |
echo '<trkseg>' >> track.gpx |
NewerOlder