Skip to content

Instantly share code, notes, and snippets.

;;; mode-compile.el --- compile files according to major-mode
;; Copyright (C) 1994-2006 Heddy Boubaker
;; Author: Heddy Boubaker <heddy.Boubaker@cena.fr>
;; Maintainer: wanted
;; Created: 1994
;; Version: 2.29.1
;; Keywords: compile, compilation, modes, languages
@yaa
yaa / .cvimrc
Last active September 23, 2017 11:29
cvimrc
"set nohud
set autohidecursor
"set noinsertmappings
set nosmoothscroll
"let blacklists = ["https://mail.google.com/*"]
let mapleader = ","
"let locale = "jp"
let hintcharacters = "ifjklasdhguonmerwc"
let barposition = "bottom"
set autoupdategist
# -----------------------------------------------------------------------------
# $Id: Notify.pm 39192 2012-10-13 17:57:18Z topia $
# -----------------------------------------------------------------------------
package Auto::Notify;
use strict;
use warnings;
use base qw(Module);
use Module::Use qw(Auto::AliasDB Tools::HTTPClient Auto::Utils);
use Auto::AliasDB;
use Tools::HTTPClient; # >= r11345
@yaa
yaa / QB.js
Last active December 17, 2015 22:48 — forked from anekos/QB.js
/* NEW BSD LICENSE {{{
Copyright (c) 2011-2012, anekos.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
時刻: 2013/04/05 12:40:46
エラー: TypeError: can't access dead object
ソースファイル: chrome://liberator/content/liberator-overlay.js -> liberator://template/chrome://liberator/content/hints.js
行: 235
yaa[1101]% sort --version
sort (GNU coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and Paul Eggert.
yaa[1101]% echo -e "C\nB\nA\nc\nb\na" | LANG=en_US.UTF-8 sort
A
function duplicateCheck(gid) {
var cache = {};
var inputs = $$('input.unique'+gid);
for (var i=0, l=inputs.length; i<l; i++) {
if (cache[inputs[i].value]) {
alert('duplicate!');
return false;
} else {
cache[inputs[i].value] = 1;
}
(function(){var count=0;subs.model.list.forEach(function(s){var r=subs_item(s.subscribe_id).rate;if(r>1){set_rate(s.subscribe_id, r-1);count++}});alert(count+" feeds changed")})();