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
tags.each { |tag| tag_list << Tag.first_or_create(:name => tag.strip) } |
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 delegate T ResolveConflict<out T>(RiakObject theObject); | |
public T GetObject<T>(DeserializeObject<T> deserializeObject, ResolveConflict<T> resolveConflict = null) | |
{ | |
if (deserializeObject == null) | |
{ | |
throw new ArgumentException("deserializeObject must not be null"); | |
} | |
if (Siblings.Count > 1 && resolveConflict != null) |
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 System.Threading; | |
using System.Web; | |
using CorrugatedIron; | |
using CorrugatedIron.Comms; | |
using CorrugatedIron.Config; | |
using CorrugatedIron.Models; | |
using CorrugatedIron.Models.MapReduce; | |
using CorrugatedIron.Models.MapReduce.Inputs; |
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 sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
DECLARE @rVal AS BIT ; | |
DECLARE @dbName AS sysname ; | |
DECLARE @command AS NVARCHAR(MAX) | |
DECLARE @error AS NVARCHAR(MAX) ; | |
DECLARE @newline AS NVARCHAR(2) ; | |
SET @error = N'' ; | |
SET @newline = NCHAR(13) + NCHAR(10) ; | |
DECLARE shrinklog CURSOR FAST_FORWARD READ_ONLY |
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
XBuild Engine Version 2.10.9.0 | |
Mono, Version 2.10.9.0 | |
Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011. | |
Build started 11/18/2012 6:49:19 AM. | |
__________________________________________________ | |
Project "/Users/jeremiah/Projects/CorrugatedIron/CorrugatedIron.sln" (default target(s)): | |
Target ValidateSolutionConfiguration: | |
Building solution configuration "Debug|Any CPU". | |
Target Build: |
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 |
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
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); |
OlderNewer