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
# dchud's 20 minute guide to installing DSpace 4.0 from the binary release | |
# on a clean ubuntu 12.04 server running on aws ec2 or where-have-you | |
# | |
# this guide assumes you are already comfortable with *nix system administration | |
# | |
# this guide leaves out anything to do with the many details of configuring | |
# DSpace itself; it just gets you to the "it's up and running" step | |
# | |
# to start: get your clean ubuntu-12.04 system up to date | |
$ sudo apt-get update && sudo apt-get upgrade |
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
Hi | |
I hope this helps you all get started with phonegap and sqlite in your | |
application | |
Dean-O | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> |
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 | |
$dbh=new PDO("mysql:dbname=onlinemarket;host=172.17.0.32", "root", "root"); | |
foreach($dbh->query('SELECT * from listings') as $row) | |
{ | |
print_r($row); | |
} |
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
# Observacao: Ainda estou traduzindo e validando as opcoes para a linguagem pt. | |
# Dado (Given) | |
Dado Eu estou na página de entrada | |
Dado Eu estou em "url" | |
# Quando (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
<a id='like_12' href='#' onclick='function(this)'>curti!</a> | |
<a id='like' data-speaker-id='12' href='#'>curti!</a> | |
$('#like').live('click', function(event){ | |
speaker_id = $(this).attr('data-speaker_id'); | |
sendRequest('/like',{speaker:speaker_id}, | |
'#vote_'+speaker_id); | |
return false; | |
}); |
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 if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
class Layout | |
{ | |
public $base_url; | |
public function initx(){ | |
return 'ok!'; | |
} | |
/** | |
* Metodo que executa as implementacoes. |
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 | |
class MY_Controller extends CI_Controller | |
{ | |
# public $layout = 'default'; | |
public $title = 'Unesc - Universidade do Extremo Sul Catarinense'; | |
public $css = array('application','libs/blueprint/screen'); | |
public $js = array('application','libs/jquery-1.6.2.min','libs/modernizr-2.0.6'); | |
public $data = array(); | |
public $view = TRUE; |
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 lang="pt-br"> | |
<head> | |
<meta charset="utf-8"> | |
<title>{title_for_layout}</title> | |
{css_for_layout} | |
{js_for_layout} | |
<!--[if lt IE 8]><link rel="stylesheet" href="assets/css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]--> | |
</head> | |
<body> |
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 if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
function render_partial($partial, $locals = null, $collection = null, $ajax = NULL) { | |
$partial = APPPATH .'views/'. $partial; | |
$contents = ''; | |
foreach($locals AS $key => $value) { | |
${$key} = $value; |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class People extends MY_Controller { | |
function __construct() { | |
parent::__construct(); | |
} | |
function index() | |
{ |
OlderNewer