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
<html> | |
<head> | |
<title>My app install</title> | |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> | |
<style> | |
body { | |
font: 13pt Helvetica, sans-serif; | |
} | |
</style> | |
</head> |
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
try | |
{ | |
// Code that is doing whatever to item x | |
} | |
catch (Exception ex) | |
{ | |
Insights.Report(new Exception("My exception with data"), new Dictionary<string, string> | |
{ | |
{ "Process", "doing whatever" }, | |
{ "Item", "my item" } |
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
-- The following is an AppleScript function ProfitTrain will call when you choose "Email Client..." | |
-- under an invoice. Before using the built in AppleScript ProfitTrain will look for | |
-- this user AppleScript file at: | |
-- /Users/[you]/Library/Application Support/ProfitTrain/email_invoice_using_user_script.scpt | |
-- By edting this file you can further customize the email with different subject lines, etc. | |
-- and/or use an alternative email client that is not supported by Billable by default. | |
-- Script using Airmail |
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
<itext creationdate="@DateTime.Now.ToString()" producer="RazorPDF"> | |
<paragraph style="font-family:Helvetica;font-size:18;font-weight:bold;font-style:italic;"> | |
<chunk red="255" green="0" blue="0">@ViewBag.Title</chunk> | |
</paragraph> | |
<table width="100%" cellpadding="1.0" cellspacing="1.0" widths="5;5"> | |
<row> | |
<cell borderwidth="0.5" left="false" right="false" top="false" bottom="true">User Name</cell> | |
<cell borderwidth="0.5" left="false" right="false" top="false" bottom="true" horizontalalign="right">Lucky Number</cell> |
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
public ActionResult Something() | |
{ | |
// Get model | |
var list = repository.GetStuff(); | |
// Output to Pdf? | |
if (Request.QueryString["format"] == "pdf") | |
return new PdfResult(list, "Something"); | |
return View(list); |