Skip to content

Instantly share code, notes, and snippets.

View fireyy's full-sized avatar
:octocat:
I may be slow to respond.

Yuan Zhu fireyy

:octocat:
I may be slow to respond.
View GitHub Profile
<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>
@fireyy
fireyy / proxy.pac
Created November 29, 2011 02:58 — forked from ayanamist/proxy.pac
My Pac File for Auto Proxy
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 = {
@fireyy
fireyy / inline-block-spacing.css
Created November 29, 2011 08:11
去除inline-block元素间的空格
//去除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; }
@fireyy
fireyy / dabblet.html
Created July 31, 2013 05:48
Untitled
<!-- content to be placed inside <body>…</body> -->
@fireyy
fireyy / dabblet.css
Created October 21, 2013 02:03
Slanted tabs with CSS 3D transforms
/**
* 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;
@fireyy
fireyy / gist:11030162
Created April 18, 2014 07:49
import google reader starred data to fever
<?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=?");
@fireyy
fireyy / gist:e43229954e709bf0277e
Created April 13, 2015 11:02
两步验证跳板机自动登录,依赖安装 oathtool
#!/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