This file contains 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
create function [dbo].[DecryptString] | |
( | |
@xml xml | |
) | |
returns varchar(max) | |
as | |
begin | |
declare @returnString varchar(max); | |
declare @temp table (line int, encryptedText varbinary(max), plainText varchar(max)); |
This file contains 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
EXEC sp_configure 'Ole Automation Procedures', 1; | |
GO | |
RECONFIGURE; | |
GO |
This file contains 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
# Install prerequisites. | |
sudo apt-get install -y build-essential \ | |
libreadline6 libreadline6-dev \ | |
gfortran \ | |
libxorg-dev \ | |
libbz2-dev \ | |
liblzma-dev \ | |
libpcre3-dev \ | |
libcurl4-openssl-dev \ | |
libjpeg-dev libtiff5-dev libicu-dev libcairo2-dev \ |
This file contains 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
'use strict'; | |
const args = process.argv; | |
const cluster = require('cluster'); | |
function getThreads() { | |
let threads = 1; | |
let tag = args.indexOf('--threads'); | |
if (tag > 0) { | |
let newThreads = parseInt(args[tag + 1], 10); |
This file contains 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
#!/usr/bin/env python | |
""" | |
Insert data into HBase with a Python script. | |
To create the table, first use the hbase shell. We are going to create a | |
namespace called "sample_data". The table for this script is called "rfic", | |
as we will be inserting Request for Information Cases from the City of | |
Indianapolis. |
This file contains 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
.idea/ | |
node_modules/ | |
*.stderr | |
*.stdout |
This file contains 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
#!/usr/bin/env node | |
// | |
// Example of publisher/subscriber pattern in NodeJS, with AMQPLib. This program has been | |
// demonstrated to work with 500k messages and 4 subscribers. | |
// | |
// #WorksOnMyMachine | |
// | |
// Usage: ./pubsub | |
// |
This file contains 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
var assert = require('assert'); | |
describe('how not to make a singleton', function () { | |
var a, b; | |
beforeEach(function () { | |
a = { message: "Hello, World!" }; | |
b = { message: "Hello, World!" }; | |
}); |
This file contains 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
/** | |
* Load a collection of products from a data store. | |
* @param {array} productIds - Array of product IDs. | |
* @param {function} load - Function to load a product by ID, e.g. fetch from API, etc. | |
* @param {function} done - Done callback, to be fired when all products are loaded. | |
*/ | |
function loadProducts(productIds, load, done) { | |
// Set up vars that we will need in this function. | |
var numberOfProductIds = productIds.length; |
This file contains 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 class TryParseInt32Result | |
{ | |
private readonly bool _isSuccessful; | |
private readonly int _value; | |
public TryParseInt32Result(bool isSuccessful, int value) | |
{ | |
_isSuccessful = isSuccessful; | |
_value = value; | |
} |