Skip to content

Instantly share code, notes, and snippets.

drawQr: function(content) {
var that = this,
scale = 750/500,
w = this.sysinfo.windowWidth / scale;
qr.api.draw(content, "qrcode", w, w, function (ctx) {
setTimeout(function () {
wx.canvasToTempFilePath({
canvasId: ctx.canvasId,
success: res => {
that.setData({
@macdylan
macdylan / Asset.txt
Created February 13, 2015 07:09
windows daemon
@echo off
set task=programname
set srv=z:/path/programname.exe
set srv_dir=z:/path
set pwd=%CD%
:CHECK
for /f "tokens=5" %%n in ('qprocess.exe ^| find "%task%"') do (