Archiv rubriky: Open Source
Wrappit4wine
Simple tool to create sceleton of wine dll wrapper for so, wrapped library.
Grive, google drive for Linux
Grive 0.3.1 Google drive client for Linux
KGPU – Augmenting Linux with GPUs
KGPU – Augmenting Linux with GPUs. Originaly from Weibin Sun forked, for made main modifications and optimizations.
cgminer
CGMINER is application for bitcoin and lite coin mining. Originaly from Con Kolivas forked, for made main modifications and optimizations.
Wine CUDA Wrapper
Light implementation of CUDA application libraries wrapper enables your wine application direct access to power of CUDA cards.
Multiple extends for Java
Implementation of Multiple class extends alias multiple inheritance in Java.
Basics Adventure: General purpose JavaScript objects
Javascript sada tříd pro řešení základních problémů. Homepage: Basics Adventure: General purpose JavaScript objects
SimpleImage
Jednoduchá třída se statickým přistupem pro zpracování obrázků ve formátu JPG,PNG,GIF. – Změna velikosti – Načtení – Uložení Homepage: SimpleImage
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
<?php /** * SimpleImage * @description Class to manipulate with images * @version 1.0.0 * @copyright (c) 2013 Juraj Puchký - Devtech * @license GPLv3 * @autor Juraj Puchký - Devtech <sjurajpuchky@seznam.cz> * */ defined ( '_JEXEC' ) or die ( 'Restricted access' ); class SimpleImage { public static function load($filename) { $image_info = getimagesize ( $filename ); $image_type = $image_info [2]; $image = null; try { switch ($image_type) { case IMAGETYPE_JPEG : $image = imagecreatefromjpeg ( $filename ); break; case IMAGETYPE_GIF : $image = imagecreatefromgif ( $filename ); break; case IMAGETYPE_PNG : $image = imagecreatefrompng ( $filename ); break; default : return false; } } catch ( Exception $e ) { error_log ( $e->getMessage () ); return false; } return $image; } public static function save($image, $filename, $image_type = IMAGETYPE_JPEG, $compression = 75, $permissions = null) { try { switch ($image_type) { case IMAGETYPE_JPEG : imagejpeg ( $image, $filename, $compression ); break; case IMAGETYPE_GIF : imagegif ( $image, $filename ); break; case IMAGETYPE_PNG : imagepng ( $image, $filename ); break; default : return false; } if ($permissions !== null) { chmod ( $filename, $permissions ); } } catch ( Exception $e ) { error_log ( $e->getMessage () ); return false; } return true; } public static function getWidth($image) { return imagesx ( $image ); } public static function getHeight($image) { return imagesy ( $image ); } public static function resizeToHeight($image, $height) { $ratio = $height / self::getHeight ( $image ); $width = self::getWidth ( $image ) * $ratio; return self::resize ( $image, $width, $height ); } public static function resizeToWidth($image, $width) { $ratio = $width / self::getWidth ( $image ); $height = self::getheight ( $image ) * $ratio; return self::resize ( $image, $width, $height ); } public static function scale($image, $scale) { $width = self::getWidth ( $image ) * $scale / 100; $height = self::getheight ( $image ) * $scale / 100; return self::resize ( $image, $width, $height ); } public static function resize($image, $width, $height) { $new_image = imagecreatetruecolor ( $width, $height ); imagecopyresampled ( $new_image, $image, 0, 0, 0, 0, $width, $height, self::getWidth ( $image ), self::getHeight ( $image ) ); return $new_image; } } |
Saxophone
Tento projekt ukazuje jednoduchý způsob implementace SAX praseru s podporou streamu. Minimální nároky na paměť a způsob zpracování dat jej předurčuje pro import velkých dávek v XML formátu. Homepage: http://www.phpclasses.org/package/8293-PHP-PHP-stream-handler-to-search-XML-with-XPATH.html *třída Saxophone obhájila 2. žebříček v Innovation Awards na PHPClasses.org, … Celý příspěvek
JavaScript Translate API V2 client
REST API client for Google translate v2 API with support JSON processing of messages – supported languages – detection of language – translate of text Distributed under GPLv3 licence any time you wish you can donate only 5$ to this … Celý příspěvek