- Fix error parsing
- Add missing
yieldin theloginfunction
| const crypto = require('crypto') | |
| const sha1 = path => new Promise((resolve, reject) => { | |
| const hash = crypto.createHash('sha1') | |
| const rs = fs.createReadStream(path) | |
| rs.on('error', reject) | |
| rs.on('data', chunk => hash.update(chunk)) | |
| rs.on('end', () => resolve(hash.digest('hex'))) | |
| }) |
| koa.use((ctx, next) => new Promise((resolve, reject) => { | |
| ctx.body = "hello" | |
| next().then(_ => { | |
| resolve(); | |
| }); | |
| })); |
| @import 'https://fonts.googleapis.com/css?family=Open+Sans'; | |
| * { | |
| -webkit-box-sizing: border-box; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Open Sans', sans-serif; | |
| line-height: 1.75em; |
| var async = require('async'); | |
| var lame = require('lame'); | |
| var fs = require('fs'); | |
| var Speaker = require('speaker'); | |
| var volume = require("pcm-volume"); | |
| var audioOptions = { | |
| channels: 2, | |
| bitDepth: 16, | |
| sampleRate: 44100, |
Scan for access points (run multiple times for more complete scan):
# connmanctl scan wifi
Scan completed for wifi
| //To fetch a branch, you simply need to: | |
| git fetch origin | |
| //This will fetch all of the remote branches for you. With the remote branches | |
| //in hand, you now need to check out the branch you are interested in, giving | |
| //you a local working copy: | |
| git checkout -b test origin/test |
| diff -rupN mage_org/app/code/core/Mage/Catalog/Model/Url.php src_shop/app/code/core/Mage/Catalog/Model/Url.php | |
| --- mage_org/app/code/core/Mage/Catalog/Model/Url.php 2013-11-19 00:48:25.679009391 +0100 | |
| +++ src_shop/app/code/core/Mage/Catalog/Model/Url.php 2013-11-19 00:49:24.188005601 +0100 | |
| @@ -643,13 +643,24 @@ class Mage_Catalog_Model_Url | |
| $this->_rewrite = $rewrite; | |
| return $requestPath; | |
| } | |
| + | |
| + // avoid unnecessary creation of new url_keys for duplicate url keys | |
| + $noSuffixPath = substr($requestPath, 0, -(strlen($suffix))); |