es6实现 1 class _LazyMan { 2 constructor(name) { 3 this.tasks = []; 4 this.sleep = this.sleep.bind(this); 5 this.eat = this.eat.bind(this); 6 this.tasks... ...
分类:
其他好文 时间:
2017-01-20 16:25:17
阅读次数:
204
LazyMan 实现LazyMan(什么是LazyMan?请自行google) function _LazyMan(_name) { var _this = this; _this.tasks = []; _this.tasks.push(function() { console.log('Hi! ...
分类:
编程语言 时间:
2017-01-20 00:11:36
阅读次数:
399
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { cl... ...
分类:
其他好文 时间:
2017-01-16 21:16:44
阅读次数:
191
using System;using System.Collections.Generic;using System.Data.Common;using System.Linq;using System.Text;using System.Threading.Tasks;using Dapper;u ...
分类:
移动开发 时间:
2017-01-14 22:55:59
阅读次数:
871
题意:给定优先关系进行拓扑排序。 分析:将入度为0的点加入优先队列,并将与之相连的点入度减1,若又有度数为0的点,继续加入优先队列,依次类推。 ...
分类:
编程语言 时间:
2017-01-12 10:37:03
阅读次数:
175
1940. Ordering Tasks Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description John has n tasks to do. Unfortunately, the tasks are not independ ...
分类:
其他好文 时间:
2017-01-03 23:35:46
阅读次数:
349
Ansible-playbooktomcat部署#目录树结构如下:[root@192roles]#treetomcat
tomcat
├──defaults
├──files
│└──apache-tomcat-7.0.63.zip
├──handlers
│└──main.yml
├──meta
├──tasks
│└──main.yml
├──templates
└──vars
└──main.yml#handle..
分类:
其他好文 时间:
2017-01-03 17:32:26
阅读次数:
626
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Common { public class Da... ...
分类:
其他好文 时间:
2016-12-29 17:00:38
阅读次数:
134
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks;... ...
分类:
其他好文 时间:
2016-12-29 16:29:00
阅读次数:
136
ansible-playbookjdk安装jdkrole的目录结构如下:[root@192roles]#treejdk
jdk
├──defaults
├──files
│└──jdk-8u101-linux-x64.tar.gz
├──handlers
├──meta
├──tasks
│└──main.yml
├──templates
└──vars
└──main.yml#vars下面的忽略,那是之前..
分类:
其他好文 时间:
2016-12-29 08:46:21
阅读次数:
1793