This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect -f | |
set timeout 30 | |
set secret YOUR_SECRET | |
set username YOUR_NAME | |
set password YOUR_PASSWORD | |
set host YOUR_HOST | |
log_user 0 | |
spawn oathtool --totp --base32 $secret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = new PDO("mysql:host=localhost;dbname=fever", "fever", "fever"); | |
$json = json_decode(file_get_contents("starred.json"), true); | |
$items = $json['items']; | |
//var_dump($json); | |
foreach($items as $item){ | |
$feedUrl = substr($item['origin']['streamId'], 5); | |
$stmt = $db->prepare("select id from fever_feeds where url=?"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Slanted tabs with CSS 3D transforms | |
* See http://lea.verou.me/2013/10/slanted-tabs-with-css-3d-transforms/ | |
*/ | |
body { padding: 50px; } | |
nav { | |
position: relative; | |
z-index: 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- content to be placed inside <body>…</body> --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//去除inline-block元素间的空格 | |
.list { letter-spacing:-0.31em; *letter-spacing:normal; word-spacing-0.43em; } | |
.list li { display: inline-block; *display: inline; zoom: 1; vertical-align: top; letter-spacing: normal; word-spacing: normal; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PROXY = {}; | |
PROXY.direct = "DIRECT"; | |
PROXY.goagent = "PROXY 127.0.0.1:8087"; | |
PROXY.vps = "PROXY 127.0.0.1:8123"; | |
PROXY.edu = "PROXY 127.0.0.1:4080"; | |
PROXY.adblock = "PROXY 127.0.0.1:8080"; | |
PROXY.acc = PROXY['goagent']; | |
var DEFAULT = PROXY['direct']; | |
var ADBLOCK = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box"> | |
<div style="min-height: 73px;" class="cell"> | |
<h1> | |
24点在线解答 | |
</h1> | |
<div class="sep20"> | |
</div> | |
<table height="600" cellspacing="0" cellpadding="0" border="0" align="center" | |
width="600" class="mbody"> | |
<tbody> |