Skip to content

Instantly share code, notes, and snippets.

View kijanawoodard's full-sized avatar

Kijana Woodard kijanawoodard

View GitHub Profile
@kijanawoodard
kijanawoodard / _usage.md
Created April 8, 2021 00:21 — forked from amirrajan/_usage.md
Layout Theory for RubyMotion

Usage:

rect = LayoutTheory.rect row: 0, col: 0, w: 10, h: 2
some_view.frame = CGRectMake rect[:x], rect[:y], rect[:w], rect[:h]
# 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
using System.Linq;
using Xunit;
namespace MinDeletions
{
public class LetsFindOut
{
public static int GetMinDeletions(string s)
{
return s.Length - s.ToCharArray().Distinct().Count();
@kijanawoodard
kijanawoodard / bundle.js
Created November 24, 2015 03:00
aurelia bundle config
var gulp = require('gulp');
var bundler = require('aurelia-bundler');
var paths = require('../paths');
var config = {
force: true,
packagePath: '.',
bundles: {
"app/dist/app-build": {
includes: [
Utilities = {
asArray: function (obj) {
var result = [];
for (var key in obj) {
var node = { key: key, value: obj[key] };
result.push(node);
}
return result;
},
@kijanawoodard
kijanawoodard / history.html
Last active January 2, 2016 16:05
aurelia search
<input type="text" class="search" placeholder="search by name or number" value.bind="searchText & debounce" />
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
{
@kijanawoodard
kijanawoodard / patch.cs
Created December 18, 2013 00:46
Patch document containing long value
using Raven.Abstractions.Data;
using Raven.Tests.Helpers;
using System;
using Xunit;
namespace ClassLibrary1
{
public class SomeTest : RavenTestBase
{
[Fact]
@kijanawoodard
kijanawoodard / include.cs
Last active December 25, 2015 03:29
Load and Include shared Guid Id using 2700
//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())
{
@kijanawoodard
kijanawoodard / DictionaryOrderBy.cs
Created October 2, 2013 16:26
OrderBy on a dictionary in a Transformer
[TestFixture]
public class TransformerDictionaryOrderTests : RavenTestBase
{
[Test]
public void CanOrderADictionary()
{
using (var store = NewDocumentStore())
{
new FooTransformer().Execute(store);