Skip to content

Instantly share code, notes, and snippets.

@RazorAnt
RazorAnt / install.html
Created July 8, 2016 16:21
iOS Enterprise Deployment - for distribution with your IPA
<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>
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" }
@RazorAnt
RazorAnt / gist:6992563
Created October 15, 2013 14:37
Airmail script for ProfitTrain
-- 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
@RazorAnt
RazorAnt / iTextXMLSample
Created November 2, 2012 03:09
iText XML Samples
<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>
@RazorAnt
RazorAnt / RazorPDFSamples1
Created November 2, 2012 02:40
RazorPDF View to Pdf or Html
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);