Skip to content

Instantly share code, notes, and snippets.

@styson
styson / columnSelect.css
Created January 11, 2011 19:39
Add ability to select all of the text from a table column.
.columnHighlight { background-color: #9BFF9B; }
.temp { width:100%;margin:.2em 0; }
span.column { display:block;margin:.2em 0; }
h4 { margin:2em 0 .4em 0; }
.helpSpan { font-size:.7em;color:#444; }
.deleteIcon { margin:.-2em .4em; }
@styson
styson / columnSelect.css
Created January 11, 2011 19:39
Add ability to select all of the text from a table column.
.columnHighlight { background-color: #9BFF9B; }
.temp { width:100%;margin:.2em 0; }
span.column { display:block;margin:.2em 0; }
h4 { margin:2em 0 .4em 0; }
.helpSpan { font-size:.7em;color:#444; }
.deleteIcon { margin:.-2em .4em; }
<table>
<thead>
<tr>
<th>Make</th>
<th>Model</th>
<th>Color</th>
</tr>
</thead>
<tbody>
<tr>
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var frm = $('.frameWrap1 > ul > li').find('iframe, img').attr('height');
$("<p>" + frm + "</p>").insertAfter("#frm");
var img = $('.frameWrap2 > ul > li').find('iframe, img').attr('height');
$("<p>" + img + "</p>").insertAfter("#img");
@styson
styson / gist:5758781
Created June 11, 2013 17:15
historyListing.spark
<use master="" />
<viewdata model="Agent.Support.Handlers.template.history.listing.HistoryListingModel" />
{[ _.each(groups, function(group) { ]}
<div class="history-group row-fluid">
<div class="rail">
<time datetime="" class="fixed_date">
<em>{{ group.date }}</em><hr/>
<strong>{{ group.month }}</strong>
{{ group.year }}
</time>
shortcuts.update('caseUploadFile', function() {
var dfd = Case.Controller.tabController.getTabDeferred();
dfd.done(openFileDialog);
Case.Controller.tabController.loadDeferredTab(dfd, 'attachments');
});
getTabDeferred: function () {
return $.Deferred();
},
@styson
styson / gist:6072397
Created July 24, 2013 16:59
bad code
.ViaAdhocRelation("subcase_objid", "case", "objid", view => view
.ViaRelation("case_reporter2site", franchise => franchise
.Assign(d => d.ContactName).FromIdentifyingField("site_id")
.Assign(d => d.SiteName).FromField("name")
)
);
@styson
styson / gist:601d30e04c0ec0cce653
Last active August 29, 2015 14:03
test for MoreThan generic date filter
var FCApp = new ActiveXObject("FCFLCompat.FCApplication");
FCApp.WorkingDirectory = 'C:\\projects\\Dovetail-Agent\\pages\\';
FCApp.Initialize();
var FCSession = FCApp.CreateSession();
FCSession.Login('sa', 'sa', 'user');
FCSession.ThrowErrors = false;
var actEntry = FCSession.CreateGeneric('act_entry');
actEntry.AppendFilter("entry_time", ">", "7/2/2014 10:40:13 AM");

Keybase proof

I hereby claim:

  • I am styson on github.
  • I am styson (https://keybase.io/styson) on keybase.
  • I have a public key whose fingerprint is 302B 8E64 6E03 45E2 5D63 9EA0 E9A7 3E1B A3B0 75FE

To claim this, I am signing this object:

{
"cmd": ["cscript", "$file"],
"selector": "source.js"
}