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
{ | |
... | |
"source": "src/index.ts", | |
"main": "dist/main.cjs", | |
"module": "dist/module.mjs", | |
"types": "dist/index.d.ts", | |
"scripts": { | |
"dev": "rollup -w -c", | |
"build": "rollup -c", | |
"prepack": "yarn run build", |
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
// remove unavailable | |
_.values($(".priceItem")) | |
.filter(item => item.lastElementChild && item.lastElementChild.innerText == "Currently Unavailable") | |
.forEach(item => item.remove()); | |
// remove wheelchair tickets | |
_.values($(".priceItem")) | |
.filter(item => item.firstElementChild && item.firstElementChild.innerText.indexOf("WHEELCHAIR") > -1) | |
.forEach(item => item.remove()) |
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.Reactive.Linq; | |
using System.Reactive.Subjects; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Nest; | |
using _____.Managers; |
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.Reactive.Linq; | |
using System.Reactive.Subjects; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using JetBrains.Annotations; | |
using Nest; | |
using TheFilter.Core.Entity.Customers.Managers; |
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
# Delete items using a query | |
# | |
# ------------- | |
$eshost = "http://LONAPP101.uklive.exabre.co.uk:50402" | |
$index = "live_20_34_item" | |
$type = "statiogn" | |
$query = ' | |
{ | |
"fields": [], |
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 Nancy; | |
using Nancy.Extensions; | |
using Nancy.Responses; | |
using Nancy.Hosting.Self; | |
using Nancy.TinyIoc; | |
using Nancy.Bootstrapper; | |
using System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Runtime.CompilerServices; |
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
POST applicationlogs/logentries/_search | |
{ | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"term": { | |
"exception": "infomercial" | |
} | |
} |
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
POST /index/type/_search | |
{ | |
"query": { | |
"filtered": { | |
"filter": { | |
"term": { | |
"body": process.argv[2] | |
} | |
} | |
} |
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 ScrollViewer GetScrollViewer(DependencyObject o) | |
{ | |
// Return the DependencyObject if it is a ScrollViewer | |
if (o is ScrollViewer) | |
{ | |
return o as ScrollViewer; | |
} | |
for (int i = 0; i < VisualTreeHelper.GetChildrenCount(o); i++) | |
{ |
NewerOlder