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
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */ | |
/* URLバーのIMEをOFFに */ | |
#urlbar *|input { | |
ime-mode: inactive !important; | |
} | |
/* MacでもFaviconを表示 */ | |
.bookmark-item[image] .toolbarbutton-icon { | |
padding: 0 !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
// | |
// Graphic Novelist (graphic-novelist.js) | |
// Created by M@ McCray | |
// site: http://mattmccray.com | |
// email: matt at elucidata dot net | |
// | |
// API: | |
// | |
// GraphicNovelist.parse( text ) -> Parse text into array of script Nodes | |
// GraphicNovelist.renderNodes( nodes ) -> Renders array of script Nodes into HTML |
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
CmdUtils.makeBookmarkletCommand({ | |
name: "Evernote", | |
description: "Save a note on Evernote.", | |
icon: "http://www.evernote.com/favicon.ico", | |
homepage: "http://www.makadia.com", | |
author: {name: "Svapan Makadia", email: "[email protected]"}, | |
help: "Select content and invoke this command to save the selection as a note or just save the whole page without selecting anything.", | |
url: "javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var%20x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new%20Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();" | |
}) |
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
function getBookmarklets(callback) { | |
var bookmarklets = {}; | |
var Ci = Components.interfaces; | |
var Cc = Components.classes; | |
var bookmarks = Cc["@mozilla.org/browser/nav-bookmarks-service;1"] | |
.getService(Ci.nsINavBookmarksService); | |
var history = Cc["@mozilla.org/browser/nav-history-service;1"] |
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
property dueTag : "due" | |
property startTag : "start" | |
property repeatTag : "repeat" | |
property todayTag : "today" | |
property pastDueTag : "overdue" | |
property upcomingTag : "upcoming" | |
property doneTag : "done" | |
property inProgressTag : "inprogress" | |
property errorTag : "error" | |
property removeTags : {upcomingTag, todayTag, pastDueTag, inProgressTag} |
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
(* | |
GUIライブラリ | |
ロード方法の例(このライブラリをユーザースクリプトフォルダに"_gui.scpt"で保存した場合) | |
property GUI : load script file ((path to scripts folder as text) & "_gui.scpt") | |
あるいは動的に... | |
set GUI to load script file ((path to scripts folder as text) & "_gui.scpt") | |
開発&テスト環境 | |
MacBook OSX 10.5.6 | |
AppleScript 2.0.1 |
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
Oauth basics for JR: | |
The goal is to give a third party app authenticated access to your api using a token in place of a user's credentials. | |
To do that, the third party app first gets a consumer key and secret from your app. These are used to sign all requests, so no other third party can pretend to be that service. | |
The same thing needs to happen for individual users. Here it gets a little more complicated. The third party app first gets a request token for that user. This is used in all requests so we know who we're dealing with. | |
Once they have a request token for that user they redirect him/her to your authentication page (passing the token along in the url). The user logs in to your app and approves the third party service. Your app then sends them back to the third party. At this point the third party application knows that the user is ok with giving them access to their data. | |
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
var apps = $('#applications'); | |
var off_top = apps.offset().top; | |
apps.css({ | |
position: 'absolute', | |
top: off_top | |
}); |
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
var HAS_EXPANDING_BOX_BUG = (function(){ | |
var el = document.createElement('div'), | |
isBuggy = false; | |
el.style.width = '1px'; | |
el.innerHTML = 'xxxxxxxxxx'; | |
document.body.appendChild(el); | |
isBuggy = (el.offsetWidth > 1); | |
document.body.removeChild(el); | |
el = null; | |
return isBuggy; |
OlderNewer