Skip to content

Instantly share code, notes, and snippets.

@Yasushi
Yasushi / ddskk.rb
Last active August 29, 2015 14:10 — forked from kawaguchi/ddskk.rb
require 'formula'
class Ddskk < Formula
url 'http://openlab.ring.gr.jp/skk/maintrunk/ddskk-15.2.tar.gz'
homepage 'http://openlab.ring.gr.jp/skk/index-j.html'
sha1 '23b7c83dfa4997a0be47fca8cfd316e68f4342ec'
patch do
url "https://gist.githubusercontent.com/Yasushi/d69a49dc3eb6780952c6/raw/21becd1e99864a1924786d481172855992452b08/ddskk-rename-queue-func.diff"
sha1 "ef07cb6707f33d46cc364afa8c1cb829d3670e14"
/**
* 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
#