Skip to content

Instantly share code, notes, and snippets.

十月 19, 2014

npm全称Node Package Manager,是node.js的模块依赖管理工具。由于npm的源在国外,所以国内用户使用起来各种不方便。下面整理出了一部分国内优秀的npm镜像资源,国内用户可以选择使用。

国内优秀npm镜像

在使用npm进行安装的时候,提示缺少python等问题,直接通过以下方法安装即可

On Windows

Option 1

Install all the required tools and configurations using Microsoft's windows-build-tools using npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator).

Option 2

Install tools and configuration manually:

  • Visual C++ Build Environment:

  • Option 2: Install Visual Studio 2015 (or modify an existing installation) and select Common Tools for Visual C++ during setup. This also works with the free Community and Express for Desktop editions.

钓鱼邮件初探:黑客是如何进行邮件伪造的?

dontshoot 2016-01-07 704765人围观 ,发现 31 个不明物体 工具网络安全

本文原创作者:dontshoot

免责声明:本站提供安全工具、程序(方法)可能带有攻击性,仅供安全研究与教学之用,风险自负!

现如今的钓鱼邮件都是通过注册相似的邮箱,或者设置邮箱的显示名称,盼着被害人有看走眼的那一刻,轻信邮件的内容。这种方法需要一定的社工技巧,以及诱导性的语言来诱使被害人上钩。但是对于有一定的经验以及眼力的人来说,还是可以识破骗子的伎俩。

磁盘启动次数计算原理总结

磁盘启动次数计算原理总结

@(OS)

文件管理有三大部分内容:

  • 目录管理

台大机器学习技法学习笔记

原创 2016年03月04日 13:06:17
@hongyangqin
hongyangqin / 1.html.md
Last active December 9, 2017 10:58
inline函数必须在头文件中定义吗?

inline函数必须在头文件中定义吗?

From : http://blog.csdn.net/tonywearme/article/details/7097910

前不久在写代码的时候遇到一个link错误,代码的原型如下所示,基本就是定义了一个基类和派生类,在派生类的一个成员函数中用到了基类定义的一个内联函数。

// base.h
class Base
{
protected:
@hongyangqin
hongyangqin / 1.html.md
Last active December 9, 2017 12:45
在头文件中声明变量

问题 :出现无法解析的外部符号

如图: snipaste_2017-12-08_21-45-42

全局变量一般在.cpp文件中定义,在头文件中定义extern 头文件中应使用extern 关键字声明全局变量(不定义)

多文件中共享变量

@hongyangqin
hongyangqin / 1.md
Last active December 10, 2017 03:53
Local history 无法使用difftool Command ,并且出现乱码

Local history: difftool Command

问题 :Local history 无法使用difftool Command ,并且出现乱码

snipaste_2017-12-10_11-39-24

解决办法: meld 没安装,安装meld,然后添加到环境变量中即可

@hongyangqin
hongyangqin / genetic_tsp.cpp
Created December 10, 2017 06:32
genetic_tsp 遗传算法 TSP
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<time.h>
#define maxgen 200 // 最大进化代数
#define sizepop 20 // 种群数目
#define pcross 0.6 // 交叉概率
#define pmutation 0.1 // 变异概率
#define lenchrom 14 // 染色体长度(这里即为城市个数)
double city_pos[lenchrom][2] = { { 16.47,96.10 },{ 16.47,94.44 },{ 20.09,92.54 },{ 22.39,93.37 },{ 25.23,97.24 },{ 22.00,96.05 },{ 20.47,97.02 },
@hongyangqin
hongyangqin / 1.html.md
Created December 14, 2017 04:35
图像与滤波 阮一峰 2017年12月13日 From:http://www.ruanyifeng.com/blog/2017/12/image-and-wave-filters.html

图像与滤波

作者: 阮一峰

日期: 2017年12月13日

我对图像处理一直很感兴趣,曾经写过好几篇博客(1234)。