Skip to content

Instantly share code, notes, and snippets.

View freddiefujiwara's full-sized avatar

Fumikazu Fujiwara | Freddie freddiefujiwara

View GitHub Profile
(function(){
var total = 0;
var year = (new Date()).getFullYear();
function init(num) {
num = (typeof num !== 'number' ? 0 : num);
if(num === 0) {
$('<div/>').css({
position: 'fixed',
left: 0,
top: 0,
@freddiefujiwara
freddiefujiwara / get_barcode_from_image.js
Created August 28, 2011 07:33 — forked from tobitailor/get_barcode_from_image.js
Barcode recognition with JavaScript - Demo: http://bit.ly/djvUoy
/*
* Copyright (c) 2010 Tobias Schneider
* This script is freely distributable under the terms of the MIT license.
*/
(function(){
var UPC_SET = {
"3211": '0',
"2221": '1',
"2122": '2',
let s:commands = system('ditz --commands')
function! s:DitzComplete(cur, all, pos)
let args = split(strpart(a:all, 0, a:pos), ' ', 1)
if len(args) <= 2
return s:commands
elseif index(split(s:commands), args[1]) != -1
return system('ditz '.args[1].' "<options>"')
else