数据库: 建表为tasks的迁移文件: 迁移文件在database/migrations中。 自带属性:自增id,时间戳。 使用迁移文件建表: 每个表对应一个Models,用于封装所有针对表的操作。 Models的php文件被放置在/app目录下。名字能够自动对应。 用于将url与对应的功能关联。也
分类:
其他好文 时间:
2016-03-13 00:43:37
阅读次数:
187
类 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace 类复习{ class Program { stati
storm的并发机制 storm计算支持在多台机器上水平扩容,通过将计算切分为多个独立的tasks在集群上并发执行来实现。 一个task可以简单地理解:在集群某节点上运行的一个spout或者bolt实例。 topology的组成部分:Nodes(服务器):配置在一个storm集群中的服务器,会执行t
分类:
其他好文 时间:
2016-03-09 20:41:04
阅读次数:
164
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Ninject; namespace NinjectDe
分类:
其他好文 时间:
2016-03-09 17:34:12
阅读次数:
170
双塔DP。 #include<cstdio> #include<cstring> #include<queue> #include<string> #include<algorithm> #include<map> #include<iostream> using namespace std; co
分类:
其他好文 时间:
2016-03-08 21:01:45
阅读次数:
143
Description There are two machines A and B. There are n tasks, namely task 1, task 2, ..., task n. You must assign each task to one machine to process
分类:
其他好文 时间:
2016-03-08 19:42:05
阅读次数:
213
switch语句 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace @switch{ class Prog
分值语句(1) using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace fenzhiyuju1{ class P
运算符 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace yunsuanfu{ class Program
数据类型 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace shujuleixing{ class Pro