Skip to content

Instantly share code, notes, and snippets.

J. Cole Brand jcolebrand

Block or report user

Report or block jcolebrand

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View DockerDebugInfo-Output.txt
>>>>>> OS Version
SystemDirectory : C:\Windows\system32
Organization :
BuildNumber : 14393
RegisteredUser : Windows User
SerialNumber : 00376-30818-63755-AA823
Version : 10.0.14393
@jcolebrand
jcolebrand / httpcontextwrapper.cs
Created Feb 24, 2017
for talking to Nick Craver
View httpcontextwrapper.cs
// this is mockable in your unit tests so you can just assign the func over it
public static Func<HttpContextBase> Context = () => new HttpContextWrapper(HttpContext.Current);
public void SomeMethod(){
var context = Context();
if (context == null) return;
// use context here like you would HttpContext.Current
}
View keyproof.md

Keybase proof

I hereby claim:

  • I am jcolebrand on github.
  • I am jcolebrand (https://keybase.io/jcolebrand) on keybase.
  • I have a public key whose fingerprint is D791 F373 603E EBB4 13FA AF32 7800 2A82 A1EC E4C1

To claim this, I am signing this object:

View gist:ea3aa97d36dea9265e98
insert into #t select 'IMMEDIATE DESTINATION ABA', '111000038'
insert into #t select 'IMMEDIATE ORIGIN ABA', '314977405'
insert into #t select 'IMMEDIATE DESTINATION NAME', 'DALLAS FEDERAL RESERVE'
insert into #t select 'IMMEDIATE ORIGIN NAME', 'UNIVERSITY FCU'
insert into #t select 'ORIGINATING DFI ABA', '314977405'
insert into #t select 'COMPANY NAME', 'UNIVERSITY FCU'
insert into #t select 'INFILE IMMEDIATE DESTINATION ABA', '314977405'
insert into #t select 'INFILE IMMEDIATE ORIGIN ABA', '314977405'
insert into #t select 'INFILE IMMEDIATE DESTINATION NAME', 'UNIVERSITY FCU'
insert into #t select 'INFILE IMMEDIATE ORIGIN NAME', 'UNIVERSITY FCU'
View gist:4521772
/* COLE!! DO NOT FORGET ABOUT BOT ELEMENTS!! ~~~~ cole */
/* for every x, xBy field pair (eg: deleted/deletedBy), should consider replacing with an object and use falsey-nulls for non-case
* have the object be a "by" which consists of the date and whatever is in the by field, currently a user-id and user-name
*/
chat comments:
{
id: long,
room: int,
@jcolebrand
jcolebrand / Log4js.js
Last active Dec 10, 2015
log4js implementation as taken on this date. Just for purposes of seeing it in the cloud.
View Log4js.js
var Log4js = {
version : "1.0",
applicationStartDate : new Date(),
loggers : {},
getLogger : function (categoryName) {
if (!(typeof categoryName == "string")) {
categoryName = "[default]";
}
if (!Log4js.loggers[categoryName]) {
Log4js.loggers[categoryName] = new Log4js.Logger(categoryName);
@jcolebrand
jcolebrand / Results.txt
Created Jun 19, 2012
StackOverflow 2012 Election Results
View Results.txt
OpenSTV version 1.7 (http://www.OpenSTV.org/)
Suggested donation for using OpenSTV for an election is $50. Please go to
http://www.OpenSTV.org/donate to donate via PayPal, Google Checkout, or
Amazon Payments.
Certified election reports are also available. Please go to
http://www.openstv.org/certified-reports for more information.
Loading ballots from file stackoverflow-com-2012-election-results.blt.
View gist:2937422
<span id="anonymous_element_1_container" class="mceEditor defaultSimpleSkin">
<table cellspacing="0" cellpadding="0" class="mceLayout" style="width: 100%; height: 9000px;">
<tbody>
<tr>
<td>
<div class="mceIframeContainer">
<iframe frameborder="0" id="anonymous_element_1_ifr" src="javascript:&quot;&quot;" allowtransparency="true" title="Rich Text Area" style="width: 100%; height: 8980px; display: block;"/>
</div>
</td>
</tr>
@jcolebrand
jcolebrand / Zalgo.html
Created Jun 15, 2012
For the perusal of Ben Brocka
View Zalgo.html
<p>You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool that is insufficiently sophisticated to understand the constructs employed by HTML. HTML is not a regular language and hence cannot be parsed by regular expressions. Regex queries are not equipped to break down HTML into its meaningful parts. so many times but it is not getting to me. Even enhanced irregular regular expressions as used by Perl are not up to the task of parsing HTML. You will never make me crack. HTML is a language of sufficient complexity that it cannot be parsed by regular expressions. Even Jon Skeet cannot parse HTML using regular expressions. Every time you attempt to parse HTML with regular expressions, the unholy child weeps the blood of virgins, and Russian hackers pwn your webapp. Parsing HTML
View gist:2788975
Dim WFSDINSTITUTION As String =""
Dim WFSDSTRING As New System.Data.SqlClient.SqlConnection
WFSDSTRING.ConnectionString ="Data Source=LED-SQL;Initial Catalog=WorkforceSD_DEV;Integrated Security=True"
WFSDSTRING.Open()
Dim Institution As String ="Provider = Microsoft.ACE.OLEDB.12.0;Data Source=C:\Documents and Settings\CSchexnaydre\Desktop\TEST SHEETS\Institution\INST_TEST2010.csv;HDR=YES;"
You can’t perform that action at this time.