One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
// unofficial sqlite3 types. | |
// These are typed only for my scope | |
declare module "@sqlite.org/sqlite-wasm" { | |
type InitOptions = { | |
print: (...msg: any[]) => void; | |
printErr: (...msg: any[]) => void; | |
}; | |
declare type PreparedStatement = { |
/** | |
* A simple circular data structure | |
*/ | |
function Circular(arr, startIntex){ | |
this.arr = arr; | |
this.currentIndex = startIntex || 0; | |
} | |
Circular.prototype.next = function(){ | |
var i = this.currentIndex, arr = this.arr; |
// Lightweight GraphQL generic client | |
const GraphQLClient = require('graphql-request').GraphQLClient; | |
const crypto = require('crypto'); | |
const path = require('path'); | |
const api = require('./api_constants'); | |
//GraphQL query string to get all inventory, filtering by a specific dealer | |
const vehicles = ` | |
{ | |
allDealerships(filter:{ name:"Wheel Kinetics"}) { |
""" | |
Setup: | |
Assuming Odoo 8.0 sources at ~/odoo: | |
$ cp odoo-sh.py ~/odoo | |
$ cd ~/odoo | |
$ python -i odoo-sh.py | |
Usage example: | |
>>> env = connect('my-db-name') | |
>>> Users = env['res.users'] |
Eric Steven Raymond, Thyrsus Enterprises, < esr@thyrsus.com >
Rick Moen, < respond-auto@linuxmafia.com >
翻译:柯非, < zer4tul@gmail.com >
这篇译文基于2014.05.21更新的原文修订版3.10。
特别感谢王刚,此前本文的翻译是由他进行的。
[Unit] | |
Description=Keeps a tunnel to 'remote.example.com' open | |
After=network.target | |
[Service] | |
User=autossh | |
# -p [PORT] | |
# -l [user] | |
# -M 0 --> no monitoring | |
# -N Just open the connection and do nothing (not interactive) |
I'm going to cover a simple, but effective, utility for managing state and transitions (aka workflow). We often need to store the state (status) of a model and it should only be in one state at a time.