rect = LayoutTheory.rect row: 0, col: 0, w: 10, h: 2
some_view.frame = CGRectMake rect[:x], rect[:y], rect[:w], rect[: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
# This is a blocklist to block samsung smart tv's sending meta data at home. | |
# Please help to collect domains! | |
# It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident. | |
device-metrics-us.amazon.com | |
samsungacr.com | |
samsungcloudsolution.com | |
samsungcloudsolution.net | |
pavv.co.kr | |
samsungotn.net |
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.Linq; | |
using Xunit; | |
namespace MinDeletions | |
{ | |
public class LetsFindOut | |
{ | |
public static int GetMinDeletions(string s) | |
{ | |
return s.Length - s.ToCharArray().Distinct().Count(); |
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 gulp = require('gulp'); | |
var bundler = require('aurelia-bundler'); | |
var paths = require('../paths'); | |
var config = { | |
force: true, | |
packagePath: '.', | |
bundles: { | |
"app/dist/app-build": { | |
includes: [ |
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
Utilities = { | |
asArray: function (obj) { | |
var result = []; | |
for (var key in obj) { | |
var node = { key: key, value: obj[key] }; | |
result.push(node); | |
} | |
return result; | |
}, |
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
<input type="text" class="search" placeholder="search by name or number" value.bind="searchText & debounce" /> |
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 NServiceBus.Windsor.InMemory | |
{ | |
using NServiceBus; | |
/* | |
This class configures this endpoint as a Server. More information about how to configure the NServiceBus host | |
can be found here: http://particular.net/articles/the-nservicebus-host | |
*/ | |
public class EndpointConfig : IConfigureThisEndpoint, AsA_Server, IWantCustomInitialization | |
{ |
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 Raven.Abstractions.Data; | |
using Raven.Tests.Helpers; | |
using System; | |
using Xunit; | |
namespace ClassLibrary1 | |
{ | |
public class SomeTest : RavenTestBase | |
{ | |
[Fact] |
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
//duplicate guid id | |
//you get three documents created under the proper collections, but you can't include by just the Guid, even with the generic type specified | |
public class MailingListIncludeTest : RavenTestBase | |
{ | |
[Test] | |
public void Test() | |
{ | |
using (var store = NewDocumentStore()) | |
{ |
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
[TestFixture] | |
public class TransformerDictionaryOrderTests : RavenTestBase | |
{ | |
[Test] | |
public void CanOrderADictionary() | |
{ | |
using (var store = NewDocumentStore()) | |
{ | |
new FooTransformer().Execute(store); |
NewerOlder