This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <kml xmlns="http://earth.google.com/kml/2.2"> | |
| <Document> | |
| <name>Bribie Island, QLD</name> | |
| <description><![CDATA[]]></description> | |
| <Style id="style1"> | |
| <LineStyle> | |
| <color>40000000</color> | |
| <width>3</width> | |
| </LineStyle> |
This file contains hidden or 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
| // Counter. | |
| int count = 0; | |
| // Do some shit, in parallel .. for some collection. | |
| Parallel.ForEach(lotsOfThings, | |
| something => | |
| { | |
| DoSomething(count); | |
| }}); |
This file contains hidden or 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
| // ==UserScript== | |
| // @name JabbR: Admin Kick Banned Users | |
| // @namespace http://jabbr.net.admin/ | |
| // @version 0.1 | |
| // @description Kick mother bitches from JabbR who have been a pesk. | |
| // @match https://jabbr.net/* | |
| // @copyright 2013+, JabbR people | |
| // @require http://code.jquery.com/jquery-latest.js | |
| // ==/UserScript== |
This file contains hidden or 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.Diagnostics; | |
| using System.Linq; | |
| using Raven.Abstractions.Data; | |
| using Raven.Client; | |
| using Raven.Client.Document; | |
| using Raven.Tests.Helpers; | |
| using Xunit; |
This file contains hidden or 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 @SomeTable TABLE (Id INTEGER PRIMARY KEY NOT NULL IDENTITY, | |
| ProductCompanyId INT NOT NULL, -- Company where the product is from. | |
| ProductId VARCHAR(100) NOT NULL, -- Unique ProductId .. but unique -per- company. | |
| Name VARCHAR(50), | |
| Price MONEY | |
| ); |
This file contains hidden or 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 System.Text; | |
| using System.Threading.Tasks; | |
| namespace ConsoleApplication2 | |
| { | |
| class Program | |
| { |
This file contains hidden or 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
| // Retrieve all the Associations. | |
| var associations = documentSession | |
| .Include<Account>(x => x.Devices.Keys) | |
| .Load<Account>(existingUser.Associations | |
| .Where(x => x.AcceptedOn.HasValue) | |
| .Select(x => x.AccountId)) | |
| .Select(x => new | |
| { | |
| AccountId = x.Id, | |
| x.User.DisplayName, |
This file contains hidden or 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.Reflection | |
| @model System.Web.Mvc.HandleErrorInfo | |
| @{ | |
| Layout = null; | |
| } | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Error</title> |
This file contains hidden or 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
| W O R L D - D O M I N A T I O N | |
| A U T H E N T I C A T I O N | |
| This package has now had a REBRANDING. |
This file contains hidden or 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 static class SystemExtensions | |
| { | |
| public static string[] ToLuceneQuery(this string query, bool isWildCardAppended = true) | |
| { | |
| if (string.IsNullOrEmpty(query)) | |
| { | |
| return null; | |
| } | |
| // Remove any 'crap' characters. |