Skip to content

Instantly share code, notes, and snippets.

/**
* 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",
/**
* 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){
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={(
/**
* Favotter Viewer.
* Respect
* http://jsgt.org/mt/01/
* http://d.hatena.ne.jp/murky-satyr/
*
* TODO:HTTP 503のときに起こってる悲しい事態を何とかする。
*/
+function($j, urls){
CmdUtils.CreateCommand({
;;; 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)
const Aliases = {
t: {
help: 'title',
get text() info().title,
},
u: {
help: 'URL',
get text() info().url,
},
a: {
// 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 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"
@Yasushi
Yasushi / twixy.py
Created January 25, 2010 05:18 — forked from mizchi/twixy.py
#!/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
#
@Yasushi
Yasushi / pom.xml
Created February 14, 2011 09:34 — forked from tc/pom.xml
<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>