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
-- ~/.hammerspoon/init.lua | |
------------------------------------------------------------ | |
-- 仅层叠:当前聚焦窗口 → 所在显示器 + 该窗口所在 Space | |
-- 热键:Ctrl + Option + Command + C | |
------------------------------------------------------------ | |
local hasSpaces = (hs.spaces ~= nil) | |
-- 层叠参数(按需改) | |
local CASCADE_CFG = { |
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
{ | |
"libs": [ | |
"ecma5", | |
"ecma6", | |
"browser", | |
"jquery", | |
"underscore" | |
], | |
"loadEagerly": [ | |
"importantfile.js" |
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
ReactDOM.render( | |
<h1>Hello, world!</h1>, | |
document.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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import cookielib | |
import urllib | |
import urllib2 | |
import re | |
url_login = 'http://f.10086.cn/im/login/inputpasssubmit1.action' | |
url_logout = 'http://f.10086.cn//im/index/logoutsubmit.action?t=' |
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
/* The wrapper */ | |
.b-block { | |
position: relative; | |
display: inline-block; | |
overflow: hidden; | |
width: 10em; | |
height: 10em; | |
vertical-align: middle; |
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
/* | |
project: http://github.com/livid/v2ex | |
file: http://github.com/livid/v2ex/blob/master/static/css/desktop/style.css | |
*/ | |
#Navigation { | |
float: right; | |
text-align: right; | |
font-size: 14px; | |
color: #fff; | |
margin-top: 14px; |
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/env ruby | |
#use Unicode | |
$KCODE = 'u' | |
require 'jcode' | |
require 'rubygems' | |
require 'action_mailer' | |
require 'tlsmail' #need install tlsmail gem to support TLS connect | |
Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE) |
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/env ruby | |
# Script that wraps grabbing and selecting stuff from HTML page via CSS selectors | |
# Created 2009-10-01 by Jesper Rønn-Jensen, www.justaddwater.dk | |
# | |
# For usage, run parsepage.rb without arguments. | |
# | |
# Feel free to modify, fork and improve as long as you commit your changes back to me :) | |
def usage | |
<<-EOF #.gsub(' ', '') | |
=== USAGE === |
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
#! /bin/csh -f | |
rm -rf C*/*/build | |
rm .DS_Store | |
rm C*/.DS_Store | |
rm C*/*/.DS_Store | |
rm -rf C*/*/*.xcodeproj/ericasadun.* |
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
.e{ | |
color:#FFF;/* FF,OP */ | |
[;color:#0F0;]/* Sa,CH */ | |
color:#FFF\9;/*IE6、7、8*/ | |
*color:#FF0;/* IE7、6 */ | |
_color:#F00;/* IE6 */ | |
} | |
@media all and(min-width:0){ | |
.e{ | |
background-color:#FF5500;/* OP */ |
NewerOlder