- update package.json of dependent modules (e.g. utils):
"type": "module", "main": "dist/index.mjs", "types": "dist/index.d.mts",
- Install new eslint plugins:
"eslint-plugin-node": "^11.1.0", "eslint-import-resolver-typescript": "^3.5.1",
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
import { StreamChat } from 'stream-chat'; | |
const serverClient = StreamChat.getInstance( | |
'<api key>', | |
'<api secret>', | |
); | |
(async () => { | |
while (true) { | |
let channelIds = []; |
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
{ | |
"configurations": [ | |
..., | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Attach to backend", | |
"protocol": "inspector", | |
"port": 4322, | |
"localRoot": "${workspaceRoot}", |
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
did:3:kjzl6cwe1jw14bd54usdo8ix7xixt22ebs5z99cvbcip5d9puu0unenqiz0y4js |
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
#!/usr/bin/env npx ts-node --compiler-options {"module":"commonjs"} | |
import {createDomain} from "../connect"; | |
import {IdbStorageAdapter} from "../../main/storage/idb/"; | |
import {RealTimeModel} from "../../main"; | |
import {OfflineModelDownloadCompletedEvent} from "../../main/model/events/OfflineModelDownloadCompletedEvent"; | |
// tslint:disable-next-line | |
require("fake-indexeddb/auto"); |
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
declare module 'twilio-video' { | |
// this actually returns a CancelablePromise | |
export function connect(token: string, options: ConnectOptions): Promise<Room>; | |
export function createLocalTracks(options?: CreateLocalTracksOptions): Promise<LocalTrack[]>; | |
export interface ConnectOptions { | |
name: string; | |
tracks: (LocalTrack | MediaStreamTrack)[]; | |
} |
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
<?xml version="1.0" ?> | |
<RETS ReplyCode="0" ReplyText="Operation Success."> | |
<METADATA> | |
<METADATA-LOOKUP_TYPE Resource="Property" Lookup="Status" Version="1.00.00046" Date="2016-09-12T14:21:33Z"> | |
<LookupType> | |
<MetadataEntryID>101</MetadataEntryID> | |
<LongValue>A-Active</LongValue> | |
<ShortValue>A</ShortValue> | |
<Value>A</Value> | |
</LookupType> |
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
function AttachmentCtrl($scope, $location, $timeout, Docs) { | |
$(function() { | |
$('#detail-form-doc').fileupload({ | |
dataType: 'json', | |
url: '/angular-ib/app/fileupload?id=' + $location.search().id, | |
add: function(e, data) { | |
$scope.$apply(function(scope) { | |
// Turn the FileList object into an Array | |
for (var i = 0; i < data.files.length; i++) { | |
$scope.project.files.push(data.files[i]); |
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
L.TileLayer.TileJSON = L.TileLayer.Canvas.extend({ | |
options: { | |
debug: false | |
}, | |
tileSize: 256, | |
initialize: function (options) { | |
L.Util.setOptions(this, options); |
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
{ | |
"cache": { | |
"name": "Test" | |
}, | |
"layers": { | |
"ww2e": { | |
"provider": { | |
"name": "vector", | |
"driver": "postgis", | |
"parameters": { |
NewerOlder