自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 收藏
  • 关注

转载 tensorflow weight_variable going

1 # coding: utf-8 2 import tensorflow as tf 3 from tensorflow.examples.tutorials.mnist import input_data 4 5 6 def weight_variable(shape): 7 initial = tf.truncated_normal(sha...

2019-06-04 20:25:00 1958

转载 spown mj

local function getmjvalnew(key) local keynew = {} local sumnval = 0 for _, v in ipairs(key) do if v<=0 and next(keynew) then sumnval = sumnval + getmjvalnew(keynew) keynew = {} elseif v&...

2018-02-10 15:23:00 162

转载 不能支持C++11的特性~,升级到4.8.2

一、简易安装操作环境CentOS6.5 64bit,原版本4.4.7,不能支持C++11的特性~,希望升级到4.8.2不能通过yum的方法升级,需要自己手动下载安装包并编译1.1 获取安装包并解压wget http://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2tar -jxvf gcc-4.8.2.tar.b...

2017-07-14 15:02:00 207

转载 2014年面试题

local count = 0local mode = 5function go(index,str,jk)  str = str ..(jk==0 and "" or jk)  if index <= 0 then    if string.sub(str,3,3) ~= "3" then      count = count + 1      p...

2016-01-20 10:52:00 123

转载 CentOS 安装Mysql

安装我们利用liunx yum来安装mysql,yum -y install mysql mysql-server;相应的卸载命令是 yum -y remov xxxx设置账号安全完成后,我们利用mysqladmin -u root password ‘123456’ 命令进入mysql,报了error 1045错误,访问被拒绝解决办法是重新设置root用户密码...

2015-03-25 20:03:00 77

转载 mysql安装

卸载mysql1、查找以前是否装有mysql命令:rpm -qa|grep -i mysql可以看到mysql的两个包:mysql-4.1.12-3.RHEL4.1mysqlclient10-3.23.58-4.RHEL4.12、删除mysql删除命令:rpm -e --nodeps 包名3、删除老版本mysql的开发头文件和库命令:rm -fr ...

2015-03-23 20:48:00 109

转载 使用Vagrant在Windows下部署开发环境

1. Vagrant功能:Vagrant usesOracle’s VirtualBoxto build configurable, lightweight, and portable virtual machines dynamically..【Vagrant 使用Oracle VM VirtualBox 动态创建和配置轻量级的,可重现的,便携的虚拟机...

2015-02-05 11:07:00 99

转载 lua面向对象实现(实例化对象、继承、多态、多继承、单例模式)

lua面向对象实现:一个类就像是一个创建对象的模具。有些面向对象语言提供了类的概念,在这些语言中每个对象都是某个特定类的实例。lua则没有类的概念,每个对象只能自定义行为和形态。不过,要在lua中模拟类也并不困难。lua中,面向对象是用元表这个机制来实现。首先,一般来说一个表和它的元表是不同的个体(不属于同一个表),在创建新的表时,不会自动创建元表。setmetatabl...

2015-01-07 13:11:00 203

转载 LuaToC#

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using LuaInterface; ...

2015-01-06 20:13:00 104

转载 C#中dll调用方法

一、DLL与应用程序动态链接库(也称为DLL,即为“Dynamic Link Library”的缩写)是Microsoft Windows最重要的组成要素之一,打开Windows系统文件夹,你会发现文件夹中有很多DLL文件,Windows就是将一些主要的系统功能以DLL模块的形式实现。动态链接库是不能直接执行的,也不能接收消息,它只是一个独立的文件,其中包含能被程序或...

2015-01-06 17:39:00 140

转载 游戏服务端pomelo安装配置

一、安装环境Linux Ubantu二、安装需要的组件1、安装nodejs注:debian下nodejs没有相应的apt包,所以无法用apt-get安装,只能通过nodejs的源码包安装,这里有比较全的其他系统环境下安装nodejs的方式https://github.com/joyent/node/wiki/Installing-Node.js-via-pack...

2014-12-25 20:21:00 166

转载 firefly安装步骤

本来公司一个网游服务器端选定了pomelo框架,后来出了个Firefly,为做一个对比,决定研究一下Firefly。看了一下Firefly,感觉头大,python的,本人python小白,只好慢慢折腾,一天下来总算装上了Firefly框架,并把他的那个开源网游《暗黑世界》服务器端跑了起来,特此记录共享!其实关于这个框架的安装,他们的官网和BBS是有教程的只是太零散,并且面向的都是高手...

2014-11-12 15:05:00 819

转载 随机函数

public static int Random(int min, int max) { if (min >= max) return min; int diff = max - min; int ran = (int)Random(); ran = ran % (diff + 1); ...

2014-10-22 11:49:00 103

转载 快速开方

在某些情况下有误差public static int Sqrt(int a) { switch (a) { case 0: return 0; case 1: case 2: case 3: return 1; default: int n = a / 2; int m = (n + a / n) / 2; whil...

2014-10-22 11:46:00 93

转载 绘图部分

using System;using System.Collections.Generic;using System.Windows.Forms;using System.Drawing;using System.Drawing.Drawing2D;namespace Test01{ public partial class MainForm : Form { ...

2014-10-15 11:31:00 109

转载 技能表现

using System;using System.Collections.Generic;using System.Windows.Forms;using System.Drawing;using System.Drawing.Drawing2D;namespace Test01{ public partial class MainForm : Form { ...

2014-09-20 17:57:00 94

转载 万分数封装类

1 using System.Diagnostics; 2 using System; 3 using System.Collections.Generic; 4 5 public class WanFraction 6 { 7 public WanFraction() 8 { 9 this.Num...

2014-09-02 13:40:00 91

转载 C#文件读写参考

string s = ""; string[] files = Directory.GetFiles(@"E:\u3d_warcraft\logic\logic\Battle\Skill"); foreach (string file in files) { s = file.Split(new c...

2014-09-01 16:55:00 118

转载 人脸识别相关分享

人脸识别源代码※人脸检测(文章+程序)---技术文档及代码非常全『 人脸检测(文章+程序).rar (1.27 MB) 人脸检测(文章+程序).rar (1.27 MB)下载次数: 125022010-12-2112:26』※完整的Matlab下人脸检测及识别系统源代码『 Face-Recognition-Detection.rar(393.19 ...

2014-08-29 11:48:00 231

转载 攻击伤害封装

/// <summary> /// 单位伤害 /// </summary> /// <param name="unit">被攻击者</param> /// <param name="skill">使用技能</param> public static int unitDamage(Uni...

2014-08-28 11:31:00 118

转载 工作笔记

curl -d 'entityID=670&itemID=1234&itemCount=10' http://192.168.0.133:21031/addEquipPatchscurl -d 'entityID=47530&itemID=1234&itemCount=10' http://192.168.0.133:3251/addEquipPatc...

2014-06-16 19:43:00 133

转载 linux 软件开发的源

deb http://mirrors.aliyun.com/ubuntu/ quantal main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ quantal-security main restricted universe multiversedeb http://mirrors.aliyu...

2014-05-28 13:25:00 177

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除