Skip to content

Instantly share code, notes, and snippets.

body {
background: yellow;
font-size: 20px;
color: red;
}
Install nodemon
npm install -g nodemon
Copy this file to your $HOME folder
https://gist.github.com/styson/7d56bafc9d1b7fe1ff1d3dd907b7bf0c
run this command from your bash cmd window
@styson
styson / nodemon.json
Created December 9, 2016 21:22
config file for watching for c# changes
{
"restartable": "rs",
"ignore": [
"CommonAssemblyInfo.cs"
],
"verbose": false,
"watch": [
"source/"
],
"ext": "cs"
{
"cmd": ["cscript", "$file"],
"selector": "source.js"
}

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:

@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");
@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")
)
);
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: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>
<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");