Skip to content

Instantly share code, notes, and snippets.

@ccdos
ccdos / main.js
Created November 11, 2024 10:57 — forked from repodevs/main.js
electron example with odoo
const electron = require('electron');
const rq = require('request-promise');
const notifier = require('node-notifier');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
let mainWindow
app.on('window-all-closed', function() {
app.quit();
mike@rbci:~$ psql -U postgres
psql (9.0.3)
Type "help" for help.
postgres=# update pg_database set datallowconn = TRUE where datname = 'template0';
UPDATE 1
postgres=# \c template0
You are now connected to database "template0".
template0=# update pg_database set datistemplate = FALSE where datname = 'template1';
UPDATE 1
#encoding: utf-8
# Orchard Language Package Cleanner
# Author: Wei "oldrev" Li <[email protected]>
# License: New BSD
import sys, os, shutil
LOCAL = 'zh-CN'
# -*- Encoding: utf-8 -*-
import base64
import binascii
import cgi
import hashlib
import hmac
import logging
import time
import urllib
import urlparse
/** 中文互联网上写的最漂亮效率最高的大写人民币金额转换代码
* 作者:李维 <[email protected]>
* 版权所有 (c) 2013 李维。保留所有权利。
* 本代码基于 BSD License 授权。
* */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;