Skip to content

Instantly share code, notes, and snippets.

View maxmumford's full-sized avatar

Max Mumford maxmumford

  • Cocept
  • Brighton
View GitHub Profile
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<?php
require_once ('./captcha/recaptchalib.php');
global $publickey;
global $privatekey;
$publickey = "xxxxxxxxxx";
$privatekey = "xxxxxxxxxx";
echo recaptcha_get_html ( $publickey, $error );
$config = array(
"host" => "localhost", //the hostname of your database server
"db" => "gtd", //the name of your database
"prefix" => "gtdphp_", // the GTD table prefix for your installation (optional)
"user" => "gtd", //username for database access
"pass" => "password", //database password
"dbtype" => "mysql", //database type: currently only mysql is valid. DO NOT CHANGE!
);
String[] info = new String[2];
info[0] = "info 1";
info[1] = "info 2";
LayoutInflater layoutInflator = (LayoutInflater) getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
LinearLayout insertPoint = (LinearLayout) findViewById(R.id.linearLayout1);
List views = new ArrayList();
for(int i=0; i < info.length; i++){
View view = layoutInflator.inflate(R.layout.linearLayout1, null);
myNotification.sound = Uri.parse("android.resource://com.myPackageName.org/" + R.raw.myNotificationSound);
<div class="overlay_fix"></div>
.overlay_fix {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 100000;
opacity: 0;
display: none;
}
var overlay_fix_start = function() {
$('.overlay_fix').show();
}
var overlay_fix_stop = function() {
$('.overlay_fix').hide();
};
// initiate gridster with the above functions executed each time a drag is started / stopped
$(".gridster ul").gridster({
sudo apt-get install libssl0.9.8:i386
<script type="text/javascript" src="js/qrdecoder/grid.js"></script>
<script type="text/javascript" src="js/qrdecoder/version.js"></script>
<script type="text/javascript" src="js/qrdecoder/detector.js"></script>
<script type="text/javascript" src="js/qrdecoder/formatinf.js"></script>
<script type="text/javascript" src="js/qrdecoder/errorlevel.js"></script>
<script type="text/javascript" src="js/qrdecoder/bitmat.js"></script>
<script type="text/javascript" src="js/qrdecoder/datablock.js"></script>
<script type="text/javascript" src="js/qrdecoder/bmparser.js"></script>
<script type="text/javascript" src="js/qrdecoder/datamask.js"></script>
<script type="text/javascript" src="js/qrdecoder/rsdecoder.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery191.js"></script>