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 'dart:isolate'; | |
import 'package:powersync/powersync.dart'; | |
import 'package:powersync/sqlite_async.dart'; | |
const schema = Schema([ | |
Table('customers', [Column.text('name'), Column.text('email')]) | |
]); | |
late PowerSyncDatabase db; |
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 { spawn, execSync, ChildProcess } from 'child_process' | |
import * as net from 'net' | |
const { chromePath } = require('aws-lambda-chrome'); | |
const Cdp = require('chrome-remote-interface'); | |
export type ChromeHandler<T> = (client: ChromeClient) => Promise<T>; | |
// These security features are not supported at all, and need to be disabled. |
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
// Set the linter on the codemirror instance | |
options.lint = { getAnnotations: asyncValidator, async: true } | |
function asyncValidator(cm, updateLinting, options) { | |
// jshint | |
var jshint = performJSHint(cm.getValue()); | |
// tern.lint, adapted from tern-lint.js | |
var query = { | |
type : "lint", |
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
require 'pty' | |
require 'expect' | |
def parse_android_packages(packages_raw) | |
packages_raw = packages_raw.split("\n----------\n") | |
result = [] | |
packages_raw.each do |raw| | |
id_match = /id: (\d+) or "(.+)"/.match(raw) |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example</groupId> | |
<artifactId>mvnuploader</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<name>Uploader</name> | |
<build> | |
<extensions> |
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" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.simpligility.android</groupId> | |
<artifactId>helloflashlight</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
<packaging>apk</packaging> | |
<name>HelloFlashlight</name> | |
<dependencies> |
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" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<parent> | |
<artifactId>myproject</artifactId> | |
<groupId>com.example</groupId> | |
<version>1.0.0-SNAPSHOT</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> | |
<artifactId>myapp</artifactId> |