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
<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
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
new Line | |
{ | |
DetailType = LineDetailTypeEnum.PaymentLineDetail, | |
DetailTypeSpecified = true, | |
Amount = amount, | |
AmountSpecified = true, | |
LinkedTxn = new[] | |
{ |
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 VoronScratchTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
using ( | |
var store = | |
new DocumentStore | |
{ |
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
/* post | |
{ | |
"TaxCode": "MyTaxCodeName", | |
"TaxRateDetails": [ | |
{ | |
"TaxRateName": "myNewTaxRateName", | |
"RateValue": "8", | |
"TaxAgencyId": "1", | |
"TaxApplicableOn": "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
public class StreamingTest : RavenTestBase | |
{ | |
[Fact] | |
public void Should_respect_generic_parameter() | |
{ | |
using (var store = NewDocumentStore()) | |
{ | |
using (var session = store.OpenSession()) | |
{ | |
session.Store(new Bear()); |
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; | |
}, |
NewerOlder