Skip to content

Instantly share code, notes, and snippets.

@mloberg
mloberg / index.php
Created April 18, 2011 20:40
Last.fm Simple PHP Class
<?php
include_once('lastfm.php');
$lastfm = new LastFm('your-api-key');
$params = array(
'user' => 'mloberg'
);
print_r($lastfm->call('user.getInfo', $params));
@alxarch
alxarch / geeklish.sql
Created October 26, 2014 10:21
Greek to greeklish for MySQL
DELIMITER $$
CREATE DEFINER=`root`@`localhost` FUNCTION `greeklish`(input text charset utf8) RETURNS text CHARSET utf8
BEGIN
DECLARE result text charset utf8 DEFAULT '';
DECLARE len INT(4) DEFAULT 0;
DECLARE pos INT(4) DEFAULT 1;
DECLARE letter VARCHAR(10) charset utf8;
SET input = LOWER(input);
SET len = CHAR_LENGTH(input);
@jimmywarting
jimmywarting / readme.md
Last active November 15, 2024 12:47
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers