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
create index concurrently idx_test_package_no_hub_id_date | |
on test (package_no, hub_id, date); |
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
create index concurrently idx_test_date_hub_id_package_no | |
on test (date, hub_id, package_no); |
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
select * | |
from atable t | |
where t.package_no='GonderiNo' | |
and t.hub_id=42 | |
and (t.date between '2021-02-04 21:00:00.000000' and '2021-02-05 21:00:00.000000'); |
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
class MyMatcher { | |
constructor(value) { | |
this.value = value; | |
} | |
[Symbol.match](string) { | |
var index = string.indexOf(this.value); | |
if (index === -1) { | |
return null; | |
} | |
return [`${this.value} altered`]; |
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
//----------------first | |
// function timedPrint(character, N, interval) { | |
// var counter = 0; | |
// var intervalId = setInterval(function () { | |
// console.log(character); | |
// counter += 1; | |
// if (counter >= N) { | |
// clearInterval(intervalId); | |
// console.log('done printing', character, N, 'times'); | |
// } |
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
//TO RUN TEST: | |
// mocha --compilers js:babel-core/register FILE-LOCATION/so-test.js | |
import Rx from 'rx'; | |
import {Observable} from 'rx'; | |
import chai from 'chai'; | |
const expect = chai.expect; | |
import CycleDOM from '@cycle/dom'; |
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 string Ad | |
{ | |
get | |
{ | |
return this._Ad; | |
} | |
set | |
{ | |
if (value != this._Ad) | |
{ |