Skip to content

Instantly share code, notes, and snippets.

@soeminnminn
soeminnminn / battery-report.php
Created December 31, 2024 14:56
battery report for windows 10 and 11.
<?php
function php_exec( $cmd ){
if( function_exists('exec') ){
$output = array();
$return_var = 0;
exec($cmd, $output, $return_var);
return implode( " ", array_values($output) );
}else if( function_exists('shell_exec') ){
ob_start();
$output = shell_exec($cmd);
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace S16.Text
{
public class ZawgyiFixer
{
#region Constance Variables
using System;
using System.Collections.Generic;
using System.Text;
using System.Globalization;
using System.Text.RegularExpressions;
using System.Collections;
using System.Runtime.InteropServices;
namespace S16.App
{
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
namespace S16.Text
{
public class UniEncodeDecode
{
public UniEncodeDecode()
using System;
using System.Collections.Generic;
using System.Text;
namespace S16.App
{
#region TypeDefine
public class typedef<T>
{
#region Variables
// ==========================================================
// TargaImage
//
// Design and implementation by
// - David Polomis ([email protected])
//
//
// This source code, along with any associated files, is licensed under
// The Code Project Open License (CPOL) 1.02
// A copy of this license can be found in the CPOL.html file
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Globalization;
using System.IO;
using System.Runtime.Serialization;
using System.Collections.Specialized;
namespace S16.Text
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using System.Security.Permissions;
namespace S16.IO
@soeminnminn
soeminnminn / ScaleTypeDrawable.java
Created November 4, 2015 03:25
Android Drawable with scale type.
package com.s16.drawing;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import android.annotation.SuppressLint;
import android.content.ContentResolver;
import android.content.Context;