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 | |
// trailing slash is important! | |
define('APPPATH', dirname(__FILE__) . DIRECTORY_SEPARATOR); | |
define('BASEPATH', APPPATH); | |
define('ENVIRONMENT', 'development'); | |
require_once( __DIR__ . '\application\libraries\autoload.php'); |
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 | |
use Doctrine\Common\ClassLoader, | |
Doctrine\ORM\Tools\Setup, | |
Doctrine\ORM\EntityManager; | |
class Doctrine { | |
public $em; |
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
{ | |
"config": | |
{ | |
"vendor-dir": "application/libraries" | |
}, | |
"require": | |
{ | |
"doctrine/orm": "v2.4.4", | |
"gedmo/doctrine-extensions": "2.3.9" | |
} |
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 Welcome extends CI_Controller { | |
public function index() { | |
$nome_arquivo = 'teste_'.date('YmdHis'); | |
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
{ | |
"config": | |
{ | |
"vendor-dir": "application/libraries" | |
}, | |
"require": | |
{ | |
"dompdf/dompdf": "0.6.*" | |
} | |
} |
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
Intent intent = new Intent(MainActivity.this, com.artifex.mupdflib.MuPDFActivity.class); | |
intent.setAction(Intent.ACTION_VIEW); | |
intent.setData("file:///android_asset/teste.pdf"); | |
startActivity(intent); |
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
<activity | |
android:name="com.artifex.mupdflib.MuPDFActivity" | |
android:label="@string/app_name" | |
android:screenOrientation="portrait" | |
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" > | |
</activity> | |
<activity | |
android:name="com.artifex.mupdflib.PDFPreviewGridActivity" | |
android:label="@string/app_name" | |
android:screenOrientation="portrait" |
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
public class MainActivity extends Activity { | |
private static final String LUNCH_COUNT = "lunch_count"; | |
private int lunchCount; | |
private SharedPreferences sharedPreferences; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
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
var inputs = document.getElementsByClassName('uiButton _1sm'); | |
for(var i=0; i<inputs.length;i++) { | |
inputs[i].click(); | |
} |
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
javascript:var inputs = document.getElementsByClassName('uiButton _1sm'); | |
for(var i=0; i<inputs.length;i++) { | |
inputs[i].click(); | |
} |
NewerOlder