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
registerPlugin({ | |
newMessageElement: function(elem, tw) { | |
var rs = tw.retweeted_status || tw; | |
if (!rs.geo || rs.geo.type != 'Point') return; | |
var geomap = null; // find "geomap" in elem | |
for (var i = 0; i < elem.childNodes.length; i++) { | |
var util = elem.childNodes[i]; | |
if (util.className != "utils") continue; | |
for (var j = 0; j < util.childNodes.length; j++) { |
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
div.tw { font-size: x-small; } | |
div.tw .utils, div.tw .fav { display:none; } | |
div.tw div.selected { font-size: medium; } | |
div.tw div.selected .utils, div.tw div.selected .fav { display:block; } | |
div.tw div.selected .thumbnail-image { border: solid 2px white; width: auto; max-width: 200px; } |
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
geo::{return (g=this.geo)&&Math.floor(g.coordinates[0]*10)==349&&Math.floor(g.coordinates[1]*10)==1383}:0 |
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
xds.retry = 1; | |
xds.load_default = function(url, callback, old, callback_key) { | |
this.abort(old); | |
return this.load(url, callback, twFail, this.retry, callback_key); | |
}; | |
xds.load_for_tab = function(url, callback, callback_key) { // タブ切替時に自動abort | |
var ifr_tab = this.ifr_tab; | |
var fr = [this.load(url, | |
function() { callback.apply(this,arguments); try { ifr_tab.remove(fr[0]); } catch(e) {} }, | |
function() { twFail(); try { ifr_tab.remove(fr[0]); } catch(e) {} }, |
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
" msysGit | |
if executable($ProgramFiles . '\Git\bin\git.exe') | |
let g:VCSCommandGitExec= $ProgramFiles . '\Git\bin\git.exe' | |
endif | |
" TortoiseHg for Windows | |
if executable($ProgramFiles . '\TortoiseHg\hg.exe') | |
let g:VCSCommandHGExec= $ProgramFiles . '\TortoiseHg\hg.exe' | |
endif |
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
@echo off | |
setlocal | |
set target=vimexe | |
set vim=vim | |
if exist %target% ( | |
echo %target% is already exist. | |
goto end | |
) | |
if exist %target%.zip ( | |
echo %target%.zip is already exist. |
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
exe 'g/\/CropBox\s*\[\s*\zs\([0-9.]\+\s*\)\{4}\]/norm /'.nr2char(13).'30'.nr2char(1).'W30'.nr2char(1).'W30'.nr2char(24).'W30'.nr2char(24) |
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
[merge-tools] | |
gvimdiff.executable = gvim | |
gvimdiff.diffargs = -d $parent $child | |
gvimdiff.diff3args = -d $parent1 $child $parent2 | |
gvimdiff.gui = 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
powershell.exe -Command "& {Get-ChildItem|Where-Object{$_.Name -notmatch '^\.hg'}|Remove-Item -Recurse}" |
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
// Merged to master | |
// https://github.com/NeoCat/twicli/commit/24f73ae0ea054a33ed3e5ff83da28aaab641a061 |