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 MoneyForwardでクレカの未確定残高もチェック | |
// @namespace https://github.com/AknEp | |
// @version 0.2 | |
// @description MoneyForwardのトップページ左上の総資産から、未確定のカード残高を引いて表示してくれるやつ。Tampermonkeyとか使えばインストールできるっぽいです。(Developed by: Twitter/GitHub @AknEp ) | |
// @author AknEp | |
// @match https://moneyforward.com | |
// ==/UserScript== | |
(function(){ | |
'use strict'; |
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
// How to integrate such two or more methods? | |
- (NSString *)string:(NSString*)string withoutMatches:(NSArray*)matches | |
{ | |
NSMutableString *workString = [string mutableCopy]; | |
// 逆順にしないと複数マッチの時に場所がずれる | |
[matches enumerateObjectsWithOptions:NSEnumerationReverse usingBlock:^(NSTextCheckingResult* match, NSUInteger idx, BOOL *stop) { | |
[workString deleteCharactersInRange:match.range]; | |
}]; |
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
remove all of your passwords in the LastPass. | |
$('.leaf.search').each(function(index,that){ d($(that).attr('id')); $('#ext-gen148').click() }) |
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
inline Boolean PISetRect(Rect* pRect, short nLeft, short nTop, short nRight, short nBottom) | |
{ | |
pRect->left = nLeft; | |
pRect->top = nTop; | |
pRect->right = nRight; | |
pRect->bottom = nBottom; | |
return 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
$ cd your-web-document-root | |
$ ln -s /usr/share/redmine-2.3.0 redmine |
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
loop do | |
answer = gets.chomp | |
if answer == "y" | |
puts "You choose yes. See you." | |
break; | |
elsif answer == "n" | |
puts "You choose no. See you." | |
break; | |
else | |
puts "You typed #{answer} , you must type y or n." |