This file contains 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
tell application "System Events" | |
activate | |
set theWidth to display dialog "Enter the width" default answer "650" | |
set theWidth to the text returned of theWidth as real | |
end tell | |
global theWidth | |
tell application "Finder" | |
set some_items to selection as list | |
repeat with aItem in some_items | |
set contents of aItem to aItem as alias |
This file contains 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
.header { | |
height:49px!important | |
} | |
.profile { | |
margin-top:5px!important | |
} | |
.app-logo { | |
margin-top:14px!important |
This file contains 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
# Rime dictionary | |
# encoding: utf-8 | |
# | |
# Wubi Pinyin Extended Dictionary(emoji) - 五笔拼音擴充詞庫(表情) | |
# | |
# by @lucifr | |
# based on https://gist.github.com/lembacon/4593540 & http://www.jianshu.com/p/ef2d9442fb0c | |
# | |
# 部署位置: | |
# ~/.config/ibus/rime (Linux) |
This file contains 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
# coding: utf-8 | |
from objc_util import * | |
import appex | |
SFSafariViewController = ObjCClass('SFSafariViewController') | |
def open_in_safari_vc(url): | |
vc = SFSafariViewController.alloc().initWithURL_entersReaderIfAvailable_(nsurl(url), True) | |
This file contains 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
// ==UserScript== | |
// @name 115 Player Full-Window-Mod | |
// @namespace http://lucifr.com/ | |
// @version 0.1 | |
// @description 100% width and height in 115.com player | |
// @author Lucifr | |
// @include http://*.115.com/* | |
// @include http://115.com/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
This file contains 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
-- ------------------------------- | |
-- Watcher for changes of init.lua | |
-- ------------------------------- | |
function reloadConfig(files) | |
doReload = false | |
for _,file in pairs(files) do | |
if file:sub(-4) == ".lua" then | |
doReload = true | |
end | |
end |
OlderNewer