This file contains hidden or 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 pdf = new MuPDFCore(this, pdfFilepath); | |
var cookie = new MuPDFCore.Cookie(pdf); | |
var count = pdf.CountPages(); | |
for (int i = 0; i < count; i++) | |
{ | |
var size = pdf.GetPageSize(i); | |
int pageWidth = (int)size.X; | |
int pageHeight = (int)size.Y; |
This file contains hidden or 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 uri = Uri.Parse("/mnt/sdcard/some.pdf"); | |
var intent = new Intent(this, typeof (MuPDFActivity)); | |
intent.SetAction(Intent.ActionView); | |
intent.SetData(uri); | |
StartActivity(intent); |
This file contains hidden or 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
<ion-view id="login" hide-nav-bar="true"> | |
<ion-content padding="true" scroll="false"> | |
<form> | |
<div class="row responsive-md"> | |
<div class="col col-50 col-offset-25"> | |
<div class="header padding text-center"> | |
<img src="img/logo.png" alt="Your logo here"/> | |
</div> |
This file contains hidden or 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
#login { | |
background: #1c2627 url("../img/login_bg.jpg") no-repeat center center; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
.scroll-content { | |
display: table !important; | |
width: 100% !important; |
This file contains hidden or 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
DECLARE | |
v_items_cursor SYS_REFCURSOR; | |
v_csv CLOB; | |
BEGIN | |
OPEN v_items_cursor FOR | |
SELECT * FROM items; | |
v_csv := cursor_to_csv(v_items_cursor); | |
END; |
This file contains hidden or 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
DECLARE | |
v_csv CLOB; | |
BEGIN | |
SELECT query_to_csv('SELECT * FROM items') INTO v_csv FROM dual; | |
END; |
This file contains hidden or 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
ITEM_ID;NAME;PRICE | |
1;mi;328 | |
2;Duis gravida praesent;5 | |
3;ac mattis semper;353 | |
4;volutpat nunc sit;431 | |
5;pede blandit;433 | |
6;eros;452 | |
7;ac orci;243 | |
8;felis ullamcorper viverra;250 | |
9;lorem, luctus ut;494 |
This file contains hidden or 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
FUNCTION cursor_to_csv ( | |
p_cursor IN OUT SYS_REFCURSOR | |
) | |
RETURN CLOB | |
IS | |
l_cursor_id INTEGER DEFAULT dbms_sql.open_cursor; | |
l_colval VARCHAR2 (2096); | |
l_buffer VARCHAR2 (32767) DEFAULT ''; | |
l_status INTEGER; | |
i_colcount NUMBER DEFAULT 0; |
This file contains hidden or 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
[CacheResult(Duration = 1000)] | |
public string Process(string arg) | |
{ | |
return Guid.NewGuid().ToString("N"); | |
} |
This file contains hidden or 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
Console.WriteLine(worker.Process("foo")); | |
Console.WriteLine(worker.Process("foo")); | |
Console.WriteLine(worker.Process("foo")); | |
Console.WriteLine("Sleeping 2 seconds..."); | |
Thread.Sleep(2000); | |
Console.WriteLine(worker.Process("foo")); | |
// result |
OlderNewer