These examples use the expression foo
as the data source in the parent.
Prop name | Event name | |
---|---|---|
v-model="foo" |
value by default |
input by default |
v-bind:<propname>.sync="foo" |
arbitrary | update:<propname> |
[include fluidd.cfg] | |
[include mainsail.cfg] | |
[virtual_sdcard] | |
path: /home/pi/FLSUN_data/gcodes | |
on_error_gcode: CANCEL_PRINT | |
# Comment copied from an old config I found on Facebook: | |
# > TFT 32 must be connected for Auto-Leveling to work correctly , it is used for +5v pullup z-min pin. | |
# > The value of z_offset in the [probe] section must be specified individually for your printer, the default value is 0.85 | |
# > Step distance for your extruder must be specified in [extruder] section, the default value is 0.011363 for QQ default extruder. |
new Date().toLocaleDateString('sv', { timeZone: 'Europe/Berlin' }) // sv = ISO format |
package main | |
import ( | |
agwd "github.com/sclevine/agouti" | |
tbwd "github.com/tebeka/selenium" | |
"log" | |
sgwd "sourcegraph.com/sourcegraph/go-selenium" | |
) | |
// Helper for sourcegraph/go-selenium |
# Copies the file into the directory (both are equivalent): | |
COPY some_file /some_directory/ | |
COPY some_file /some_directory/some_file | |
# Copies both files into the directory: | |
COPY some_file another_file /some_directory/ | |
# Copies the contents of the directory (but not the directory itself) into the other directory: | |
COPY some_directory /other_directory/ |
package foo; | |
import android.os.CountDownTimer; | |
public class SimpleCountDownTimer { | |
boolean repeat; | |
Runnable action; | |
CountDownTimer c; |
To help you with the process of converting a MySQL app to PostgreSQL, I collected a list of differences between MySQL and PostgreSQL (PG). | |
Important changes: | |
* Strings are quoted with '...' or with $token$...$token$. Single-quotes are escaped with single-quotes. | |
* Identifiers are folded to lowercase, unless they are quoted with "..." which makes them case-sensitive | |
* The max identifier length is 63 | |
* There are some system columns that cannot be used as an identifier (probably not a problem) | |
* Expressions are evaluated in arbitrary order, so WHERE x > 0 AND y/x > 1.5 can lead to a division by zero and has to be replaced with WHERE CASE WHEN y > 0 THEN y/x > 1.5 ELSE FALSE END | |
* SELECT CASE WHEN x > 0 THEN x ELSE 1/0 END would still lead to a division by zero because the constant 1/0 is evaluated even before the query starts |
package com.example.android.app; | |
import android.app.Activity; | |
import android.bluetooth.BluetoothAdapter; | |
import android.bluetooth.BluetoothDevice; | |
import android.bluetooth.BluetoothGatt; | |
import android.bluetooth.BluetoothGattCallback; | |
import android.bluetooth.BluetoothGattCharacteristic; | |
import android.bluetooth.BluetoothGattService; | |
import android.bluetooth.BluetoothProfile; |
// The state of Go logging libraries is disheartening... | |
import ( | |
"github.com/mattn/go-colorable" // not ansicolor because github.com/mgutz/ansi recommends colorable | |
log "github.com/sirupsen/logrus" | |
"github.com/x-cray/logrus-prefixed-formatter" | |
"golang.org/x/crypto/ssh/terminal" | |
"os" | |
) |
"C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe" -m -t1=%yname -t2=%bname -t3=%tname -result=%merged %mine %base %theirs |