Skip to content

Instantly share code, notes, and snippets.

View m2kar's full-sized avatar

M2kar m2kar

View GitHub Profile
@m2kar
m2kar / CSDNMarkDown模板.md
Created May 31, 2018 12:28
MarkDown 模板

欢迎使用Markdown编辑器写博客

本Markdown编辑器使用[StackEdit][6]修改而来,用它写博客,将会带来全新的体验哦:

  • Markdown和扩展Markdown简洁的语法
  • 代码块高亮
  • 图片链接和图片上传
  • LaTex数学公式
  • UML序列图和流程图
  • 离线写博客
@m2kar
m2kar / github_spider
Created September 3, 2018 09:09
获取某个github组织的所有库
# ! python3
"""
获取某个用户的所有库
安装依赖库:
pip install requests,bs4
运行:
python3 github_spider.py nasa
会打印出每个项目的git地址
比如下载该组织的的所有库
@m2kar
m2kar / JRE-JDK URL
Last active September 17, 2018 02:55
JRE JDK 直接下载地址 从https://github.com/inetquestion/Java-JRE-JDK-Downloader 复制
#从https://github.com/inetquestion/Java-JRE-JDK-Downloader 复制
# Sun Mar 29 11:36:12 EDT 2015
http://download.oracle.com/otn-pub/java/jdk/8u45-b13/jre-8u45-linux-x64.tar.gz
http://download.oracle.com/otn-pub/java/jdk/8u45-b13/jre-8u45-linux-i586.tar.gz
http://download.oracle.com/otn-pub/java/jdk/8u45-b13/jre-8u45-macosx-x64.dmg
http://download.oracle.com/otn-pub/java/jdk/8u45-b13/jre-8u45-windows-i586.exe
http://download.oracle.com/otn-pub/java/jdk/8u45-b13/jre-8u45-windows-x64.exe
# Sun Mar 29 11:38:22 EDT 2015
http://download.oracle.com/otn-pub/java/jdk/8u45-b13/jdk-8u45-linux-x64.tar.gz
http://download.oracle.com/otn-pub/java/jdk/8u45-b13/jdk-8u45-linux-i586.tar.gz
@m2kar
m2kar / DES.py
Last active March 16, 2020 09:19
计算机安全DES算法实现
# coding=utf-8
"""
计算机安全DES算法实现
"""
# @Time: 2018/12/9 1:55
# @File: des.py
base = [str(x) for x in range(10)] + [chr(x) for x in range(ord('A'), ord('A') + 6)]
@m2kar
m2kar / 明朝那些事.ipynb
Last active October 28, 2024 14:25
明朝那些事儿下载 https://www.ysts8.com
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@m2kar
m2kar / .travis.yml
Created August 16, 2019 01:00 — forked from willprice/.travis.yml
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
@m2kar
m2kar / journal-of-software.csl
Created September 5, 2019 13:02
软件学报的csl文献格式
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en">
<!-- This style was edited with the Visual CSL Editor (http://editor.citationstyles.org/visualEditor/) -->
<info>
<title>Journal of Software (numeric, Chinese)</title>
<id>http://www.zotero.org/styles/journal-of-software</id>
<link rel="self" href="http://www.zotero.org/styles/journal-of-software"/>
<link rel="template" href="http://www.zotero.org/styles/chinese-gb7714-2005-numeric"/>
<link href="http://gradschool.ustc.edu.cn/ylb/material/xw/wdxz/19.pdf" rel="documentation"/>
<author>
@m2kar
m2kar / decode.py
Created September 8, 2019 13:32
bytedance exam decode numbers to characters
from queue import Queue
s=input().strip("\n")
l=len(s)
q=Queue()
# flag
# 0: nothing
# 1: in 1
# 2: in 2
q.put(("",0,0),)
@m2kar
m2kar / robot.py
Created September 8, 2019 13:36
字节跳动笔试题目 机器人向前看
import re
from logging import debug
import logging
# logging.basicConfig(level=logging.DEBUG)
n=int(input())
sl=input()
l=[int(s) for s in re.split(r"\s",sl.strip("\n").strip(" "))]
# debug(f"n={n} l={l}")
@m2kar
m2kar / water.py
Created September 8, 2019 13:37
字节跳动笔试题目 倒水
#todo