- Added changes suggested by Lucas Gonze.
- Added changelog.
- Initial release.
<?php | |
$countries = array | |
( | |
'AF' => 'Afghanistan', | |
'AX' => 'Aland Islands', | |
'AL' => 'Albania', | |
'DZ' => 'Algeria', | |
'AS' => 'American Samoa', | |
'AD' => 'Andorra', |
<?php | |
/** | |
* Turn all URLs in clickable links. | |
* | |
* @param string $value | |
* @param array $protocols http/https, ftp, mail, twitter | |
* @param array $attributes | |
* @return string | |
*/ | |
public function linkify($value, $protocols = array('http', 'mail'), array $attributes = array()) |
<?php | |
/** | |
* @author Kristaps Karlsons <kristaps.karlsons@gmail.com> | |
* Licensed under MPL 1.1 | |
*/ | |
function mc_status($host,$port='25565') { | |
$timeInit = microtime(); | |
// TODO: implement a way to store data (memcached or MySQL?) - please don't overload target server | |
$fp = fsockopen($host,$port,$errno,$errstr,$timeout=10); |
package com.comphenix.example; | |
import net.minecraft.server.v1_4_R1.EntityPlayer; | |
import net.minecraft.server.v1_4_R1.Packet70Bed; | |
import org.bukkit.ChatColor; | |
import org.bukkit.command.Command; | |
import org.bukkit.command.CommandSender; | |
import org.bukkit.craftbukkit.v1_4_R1.entity.CraftPlayer; | |
import org.bukkit.entity.Player; |
var net = require("net") | |
, dns = require("dns") | |
, exp = require("express") | |
, app = exp(); | |
app.configure(function() { | |
app.use(exp.logger()); | |
app.use(app.router); | |
}); |
<?php | |
$countryArray = array( | |
'AD'=>array('name'=>'ANDORRA','code'=>'376'), | |
'AE'=>array('name'=>'UNITED ARAB EMIRATES','code'=>'971'), | |
'AF'=>array('name'=>'AFGHANISTAN','code'=>'93'), | |
'AG'=>array('name'=>'ANTIGUA AND BARBUDA','code'=>'1268'), | |
'AI'=>array('name'=>'ANGUILLA','code'=>'1264'), | |
'AL'=>array('name'=>'ALBANIA','code'=>'355'), | |
'AM'=>array('name'=>'ARMENIA','code'=>'374'), | |
'AN'=>array('name'=>'NETHERLANDS ANTILLES','code'=>'599'), |
<?php | |
/** | |
* ownCloud - passman | |
* | |
* This file is licensed under the Affero General Public License version 3 or | |
* later. See the COPYING file. | |
* | |
* @author Sander Brand <brantje@gmail.com> | |
* @copyright Sander Brand 2014 | |
*/ |
<# | |
.SYNOPSIS | |
Resize an image | |
.DESCRIPTION | |
Resize an image based on a new given height or width or a single dimension and a maintain ratio flag. | |
The execution of this CmdLet creates a new file named "OriginalName_resized" and maintains the original | |
file extension | |
.PARAMETER Width | |
The new width of the image. Can be given alone with the MaintainRatio flag | |
.PARAMETER Height |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Minecraft Name History - Nicholas "LB" Braden</title> | |
<link rel="canonical" href="http://www.LB-Stuff.com/Minecraft-Name-History" /> | |
<link rel="stylesheet" href="/light.css" /> | |
<link rel="icon" type="image/png" href="/LB.png" /> | |
<script src="https://apis.google.com/js/platform.js" async defer></script> | |
</head> |