码迷,mamicode.com
首页 > 其他好文
视频压缩
//原理,还是调用UIImagePickerController控制器,设置Type为视频 #import "ViewController.h" #import @interface ViewController () @end @implementation ViewController...
分类:其他好文   时间:2015-07-21 20:13:36    阅读次数:129
2015 HUAS Summer Training#2~A
DescriptionYou are given a string consisting of parentheses()and[]. A string of this type is said to becorrect:(a)if it is the empty string(b)if A and...
分类:其他好文   时间:2015-07-21 20:14:16    阅读次数:112
相机调用
//原理:调用 #import "ViewController.h" @interface ViewController () @property(nonatomic,weak)UIImageView *photoImage; @end @implementation ViewControl...
分类:其他好文   时间:2015-07-21 20:12:49    阅读次数:102
Codeforces Gym 100463D Evil DFS
EvilTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100463/attachmentsDescriptionRichard is evil. He wants to give another geometr...
分类:其他好文   时间:2015-07-21 20:12:57    阅读次数:89
音乐光盘旋转效果
从开始的css层叠样式 到现在的css3的模块发展 越来越多的特技效果层出不穷的展示在我们的视野中 冲击我们的感官 满足我们的求知欲 下面的效果不难 相信大家都已经明白了 通过变形(transform)实现动画的实现除了这个 还有:转换(transition)和动画(animation)...
分类:其他好文   时间:2015-07-21 20:13:38    阅读次数:133
二叉树的构造_遍历_求数高和求节点数
1 //手工构造一颗二叉树 ,并给出递归和非递归2类7种遍历方法,树高,节点数求法和逆时针90度显示二叉树 2 //注意本文中2个 typename的使用层次 3 //递归遍历容易溢栈 4 #include 5 #include 6 #include //用到队列时需要包含...
分类:其他好文   时间:2015-07-21 20:14:08    阅读次数:100
Merge Sorted Array
Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may assume thatnums1has enough space (size that is great...
分类:其他好文   时间:2015-07-21 20:11:42    阅读次数:126
Scorm 1.2 开发文档
原文出处电华教育研究杂志2010年第7期《SCORM标准学习跟踪机制的研究与实现》http://blog.sina.com.cn/s/blog_964ec55001014nl0.html一般步骤运行SCORM APIAdapter。调用API初始化函数。加载课件SCO初始化数据。获取Data Mod...
分类:其他好文   时间:2015-07-21 20:13:12    阅读次数:227
用代码控制UI界面
1 public class MainActivity extends Activity { 2 //当第一次创建Activity时回调该方法 3 @Override 4 protected void onCreate(Bundle savedInstanceState...
分类:其他好文   时间:2015-07-21 20:12:06    阅读次数:94
跳台阶与变态跳台阶
一只青蛙一次可以跳上1级台阶,也可以跳上2级。求该青蛙跳上一个n级的台阶总共有多少种跳法。 1 class Solution { 2 public: 3 int jumpFloor(int number) { 4 int a=1, b=1; 5 for(int...
分类:其他好文   时间:2015-07-21 20:11:35    阅读次数:184
海量数据查询代码优化--转载
具体要注意的:1.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num上设置默认值0,确保表中num列没有null值,然后这样查询:select id from t...
分类:其他好文   时间:2015-07-21 20:11:37    阅读次数:107
[leedcode 152] Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the...
分类:其他好文   时间:2015-07-21 20:12:55    阅读次数:97
ffmpeg + m3u8-segmenter 配置
HTML5 + 流媒体文件 目前安装过的服务器版本 ubuntu 1.3 Centos 6.5 下面2个是在Centos上使用的 Centos 准备安装删除已安装包 yum?erase?ffmpeg?x264?x264-devel Centos 安装各种依赖包 yum install ?gcc m...
分类:其他好文   时间:2015-07-21 19:11:16    阅读次数:727
sqoop 整库导入数据hive
1、整库导入 sqoop ?import-all-tables --connect jdbc:mysql://ip:3306/dbname ?--username user --password password --hive-database abc ?-m 10 ?--create-hive-table ?--hive-import --hive-overwrite?...
分类:其他好文   时间:2015-07-21 19:08:53    阅读次数:217
CKEditor高级编辑器
是否感觉后台分类描述信息、商品描述信息以及文章描述信息 编写时非常的不方便?有时候会将word的格式也复制过来了?那这个插件就比较适合了。 本插件使用CKEditor最新版本,复制过来的内容不包含相关格式,便于你...
分类:其他好文   时间:2015-07-21 19:07:15    阅读次数:165
go的channel的使用
func?Count(ch?chan?int)?{ counter++ ch?<-?counter fmt.Println("Counting") } func?main()?{ chs?:=?make([]chan?int,?10) for?i?:=?0;?i?<?10;?i++?{ chs[i]?=?make(chan?int...
分类:其他好文   时间:2015-07-21 19:08:35    阅读次数:152
图形工作站CATIA 3D CAD应用方案
CATIA3DCAD超级图形工作站应用方案CATIA是达梭系统(DassaultSystèmes)的先锋品牌,领先世界产品设计与创新解决方案领域。CATIA基于3DEXPERIENCE平台,功能远远超出传统的3DCAD软件工具,提供独一无二的数码产品体验。可持续发展是推动世界各地的企业创造源源不断的创新和鼓舞..
分类:其他好文   时间:2015-07-21 19:07:06    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!