Skip to content

Instantly share code, notes, and snippets.

View antarts's full-sized avatar
🤒
Out sick

Antarts antarts

🤒
Out sick
View GitHub Profile
{"sig":"6ce1afb3e55c3e94a3a1ff3d2895f1567f4481698e8db12cec7e99b966f60424a5a5118e51cccce479a8bfcf16858ab27b6cd469dc74b538640906e5ac9f08601","msghash":"bc3bee89e9110bfa51f6a42e36117d8df6c151f69862e46ae436eb59099d71dc"}
{"sig":"9def088178bc5df6c7fdb0d28eacde0321b0baa4059380821aafa1266dc33bed248b504715bad5bffeb28be8bc9402e42f23c20df98b50a9e69fbc30bea327781","msghash":"810f0e8f5551b20ba15172510fa44817e68c4a5081dc2eb07f2c3eebe32968c4"}
@antarts
antarts / mongodb_basic_commands.md
Created November 26, 2017 15:35 — forked from leommoore/mongodb_basic_commands.md
MongoDB - Basic Commands

#MongoDB - Basic Commands

##Saving Data

db  //Tells you the current database

show collections //Shows the collections available in the current db

db.foo.save({_id:1, x:10}) //Save the document into the foo collection  

db.bar.save({_id:1, x:10}) //Save the document into the bar collection

git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@antarts
antarts / 作业:作业四
Last active July 29, 2017 15:26
编程语言 第一集
require 'benchmark'
# def binary_search(arr, element)
# arr.bsearch_index {|x| x >= element }
# end
def binary_search(arr, element)
l = 0
h = arr.size - 1
@antarts
antarts / markdownhere.css
Last active February 11, 2017 11:09 — forked from xiaolai/markdownhere.css
markdown-here-css
.markdown-here-wrapper {
font-size: 16px;
line-height: 1.8em;
letter-spacing: 0.1em;
}
pre, code {
font-size: 14px;
font-family: Roboto, 'Courier New', Consolas, Inconsolata, Courier, monospace;