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
/** | |
* flvdl - FLV downloader. | |
* This is fork of | |
* http://gist.github.com/53229 | |
*/ | |
+function(flvdl_siteinfo){ | |
CmdUtils.CreateCommand({ | |
name: "flvdl", | |
description: "FLV Downloader.", | |
icon: "chrome://ubiquity/skin/icons/favicon.ico", |
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
/** | |
* The LDOCE Online Dictionary. | |
*/ | |
+function(){ | |
const $j = jQuery; | |
const LDOCE_QUERY_URL = { | |
def: "http://www.ldoceonline.com", | |
html: "http://www.ldoceonline.com/search/?q=" | |
}; | |
const LDOCE_RENDER = function(pb, prm){ |
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
const Name = 'shorten-url', | |
Shorteners = [{ | |
text: 'tinyurl.com', | |
data: function(lu, cb)({ | |
url: 'http://tinyurl.com/api-create.php', | |
type: 'post', | |
data: {url: lu}, | |
success: cb, | |
}), | |
logo: <h1 style={( |
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
/** | |
* Favotter Viewer. | |
* Respect | |
* http://jsgt.org/mt/01/ | |
* http://d.hatena.ne.jp/murky-satyr/ | |
* | |
* TODO:HTTP 503のときに起こってる悲しい事態を何とかする。 | |
*/ | |
+function($j, urls){ | |
CmdUtils.CreateCommand({ |
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
;;; toggle-scala.el --- Toggle between test and implementation files. | |
;; Author: MIZUNO Hiroki<mzp.ppp_at_gmail.com> | |
;; Keywords: tools | |
;;; Usage: | |
;; Insert into your .emacs file the following line, (and eval it for | |
;; immediate usage: | |
;; | |
;; (require 'toggle-scala) |
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
const Aliases = { | |
t: { | |
help: 'title', | |
get text() info().title, | |
}, | |
u: { | |
help: 'URL', | |
get text() info().url, | |
}, | |
a: { |
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
// Sketch of an immutable domain model in Scala | |
// We used this scheme together with this JPA module: | |
// http://github.com/jboner/skalman/blob/d1e03a85be3964b9012f9e79dd726b0546342b2b/core/src/main/scala/JPA.scala | |
// ...and this GenericRepository: | |
// http://github.com/jboner/skalman/blob/d1e03a85be3964b9012f9e79dd726b0546342b2b/core/src/main/scala/GenericRepository.scala | |
abstract class Entity[T](val id: Int) | |
object User { |
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
/* | |
This program is free software. It comes without any warranty, to | |
the extent permitted by applicable law. You can redistribute it | |
and/or modify it under the terms of the Do What The Fuck You Want | |
To Public License, Version 2, as published by Sam Hocevar. See | |
http://sam.zoy.org/wtfpl/COPYING for more details. | |
Uses "http://www.hilite.me/api" |
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
#!/usr/bin/python | |
# | |
# Copyright 2007 Google Inc. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>casbah-test</groupId> | |
<artifactId>testing</artifactId> | |
<packaging>jar</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<properties> | |
<scala.version>2.8.1</scala.version> |
OlderNewer