hoxis' blog

生命在于折腾


  • 首页

  • 热榜

  • 分类

  • 阅读

  • 标签

  • 归档

  • 资源

  • 搜索

常用代码段

发表于 2017-12-27 | 分类于 工作学习 | | 阅读次数:
字数统计: 1,420 | 阅读时长 ≈ 6
包括shell、SQL以及一些常用命令的集合。
阅读全文 »

【Codewars每日一题】- Invert values

发表于 2017-12-27 | 分类于 Python | | 阅读次数:
字数统计: 373 | 阅读时长 ≈ 2

题目

题目地址

Given a set of numbers, return the additive inverse of each. Each positive becomes negatives, and the negatives become positives.

阅读全文 »

【Codewars每日一题】- Sum without highest and lowest number

发表于 2017-12-26 | 分类于 Python | | 阅读次数:
字数统计: 737 | 阅读时长 ≈ 3

题目

题目地址

Sum all the numbers of the array (in F# and Haskell you get a list) except the highest and the lowest element (the value, not the index!).
(The highest/lowest element is respectively only one element at each edge, even if there are more than one with the same value!)

阅读全文 »

【Codewars每日一题】- Sum of Numbers

发表于 2017-12-25 | 分类于 Python | | 阅读次数:
字数统计: 749 | 阅读时长 ≈ 4

题目

题目地址

Given two integers a and b, which can be positive or negative, find the sum of all the numbers between including them too and return it. If the two numbers are equal return a or b.

Note: a and b are not ordered!

阅读全文 »

linux下大于2TB硬盘格式化及挂载-GPT分区步骤

发表于 2017-12-20 | 分类于 Linux | | 阅读次数:
字数统计: 483 | 阅读时长 ≈ 2

先介绍两种分区表:

  • MBR分区表:(MBR含义:主引导记录)
    • 所支持的最大卷:2T(T: terabytes,1TB=1024GB)
    • 对分区的设限:最多4个主分区或3个主分区加一个扩展分区。
  • GPT分区表:(GPT含义:GUID分区表)
    • 支持最大卷:18EB(E:exabytes,1EB=1024TB)
    • 每个磁盘最多支持128个分区

明显地,当磁盘超过2TB时需要使用GBT分区。

阅读全文 »

python cookbook代码段

发表于 2017-12-18 | 分类于 学习笔记 | | 阅读次数:
字数统计: 1,213 | 阅读时长 ≈ 6
  • 数据结构和算法
阅读全文 »

CentOS升级python2到python3

发表于 2017-12-18 | 分类于 Python | | 阅读次数:
字数统计: 654 | 阅读时长 ≈ 3

CentOS 7 中默认安装了 Python,版本比较低(2.7.5),为了使用新版 3.x,需要对旧版本进行升级。

阅读全文 »

Hexo博客同时托管到github和coding

发表于 2017-12-15 | 分类于 奇技淫巧 | | 阅读次数:
字数统计: 322 | 阅读时长 ≈ 1

之前的hexo博客一直托管在GitHub,最近发现也可以托管在国内的Coding上,下面就记录下本次托管到Coding的过程。

阅读全文 »

Hexo+Next 添加菜单分类页面

发表于 2017-12-14 | 分类于 奇技淫巧 | | 阅读次数:
字数统计: 341 | 阅读时长 ≈ 1

在[Hexo+Next]主题下新增一个资源分类页面。

阅读全文 »

vim 实用指令

发表于 2017-12-12 | 分类于 Linux | | 阅读次数:
字数统计: 850 | 阅读时长 ≈ 3
vim 常用命令
阅读全文 »
1…222324…27
hoxis

hoxis

267 日志
24 分类
131 标签
RSS
GitHub 知乎
友链
  • 伪君子的梦呓
  • 发现精品星球
近期文章
  • 2022最新知网下载方法!免费可用!
  • Win11系统镜像下载地址+安装教程
  • 微信读书无限卡白嫖攻略
  • 微信Windows版可以刷朋友圈了,微信3.3.0内测版安装包
  • 阿里云盘如何分享文件?
© 2015 — 2021 hoxis
本站已有 位访客 人阅读
0%