Skip to content

Instantly share code, notes, and snippets.

View tiandiduwuxiaoxiao's full-sized avatar

Tim tiandiduwuxiaoxiao

  • ShangHai
View GitHub Profile
作者:菊竹清训
链接:https://www.zhihu.com/question/284464081/answer/438331402
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
你好,我是建筑学的学生,简单给个建议。
【尺寸】买笔记本主要是考虑将来在教室做汇报,或者旅途中不耽误应急用的,因此便携是必须,
不建议购买17寸的大家伙,15寸刚刚好,14寸偏小毕竟我们要看大图,要看效果。
【配置】目前市场上的游戏类笔记本配置都不低了,主要看三点,处理器(cpu),显卡,硬盘(内存后续可以自己加,因此不做重点)。
@tiandiduwuxiaoxiao
tiandiduwuxiaoxiao / raw socket
Last active June 26, 2018 09:24
socket with c#
```
using System;
using System.Net;
using System.Net.Sockets;
using System.Runtime.InteropServices;
namespace socket
{
class RawSocket
@tiandiduwuxiaoxiao
tiandiduwuxiaoxiao / block code
Last active May 17, 2018 03:31
Some information about bitcoin transaction
{
"hash": "0000000000000001b6b9a13b095e96db41c4a928b97ef2d944a9b31b2cc7bdc4",
"confirmations": 37371,
"size": 218629,
"height": 277316,
"version": 2,
"merkleroot": "c91c008c26e50763e9f548bb8b2fc323735f73577effbc55502c51eb4cc7cf2e",
"tx": [
"d5ada064c6417ca25c4308bd158c34b77e1c0eca2a73cda16c737e7424afba2f",
"b268b45c59b39d759614757718b9918caf0ba9d97c56f3b91956ff877c503fbe",
@tiandiduwuxiaoxiao
tiandiduwuxiaoxiao / diskpart.md
Created February 5, 2018 09:39
hard disk partition while you reinstall the system

Use diskpart to partition hard disk while you want to reinstall your pc system

You can follow the few steps below

  1. After you start you computer and in the system install interface,you can press shift F10 open terminal.
  2. Then,type the below command:
diskpart
list disk
select disk 0
detail disk
clean
@tiandiduwuxiaoxiao
tiandiduwuxiaoxiao / githubApi.md
Last active November 29, 2018 08:33
github api stuffs

Write some note while learn how to use REST API v3

  1. Get a repository's readme file's content
https://api.github.com/repos/tiandiduwuxiaoxiao/pythonProble/readme
  1. Get a repository's any file's content
https://api.github.com/repos/tiandiduwuxiaoxiao/pythonProble/contents/index.py
@tiandiduwuxiaoxiao
tiandiduwuxiaoxiao / git.md
Last active February 4, 2018 15:29
git & push local repository to remote master branch

Some steps about using git to init local repository and push to github

  1. First:prepare repository in github
  • Create a new repository at github and don't check 'Initialize this repository with a README' option.
  1. Second:prepare local repository in your pc
  • Go to your local resitory,(if you don't have one yet, just go to your work folder and git base here,then input git init in the terminal
  • Then you will create a local respository.
  1. Third:git config and create ssh for github
@tiandiduwuxiaoxiao
tiandiduwuxiaoxiao / jupyter.md
Last active October 25, 2023 18:26
install & uninstall jupyter

Install and uninstall jupyter

  1. Install jupyter
pip install jupyter
  • Launch jupyter
jupyter notebook
  1. Uninstall jupyter
@tiandiduwuxiaoxiao
tiandiduwuxiaoxiao / binarytree.md
Last active January 25, 2018 08:28
every staff about binary tree

Binary Tree

1. Inorder traversal with iterative and recursive solution:

  • Iterative solution for level traversal:
    def levelOrder(self, root):
          """
          :type root: TreeNode
          :rtype: List[List[int]]
          """
          res = []
    
@tiandiduwuxiaoxiao
tiandiduwuxiaoxiao / window.md
Last active January 22, 2018 03:05
some issues about window operation system

Window operation system issue collection:zzz:

😶1. How can I see how many CPUs my computer has in Windows 7?

  • Just run this in the command prompt:
WMIC CPU Get DeviceID,NumberOfCores,NumberOfLogicalProcessors
  • Or if you're lazy, just type:
WMIC CPU Get /Format:List
@tiandiduwuxiaoxiao
tiandiduwuxiaoxiao / npm.md
Last active January 18, 2018 07:03
npm directive collection

some npm directive

  1. To update all package in package.json with below command:
npm install -g npm-check-updates

or

npm install npm-check-updates