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 / 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" />
@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: [
new Line
{
DetailType = LineDetailTypeEnum.PaymentLineDetail,
DetailTypeSpecified = true,
Amount = amount,
AmountSpecified = true,
LinkedTxn = new[]
{
@kijanawoodard
kijanawoodard / Program.cs
Last active August 29, 2015 14:07
Voron Scratch Buffers
namespace VoronScratchTest
{
class Program
{
static void Main(string[] args)
{
using (
var store =
new DocumentStore
{
@kijanawoodard
kijanawoodard / post.cs
Created September 16, 2014 23:34
IPP DevDefined POST TaxService
/* post
{
"TaxCode": "MyTaxCodeName",
"TaxRateDetails": [
{
"TaxRateName": "myNewTaxRateName",
"RateValue": "8",
"TaxAgencyId": "1",
"TaxApplicableOn": "Sales"
}
@kijanawoodard
kijanawoodard / StreamingTest.cs
Created August 4, 2014 14:53
RavenDB Streaming generic with etag
public class StreamingTest : RavenTestBase
{
[Fact]
public void Should_respect_generic_parameter()
{
using (var store = NewDocumentStore())
{
using (var session = store.OpenSession())
{
session.Store(new Bear());
Utilities = {
asArray: function (obj) {
var result = [];
for (var key in obj) {
var node = { key: key, value: obj[key] };
result.push(node);
}
return result;
},