Skip to content

Instantly share code, notes, and snippets.

@tlync
tlync / alchistory.user.js
Created February 26, 2011 03:52
Save search history on alc
// ==UserScript==
// @name ALC Search History
// @namespace http://d.hatena.jp/tlync
// @description Save search history on alc
// @homepage http://twitter.com/tlync
// @include http://www.alc.co.jp/
// @include http://eow.alc.co.jp/*
// @version 0.1.0 alpha
// ==/UserScript==
;; anything
(add-to-load-path-recompile "~/.emacs.d/elisp/anything")
(require 'anything-startup)
;;
;; (anything sources)
;;
;; imenu
;;; anything-gist.el --- anything-sources and some utilities for gist.
;; Filename: auto-complete-acr.el
;; Description: Anything extension for gist
;; Author: myuhe <yuhei.maeda_at_gmail.com>
;; Maintainer: myuhe, tlync<takuya.fujimura_at_gmail.com>
;; Copyright (C) 2009, 2010, myuhe , all rights reserved.
;; Created: 2009-04-13
;; Version: 0.7
;; Keywords: convenience, anything, git, gist
#topBar, #sidebar, #nav, .onegpad {
display: none;
}
#topRightNavContainer, .sng-title, #todayButton\:0, .lv-datecell, .lv-time, .lv-header a {
font-size: 80%;
}
.lv-time {
padding-right: 0px;
dojo.declare('dojo.dnd.move.parentConstrainedGridMoveable', dojo.dnd.move.parentConstrainedMoveable, {
gridSize: 10,
/*
* @param {HTMLElement} node
* @param {int} params.gridSize
*/
constructor: function(node, params){
if(!params) params = {};
@tlync
tlync / init-firefox.el
Created April 1, 2011 07:15
init-firefox.el
(autoload 'moz-minor-mode "moz" "Mozilla Minor and Inferior Mozilla Modes" t)
(defvar moz-enable-auto-reload t)
(defvar moz-scroll-ratio "60")
(defvar moz-scroll-time "60")
(defun moz-send-line (str)
(interactive)
(comint-send-string (inferior-moz-process)
(concat moz-repl-name ".pushenv('printPrompt', 'inputMode'); "
-- Things to Pomodoro App for iPad
-- This script asks Things for the currently selected todos
-- and generates a Pomodoro App for iPad compatible JSON file
-- for you to import in to the app (using Dropbox)
--
-- Created by Thomas on 2011-02-17
-- Inspired by Andreas on 2011-02-17
--
-- OmniFocus (or many other apps) to Pomodoro App for iPad
-- This script practically takes text that's on your clipboard
-- and generates a Pomodoro App for iPad compatible JSON file
-- to import into the app. (using Dropbox)
--
-- I'm using it with OmniFocus, where copied tasks remain
-- on the clipboard as lines of text, basically.
--
-- Created by Andreas on 2011-02-17
-- http://www.macosxscreencasts.com
@tlync
tlync / js-beautify.el
Created May 11, 2011 08:33 — forked from slackorama/js-beautify.el
beautify some js code in emacs
;;; js-beautify.el -- beautify some js code
(defgroup js-beautify nil
"Use jsbeautify to beautify some js"
:group 'editing)
(defcustom js-beautify-args "--jslint-happy --brace-style=end-expand --keep-array-indentation"
"Arguments to pass to jsbeautify script"
:type '(string)
:group 'js-beautify)
;;; js-beautify.el -- beautify some js code
(defgroup js-beautify nil
"Use jsbeautify to beautify some js"
:group 'editing)
(defcustom js-beautify-args "--jslint-happy --brace-style=end-expand --keep-array-indentation"
"Arguments to pass to jsbeautify script"
:type '(string)
:group 'js-beautify)