Skip to content

Instantly share code, notes, and snippets.

View javadghane's full-sized avatar
🎧
Turn the volume up

Javad Ghane javadghane

🎧
Turn the volume up
View GitHub Profile
/**
* Builder for [Preview] that takes in a [WeakReference] of the view finder and
* [PreviewConfig], then instantiates a [Preview] which automatically
* resizes and rotates reacting to config changes.
*/
class AutoFitPreviewBuilder private constructor(config: PreviewConfig,
viewFinderRef: WeakReference<TextureView>) {
/** Public instance of preview use-case which can be used by consumers of this adapter */
val useCase: Preview
@Hameds
Hameds / ReplaceYeKe.sql
Last active April 23, 2024 08:23
Replace Arabic ي & ك in SQL Server Database with Persian characters
use [DATABASE_NAME];
DECLARE @Table NVARCHAR(MAX)
DECLARE @Col NVARCHAR(MAX)
DECLARE Table_Cursor CURSOR
FOR
--پيدا کردن تمام فيلدهاي متني تمام جداول ديتابيس جاري
SELECT a.name, --table
b.name --col
FROM sysobjects a,
syscolumns b
@faboo03
faboo03 / boundingBox.php
Last active August 5, 2020 21:57
boundingBox.php code sample
<?php
interface iBoundingBox {
/**
* Récupère les coordonnées de la BoundingBox
*/
public function getCoords();
/**
* Fusionne 2 BoundingBox et retourne une BoundingBox qui contient les 2 précédentes.
*/