首页 软件开发 代码片段 ( Page 32 )

代码片段 8064

#Lua
使用map和reduce函数将str转换为float

def str2float(s): def str2int(ns): return {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5,…

lua
2015-12-17 369

#Lua
哈弗曼树

#include<stdio.h> #include<stdlib.h> #include<string.h> #define UINT_MAX…

lua
2015-12-17 486

#PHP
PHP读取网卡MAC地址

class GetMacAddr{ var $return_array = array(); // 返回带有MAC地址的字串数组 var $mac_addr; function G…

php
2015-12-17 917

#PHP
万能的分页类

<?php /* * To change this template, choose Tools | Templates * and open the template in…

php
2015-12-17 772

#Lua
代理 必须实现和可实现@required 和@optional

@protocol DaiLi <NSObject> //默认是必须实现的 //必须实现 @required - (void)finshTask; - (void)do…

lua
2015-12-17 940

#Lua
ViewChaos,强大的IOS UI开发工具,调试UI非常给给力

#if DEBUG public override class func initialize(){ struct UIWindow_SwizzleToken { static v…

lua
2015-12-17 965

#Lua
串的模式匹配

#include<stdio.h> #include <stdlib.h> #include<string.h> #define max 100…

lua
2015-12-17 516

#PHP
自定义对称 加密和解密

function selfEncode($str, $k) { $encoded = ''; $len = strlen($str); $lk = strlen($k); for(…

php
2015-12-17 302

#PHP
ShopNC QQ 互联修正,100010 错误处理

<?php /** * 入口文件 * * 统一入口,进行初始化信息 * * * @copyright Copyright (c) 2007-2013 ShopNC Inc. …

php
2015-12-17 495

#Lua
一级嵌套m3u8文件制作

#include<fcntl.h> #include<stdio.h> #include<string.h> #define M3U8_CFG …

lua
2015-12-17 121

#Lua
ffmpeg切割TS脚本带加密

#!/bin/bash # Be warned!!! there is an "rm -r" at the end of this script. I do not guarant…

lua
2015-12-17 253

#Lua
音乐播放

- (void)prepareMusic:(NSUInteger)index{ if (self.currentIndex != index) { self.currentInde…

lua
2015-12-17 787
1 30 31 32 33 34 672