码迷,mamicode.com
首页 > 2016年01月28日 > 全部分享
Best Time to Buy and Sell Stock II
题目 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may com
分类:其他好文   时间:2016-01-28 13:47:53    阅读次数:119
React-Native ListView加载图片淡入淡出效果的组件
今天练习项目中需要给listview在加载图片时增加一个淡入淡出的效果,因此干脆就自己封装了一个组件: 1 'use strict' 2 3 import React from 'react-native' 4 5 var { 6 Animated, 7 PropTypes 8 } = React
分类:其他好文   时间:2016-01-28 13:48:51    阅读次数:1550
linker command failed with exit code 1 (use -v to see invocation)解决办法
[cpp] view plaincopy Undefined symbols for architecture i386: "_OBJC_CLASS_$_FMDatabase", referenced from: objc-class-ref in ViewController.o ld: symb
分类:其他好文   时间:2016-01-28 13:49:32    阅读次数:152
【转】Objective-C消息机制的原理
Objective-C消息机制的原理
分类:其他好文   时间:2016-01-28 13:49:43    阅读次数:131
spark - 将RDD保存到RMDB(MYSQL)数据库中
SCALA连接数据库批量插入: scala> import java.sql.DriverManager scala> var url = "jdbc:mysql://localhost:3306/mydb?useUnicode=true&characterEncoding=utf8" scala>
分类:数据库   时间:2016-01-28 13:49:44    阅读次数:283
mysql 用source 导入数据库报错
平时一直使用phpmyadmin或mysqldum进行导出,使用source命令导入数据库。 但换了新版本mysql后,上述导入方法出现以下错误: ERROR: Unknown command '\\'. Query OK, 2022 rows affected (0.71 sec) Records
分类:数据库   时间:2016-01-28 13:48:45    阅读次数:242
iOS:CYLTabBarController【低耦合集成TabBarController】
本文来自转载,原创链接:http://cocoapods.org/pods/CYLTabBarController 作者:By ChenYilong github链接:https://github.com/ChenYilong/CYLTabBarController CYLTabBarControl
分类:移动开发   时间:2016-01-28 13:48:57    阅读次数:2973
android学习视频分享
最近整理了大量的安卓开发学习资料,有书籍有视频有代码,老罗的第一季有点老了, 这里就给大家分享下老罗的第二季的视频教程吧,还有源码,初级到高级程序猿都有用。 下载地址:http://51pansou.com 搜索 android视频 下载地址:http://51pansou.com 搜索 andro
分类:移动开发   时间:2016-01-28 13:46:02    阅读次数:252
where子查询
限定查询(WHERE子句) 之前的查询是将一张表的全部记录查询出来,那么现在如果希望可以根据指定的条件查询的话,则必须指定限定查询。 格式: [SELECT] [{DISTINCT}] [* |具体的列别名FROM表名称] [{WHERE 条件(s)}] 例:查询出工资大5000的雇员的信息。 数学
分类:其他好文   时间:2016-01-28 13:47:11    阅读次数:279
POJ3087 Shuffle'm Up 简单模拟
题意:就是给你两副扑克,然后一张盖一张洗牌,不断重复这个过程,看能不能达到目标的扑克顺序 分析:然后就模拟下,-1的情况就是有循环节 #include<cstdio> #include<algorithm> #include<iostream> #include<cstring> #include<
分类:其他好文   时间:2016-01-28 13:47:22    阅读次数:131
一个.py引用另一个.py中的方法
处理函数 X_Add_Y_Func.py 1 #__author__ = 'Administrator' 2 def add_func(x, y): 3 return x+y 调用函数 X_Add_Y_Func_Test.py 1 #__author__ = 'Administrator' 2 fr
分类:其他好文   时间:2016-01-28 13:48:03    阅读次数:170
6.2 Controllers -- Representing Multipe Models
1. 一个controller的modle可以代表几个记录也可以带便单个。这里,路由的model hook返回一个歌曲数组: app/routes/songs.js export default Ember.Route.extend({ model() { return this.store.fin
分类:其他好文   时间:2016-01-28 13:45:42    阅读次数:163
C#反射技术的简单操作(读取和设置类的属性)
public class A { public int Property1 { get; set; } } static void Main(){ A aa = new A(); Type type = aa.GetType();//获取类型 System.Reflection.PropertyIn
分类:Windows程序   时间:2016-01-28 13:47:01    阅读次数:256
使用HashMap须要注意的事儿:不要暴露Map.entry给外部不可信代码Map.entrySet()
Map/HashMap是java中一种非经常常使用的数据结构,一般我们在应用中做的事情就是调用put向容器写入数据或者是get从容器读取数据。Map.entrySet()这种方法返回了键值对的集合,也是JDK官方推荐的遍历Map的方式。 Set<Map.Entry<String, String>>
分类:其他好文   时间:2016-01-28 13:46:44    阅读次数:145
Jan 27 - Valid Binary Search Tree; DFS;
Using DFS to traverse the BST, when we look through the BST to a certain node, this node must have the following property to make sure the tree is a v
分类:其他好文   时间:2016-01-28 13:45:06    阅读次数:152
LRU Cache -- LeetCode
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the
分类:系统相关   时间:2016-01-28 13:46:53    阅读次数:217
Git 忽略一些文件不加入版本控制
在git中如果想忽略掉某个文件,不让这个文件提交到版本库中,可以使用修改 .gitignore 文件的方法。这个文件每一行保存了一个匹配的规则例如: # 此为注释 – 将被 Git 忽略 *.a # 忽略所有 .a 结尾的文件 !lib.a # 但 lib.a 除外 /TODO # 仅仅忽略项目根目
分类:其他好文   时间:2016-01-28 13:44:43    阅读次数:108
1073条   上一页 1 ... 36 37 38 39 40 41 42 ... 64 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!