This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_current_price_list(pl_type = "liquor", t = Time.now) | |
if price_level_override > 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_current_price_list(pl_type = "liquor", t = Time.now) | |
if price_level_override > 0 | |
return PriceList.send(pl_type).find_by_code(price_level_override) | |
else | |
count = 1 | |
count += t.wday * 24 * 4 | |
count += t.hour * 4 | |
count += t.min / 15 | |
count | |
Schedule.where({:virtual_bar_id => id, :time_pointer => count}).first.price_list(pl_type) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* $Id: evtest.c,v 1.23 2005/02/06 13:51:42 vojtech Exp $ | |
* | |
* Copyright (c) 1999-2000 Vojtech Pavlik | |
* | |
* Event device test program | |
*/ | |
/* | |
* This program is free software; you can redistribute it and/or modify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Pathogen Section | |
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
" /Pathogen | |
" Vundle | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Pathogen Section | |
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
" /Pathogen | |
" Vundle | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from mega import Mega | |
import argparse | |
parser = argparse.ArgumentParser(description='Mega.py download utility') | |
parser.add_argument('-i', '--input-file', action='store', dest='input_file', help="get urls from input file") | |
parser.add_argument('urls', action='store', nargs='*', help='an url from mega.co.nz to be downloaded') | |
args = parser.parse_args() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jd.plugins.hoster; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.UnsupportedEncodingException; | |
import java.nio.ByteBuffer; | |
import java.security.InvalidAlgorithmParameterException; | |
import java.security.InvalidKeyException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execve("/opt/bin/mediatomb", ["mediatomb"], [/* 11 vars */]) = 0 | |
brk(0) = 0x181cdc | |
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) | |
open("/opt/lib/v5b/fast-mult/half/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) | |
stat64("/opt/lib/v5b/fast-mult/half", 0xbffff2a0) = -1 ENOENT (No such file or directory) | |
open("/opt/lib/v5b/fast-mult/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) | |
stat64("/opt/lib/v5b/fast-mult", 0xbffff2a0) = -1 ENOENT (No such file or directory) | |
open("/opt/lib/v5b/fast-librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) | |
stat64("/opt/lib/v5b/fast", 0xbffff2a0) = -1 ENOENT (No such file or directory) | |
open("/opt/lib/halflibrt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execve("/opt/bin/mediatomb", ["mediatomb"], [/* 11 vars */]) = 0 | |
brk(0) = 0x181cdc | |
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) | |
open("/opt/lib/v5b/fast-mult/half/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) | |
stat64("/opt/lib/v5b/fast-mult/half", 0xbffff2a0) = -1 ENOENT (No such file or directory) | |
open("/opt/lib/v5b/fast-mult/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) | |
stat64("/opt/lib/v5b/fast-mult", 0xbffff2a0) = -1 ENOENT (No such file or directory) | |
open("/opt/lib/v5b/fast-librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) | |
stat64("/opt/lib/v5b/fast", 0xbffff2a0) = -1 ENOENT (No such file or directory) | |
open("/opt/lib/halflibrt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.Blog = | |
Models: {} | |
Collections: {} | |
Views: {} | |
Routers: {} | |
init: -> | |
console.log(Blog.Routers.Posts) | |
new Blog.Routers.Posts() | |
Backbone.history.start() |