Skip to content

Instantly share code, notes, and snippets.

View nothingrealhappen's full-sized avatar
🏠
Working from home

NothingRealHappen nothingrealhappen

🏠
Working from home
  • Mars
View GitHub Profile
#cVim-link-container, .cVim-link-hint, #cVim-command-bar, #cVim-command-bar-mode, #cVim-command-bar-input, #cVim-command-bar-search-results, .cVim-completion-item, .cVim-completion-item .cVim-full, .cVim-completion-item .cVim-left, .cVim-completion-item .cVim-right, #cVim-hud, #cVim-status-bar {
font-family: Helvetica, Helvetica Neue, Neue, sans-serif, monospace, Arial;
font-size: 10pt !important;
-webkit-font-smoothing: antialiased !important;
}
#cVim-link-container {
position: absolute;
pointer-events: none;
width: 100%; left: 0;
@nothingrealhappen
nothingrealhappen / gist:dda1c7fcd3ada30ae3fd
Last active August 29, 2015 14:13
一个简单的物料计算器
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>网页算料器</title>
<style type="text/css">
body {
margin: 0; padding: 0;
}
.wrap {
@nothingrealhappen
nothingrealhappen / 「Geek每日一题」2014.12.31
Last active August 29, 2015 14:12
「Geek每日一题」2014.12.31
这道题答案很多,主要考察最优算法。
@nothingrealhappen
nothingrealhappen / gist:caa2c1ac6e706f81cb00
Last active August 29, 2015 14:12
「Geek每日一题」2014.12.30
Come on !
@nothingrealhappen
nothingrealhappen / js:page.js start
Created December 11, 2014 03:34
js:page.js start
$(function(){
if(!$('body').hasClass('yourclass')) {
return false;
}
})

替换上你的Email,密码,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。

获得domain_id可以用curl curl -k https://dnsapi.cn/Domain.List -d "login_email=xxx&login_password=xxx"

获得record_id类似 curl -k https://dnsapi.cn/Record.List -d "login_email=xxx&amp;login_password=xxx&amp;domain_id=xxx"