This file contains 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
'use strict'; | |
var request = require('request'); | |
var fs = require('fs'); | |
var count = 2000; | |
for (let i = 0; i < count; i++) { | |
var stream = fs.createWriteStream('file' + i + '.png'); | |
request('https://www.baidu.com/img/bd_logo1.png').pipe(stream); |
This file contains 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
function BinaryHeap(scoreFunction){ | |
this.content = []; | |
this.scoreFunction = scoreFunction; | |
} | |
BinaryHeap.prototype = { | |
push: function(element) { | |
// Add the new element to the end of the array. | |
this.content.push(element); | |
// Allow it to bubble up. |
This file contains 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
# skins.xml | |
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<item type="skin" name="foo">10</item> | |
</resources> | |
# attrs.xml | |
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<declare-styleable name="Skin"> |
This file contains 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
遗留的有价值的系统需要维护和更新 | |
系统是分布的并且包含不同架构的硬件和软件 | |
需要更快交互软件 |
This file contains 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
/*! ========================================================= | |
* bootstrap-slider.js | |
* | |
* Maintainers: | |
* Kyle Kemp | |
* - Twitter: @seiyria | |
* - Github: seiyria | |
* Rohit Kalkur | |
* - Twitter: @Rovolutionary | |
* - Github: rovolution |
This file contains 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
#!/usr/bin/env python | |
class Solution: | |
def isOp(self, token): | |
return token in ["+", "-", "*", "/"] | |
def add(self, op1, op2): | |
return op1 + op2 |