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
{byte[256]} | |
[0]: 0 | |
[1]: 0 | |
[2]: 0 | |
[3]: 0 | |
[4]: 0 | |
[5]: 10 | |
[6]: 16 | |
[7]: 114 | |
[8]: 105 |
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
"\0\0\0\0\0\nriak_index_testssandwiches_int*2258\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Cassandra.Data.Linq; | |
using Cassandra; | |
namespace CassandraTest | |
{ | |
[AllowFiltering] | |
[Table("sales")] |
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
[user] | |
email = jeremiah.peschka@gmail.com | |
name = Jeremiah Peschka | |
[github] | |
user = peschkaj | |
[core] | |
autocrlf = input | |
safecrlf = true | |
excludesfile = /Users/jeremiah/.gitignore | |
editor = subl |
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
# via https://gist.github.com/419201#file_gitconfig.bash | |
# Install (from Matt's gist) these useful Git aliases & configurations with the following command: | |
# $ bash <(curl -s https://raw.github.com/gist/419201/gitconfig.bash) | |
git config --global color.ui auto # colorize output (Git 1.5.5 or later) | |
git config --global color.interactive auto # and from 1.5.4 onwards, this will works: | |
echo "Set your name & email to be added to your commits." | |
echo -n "Please enter your name: " |
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
/* Let's review your sales, Jenkins... */ | |
WITH sales AS ( | |
SELECT h.SalesPersonID , | |
ROW_NUMBER() OVER (PARTITION BY h.SalesPersonID | |
ORDER BY DATEPART(yyyy, h.OrderDate), | |
DATEPART(mm, h.OrderDate)) AS rn , | |
DATEPART(yyyy, h.OrderDate) AS [Year], | |
DATEPART(mm, h.OrderDate) AS [Month], | |
SUM(h.SubTotal) AS TerritoryTotal | |
FROM Sales.SalesOrderHeader AS h |
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
<riakConfig nodePollTime="5000" defaultRetryWaitTime="200" defaultRetryCount="3"> | |
<nodes> | |
<node name="riak@172.16.33.107" networkReadTimeout="60000" hostAddress="devUbuntu01" pbcPort="8087" restScheme="http" restPort="8098" poolSize="20" /> | |
<node name="riak@172.16.33.138" networkReadTimeout="60000" hostAddress="devUbuntu02" pbcPort="8087" restScheme="http" restPort="8098" poolSize="20" /> | |
<node name="riak@172.16.33.221" networkReadTimeout="60000" hostAddress="devUbuntu03" pbcPort="8087" restScheme="http" restPort="8098" poolSize="20" /> | |
<node name="riak@172.16.34.56" networkReadTimeout="60000" hostAddress="devUbuntu04" pbcPort="8087" restScheme="http" restPort="8098" poolSize="20" /> | |
</nodes> | |
</riakConfig> |
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
namespace CorrugatedIron.Models.MapReduce.Inputs | |
{ | |
public static class RiakIndex | |
{ | |
private static string RiakKeysIndex = "$key"; | |
public static RiakIndexInput AllKeys(string bucket) | |
{ | |
string first = "\u0000"; | |
string last = char.ConvertFromUtf32(0x10FFFF); |
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
using System; | |
using System.Linq; | |
using CorrugatedIron; | |
using CorrugatedIron.Models; | |
using CorrugatedIron.Models.MapReduce; | |
using CorrugatedIron.Models.MapReduce.Inputs; | |
using CorrugatedIron.Util; | |
namespace MiscellaneousSamples | |
{ |
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
using System; | |
using CorrugatedIron; | |
using CorrugatedIron.Models; | |
using CorrugatedIron.Models.Search; | |
using CorrugatedIron.Models.MapReduce; | |
using CorrugatedIron.Util; | |
namespace MiscellaneousSamples | |
{ | |
public class RiakSearch |