This file contains hidden or 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
| 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(); |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| #encoding: utf-8 | |
| # Orchard Language Package Cleanner | |
| # Author: Wei "oldrev" Li <[email protected]> | |
| # License: New BSD | |
| import sys, os, shutil | |
| LOCAL = 'zh-CN' |
This file contains hidden or 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
| # -*- Encoding: utf-8 -*- | |
| import base64 | |
| import binascii | |
| import cgi | |
| import hashlib | |
| import hmac | |
| import logging | |
| import time | |
| import urllib | |
| import urlparse |
This file contains hidden or 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
| /** 中文互联网上写的最漂亮效率最高的大写人民币金额转换代码 | |
| * 作者:李维 <[email protected]> | |
| * 版权所有 (c) 2013 李维。保留所有权利。 | |
| * 本代码基于 BSD License 授权。 | |
| * */ | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; |