This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
mkdir lgogd && cd lgogd &&\ | |
sudo add-apt-repository ppa:nilarimogard/webupd8 &&\ | |
sudo apt-get update &&\ | |
sudo apt-get install -f lgogdownloader &&\ | |
wget https://github.com/ssokolow/lgogd_uri/archive/master.tar.gz &&\ | |
tar -xvzf master.tar.gz &&\ | |
cd lgogd_uri-master && ./install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma strict | |
// reference code http://bigbadwofl.me/random-dungeon-generator | |
public var GroundPlane : Transform; // ground plane with 1x1 size | |
public var WallCube : Transform; // wall cube with 1x1x1 size | |
public var MapSizeX : int = 100; // max x units | |
public var MapSizeZ : int = 100; // max z units |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Test Prototyping</title> | |
<script language="javascript"> | |
var X,Y, x,y, i, intNow; | |
X = function() {}; | |
X.prototype.message = function(s) { var mymessage = s + "";} | |
X.prototype.addition = function(i,j) { return (i *2 + j * 2) / 2; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Content-Type: image/png"); | |
$size = isset($_GET['size']) ? $_GET['size'] : 1; | |
$alpha = isset($_GET['alpha']) ? $_GET['alpha'] : 0; | |
$hex = (isset($_GET['color']) && strlen($_GET['color']) == 6) ? $_GET['color'] : "000000"; | |
$im = @imagecreatetruecolor($size, $size) or die('error'); | |
imagesavealpha($im, true); | |
imagefill($im, 0, 0, "0x".dechex(ceil($alpha * 127)).$hex); | |
imagepng($im); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta" : { | |
"title" : "The invisible agents", | |
"description" : "Get the highest market position on three planets and work for the invisible agents." | |
}, | |
"global" : { | |
"maxPlanets" : 3 | |
}, | |
"events" : { | |
"poolSomeRandom" : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe src="http://greenlinkwidget.com/deploy/access/WkpTWkxaZk9FTFJDeVElMkJCdWhsaHFBJTNEJTNE" width="330" height="130" scrolling="no" frameborder="0" style="border:none;"></iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
#remove session id | |
RewriteRule ^/?sid[a-z]*([a-zA-Z0-9,-]{20,40})(/.*) $2 [QSA] | |
#admin pages | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^/?papaya/module\_([a-z0-9\_]+)\.[a-z]{3,4} /papaya/module.php?p_module=$1 [QSA,L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:template name="dialog-element-textarea"> | |
<xsl:param name="element" /> | |
<xsl:param name="elementId" select="generate-id($element)"/> | |
<textarea> | |
<xsl:copy-of select="$element/@*[name() = 'name' or name() = 'class' or name() = 'rows' or name() = 'cols']" /> | |
<xsl:attribute name="id"><xsl:value-of select="$elementId"/></xsl:attribute> | |
<xsl:choose> | |
<xsl:when test="$element/node()"> | |
<xsl:apply-templates select="$element/node()"/> | |
</xsl:when> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* jQuery lightBox plugin | |
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/) | |
* and adapted to me for use like a plugin from jQuery. | |
* @name jquery-lightbox-0.5.js | |
* @author Leandro Vieira Pinho - http://leandrovieira.com | |
* @version 0.5 | |
* @date April 11, 2008 | |
* @category jQuery plugin | |
* @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com) |