Hittade en lite kul idé. Det är någon som snickrat ihop ett CMS som består endast av en enda fil. Kanske kan ha nytta av den någon gång, vem vet!
Hittade en lite kul idé. Det är någon som snickrat ihop ett CMS som består endast av en enda fil. Kanske kan ha nytta av den någon gång, vem vet!
ons, Feb 3, 2010
Facebook har under 2 års tid utvecklat hiphop som ska kompilera php koden och dra upp prestandan med ca 50%. Konverteraren konverterar om koden till C++ så att den går att kompilera med g++. Denna är utlagd som open source projekt på github.
http://developers.facebook.com/news.php?blog=1&story=358
ons, Maj 20, 2009
Denna PHP klass används för att mäta den tid som gått i mikrosekunder.This class can be used to measure the time that elapses in microseconds.
Det kan börja mäta tiden från valfri plats i PHP-skriptet för att ta reda på hur lång tid ett skript tar i mikrosekunder.It can start measuring the time at any point of a PHP script taking note of the current time in microseconds.
Later the class can stop measuring time and returns the time that elapsed since the beginning.
Ladda nerDownload: Microtime 2009-05-06 (284)
mån, Maj 18, 2009
Denna röstnings-klass byggt med PHP och Ajax kan du använda när du snabbt och enkelt vill bygga en röstningsfunktion.
This PHP Ajax Voting class can be used to manage a vote polling system.
Den sparar resultaten i en MySQL databas.It can record in a MySQL database the votes of the users in several possible options also defined in a database table of poll options.
Den använder cookies för att hålla reda på om en röst gjorts per användare så användaren inte kan rösta igen.It uses cookies to keep track of votes done by each user to prevent users voting again.
Klassen kan också hämta ut statistik för vardera undersökning.The class can also retrieve the statistics of votes done for each poll option.
Ladda nerDownload: PHP Ajax Voting 2009-05-15
fre, Maj 15, 2009
TextboxList är ett till plugin till MooTools som förvandlar dina vanliga inputfält till en widget där du kan navigera i en lista med tangentbordet som skapas med ett Autocomplete plugin som följer med. Du kan enkelt ta bort saker från listan.TextboxList another plugin to MooTools that turns normal textboxes into a widget which can be navigated with the keyboard, effectively turning your input into a “list” of items that can be easily deleted. It comes with an Autocomplete plugin.

Facebook-like TextboxList
Demo: http://devthought.com/projects/mootools/textboxlist/
Ladda nerDownload: Textboxlist V0.3
fre, Maj 15, 2009
TokenInput låter dig välja från en lista medans du skriver, den använder sig av autocompletion medans du skriver för att hitta resultaten. Du har säkert sätt liknande när du fyller i mottagare på exempelvis facebook.TokenInput allow users to select multiple items from a predefined list, using autocompletion as they type to find each item. You may have seen a similar type of text entry when filling in the recipients field sending messages on facebook.

Vertical list style item selection

Facebook style item selection
Demo: http://loopj.com/tokeninput/demo.html
Ladda nerDownload: http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/
tor, Maj 14, 2009
jPlayer är en Open Source Javascript Mp3 Spelare. jPlayer är baserat på jQuery.
Denna Open Source Javascript Mp3 Spelare Låter dig:
jPlayer is an Open Source Javascript Mp3 Player. jPlayer is based on the popular framework jQuery.
This Open Source Javascript Mp3 Player allows you to:
Allt detta utan synlig flashFlash.All of this with no visible Flash.
Demo: http://www.happyworm.com/jquery/jplayer/0.2.1/demos.htm
Ladda nerDownload: jQuery.jPlayer.0.2.1.source.zip
tis, Maj 12, 2009
Den här PHP klassen, CSS Compressor, kan du använda för att minska storleken på dina CSS filer
CSS Compressor tar hela CSS filens innehåll och städar upp CSS filen efter angivna regler som minskar antalet bytes.CSS Compressor can be used to compact the size of CSS definitions.
CSS Compressor takes a string with CSS definitions and performs several types of operations that can reduce the number of bytes that the resulting CSS definitions take.
Ladda nerDownload: CSS compressor 2009-05-07
tor, Apr 30, 2009
ColorBox tycker jag är en av de bättre lighbox pluginnen till jQuery. Den är snygg enkel och det behövs nästan ingen kod alls. ColorBox kan visa foton, iframes, extern HTML (ajax ), intern HTML och flash.ColorBox is one of the better lighbox plugins for jQuery. It is pretty simple and it need almost no code at all. ColorBox works with photos, iframes, external HTML (ajax ), inline HTML and flash.
Demo: 01, 02, 03, 04
Ladda nerDownload: Colorbox V1.1.6
ons, Apr 29, 2009
MySQL 2 JSON är en enkel PHP klass som genererar JSON kod utifrån en MySQL fråga. Den tar en MySQL fråga och skapar helt enkelt en JSON sträng innehållande alla rader från frågan.
MySQL 2 JSON is a basic PHP class that Generate JSON output from MySQL query results. It takes an handle of a previously executed MySQL database query and retrieves the results to generate a JSON string with the values of all the result rows.
ExempelSample:
<?PHP
//include the mysql_to_json class
include(‘mysql_to_json.class.php’);
//Mysql stuff.
mysql_connect(‘host’, ‘username’, ‘password’);
mysql_select_db(‘users’);
$query = mysql_query(‘SELECT * FROM users’);
//Now mysql_to_json supports many methods of getting from your query to the json output, I will show you 2 methods
/////////////////////////////////////
// METHOD 1 – Using constructor //
///////////////////////////////////
//create a new instance of mysql_to_json
$mtj = new mysql_to_json($query, ‘cbfunc’);
//show the json output
echo $mtj->get_json();
///////////////////////////////////////
// METHOD 2 – Using method chaining //
/////////////////////////////////////
//create a new blank instance of mysql_to_json
$mtj = new mysql_to_json();
//show the json output through method chain
echo $mtj->set_query($query)->set_cbfunc(‘cbfunc’)->get_json();
?>
Ladda nerDownload: MySQL to json 2009-04-22
tor, Feb 25, 2010
0 Kommentarer