code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
/** * Anonymous class */ class A { a: any; constructor(a: number) { this.a = a; } } /** * Named class */ class B { a: any; b: any; constructor(a, b) { this.a = a; this.b = b; } } /** * Named class extension */ class C extends A { b: any; constructor(a, b) { super(a); this.b = b; } } /** * Anonymous class extension */ class D extends B { c: any; constructor(a, b, c) { super(a, b); this.c = c; } } /** * goog.defineClass based classes */ class E extends C { constructor(a, b) { super(a, b); } } let nested = {}; nested.klass = class {}; class F { // inline comment /** * block comment */ constructor() {} } class G { /** * ES6 method short hand. */ method() {} }
rehmsen/clutz
src/test/java/com/google/javascript/gents/singleTests/classes.ts
TypeScript
mit
766
/* * measured-elasticsearch * * Copyright (c) 2015 Maximilian Antoni <mail@maxantoni.de> * * @license MIT */ 'use strict'; exports.index = 'metrics-1970.01'; exports.timestamp = '1970-01-01T00:00:00.000Z'; function header(type) { return { index : { _type : type} }; } exports.headerCounter = header('counter'); exports.headerTimer = header('timer'); exports.headerMeter = header('meter'); exports.headerHistogram = header('histogram'); exports.headerGauge = header('gauge');
mantoni/measured-elasticsearch.js
test/fixture/defaults.js
JavaScript
mit
510
/** * University of Campinas - Brazil * Institute of Computing * SED group * * date: February 2009 * */ package br.unicamp.ic.sed.mobilemedia.copyphoto.impl; import javax.microedition.lcdui.Command; import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Displayable; import javax.microedition.midlet.MIDlet; import br.unicamp.ic.sed.mobilemedia.copyphoto.spec.prov.IManager; import br.unicamp.ic.sed.mobilemedia.copyphoto.spec.req.IFilesystem; import br.unicamp.ic.sed.mobilemedia.main.spec.dt.IImageData; import br.unicamp.ic.sed.mobilemedia.photo.spec.prov.IPhoto; /** * TODO This whole class must be aspectized */ class PhotoViewController extends AbstractController { private AddPhotoToAlbum addPhotoToAlbum; private static final Command backCommand = new Command("Back", Command.BACK, 0); private Displayable lastScreen = null; private void setAddPhotoToAlbum(AddPhotoToAlbum addPhotoToAlbum) { this.addPhotoToAlbum = addPhotoToAlbum; } String imageName = ""; public PhotoViewController(MIDlet midlet, String imageName) { super( midlet ); this.imageName = imageName; } private AddPhotoToAlbum getAddPhotoToAlbum() { if( this.addPhotoToAlbum == null) this.addPhotoToAlbum = new AddPhotoToAlbum("Copy Photo to Album"); return addPhotoToAlbum; } /* (non-Javadoc) * @see ubc.midp.mobilephoto.core.ui.controller.ControllerInterface#handleCommand(javax.microedition.lcdui.Command, javax.microedition.lcdui.Displayable) */ public boolean handleCommand(Command c) { String label = c.getLabel(); System.out.println( "<*"+this.getClass().getName()+".handleCommand() *> " + label); /** Case: Copy photo to a different album */ if (label.equals("Copy")) { this.initCopyPhotoToAlbum( ); return true; } /** Case: Save a copy in a new album */ else if (label.equals("Save Photo")) { return this.savePhoto(); /* IManager manager = ComponentFactory.createInstance(); IPhoto photo = (IPhoto) manager.getRequiredInterface("IPhoto"); return photo.postCommand( listImagesCommand ); */ }else if( label.equals("Cancel")){ if( lastScreen != null ){ MIDlet midlet = this.getMidlet(); Display.getDisplay( midlet ).setCurrent( lastScreen ); return true; } } return false; } private void initCopyPhotoToAlbum() { String title = new String("Copy Photo to Album"); String labelPhotoPath = new String("Copy to Album:"); AddPhotoToAlbum addPhotoToAlbum = new AddPhotoToAlbum( title ); addPhotoToAlbum.setPhotoName( imageName ); addPhotoToAlbum.setLabelPhotoPath( labelPhotoPath ); this.setAddPhotoToAlbum( addPhotoToAlbum ); //Get all required interfaces for this method MIDlet midlet = this.getMidlet(); //addPhotoToAlbum.setCommandListener( this ); lastScreen = Display.getDisplay( midlet ).getCurrent(); Display.getDisplay( midlet ).setCurrent( addPhotoToAlbum ); addPhotoToAlbum.setCommandListener(this); } private boolean savePhoto() { System.out.println("[PhotoViewController:savePhoto()]"); IManager manager = ComponentFactory.createInstance(); IImageData imageData = null; IFilesystem filesystem = (IFilesystem) manager.getRequiredInterface("IFilesystem"); System.out.println("[PhotoViewController:savePhoto()] filesystem="+filesystem); imageData = filesystem.getImageInfo(imageName); AddPhotoToAlbum addPhotoToAlbum = this.getAddPhotoToAlbum(); String photoName = addPhotoToAlbum.getPhotoName(); String albumName = addPhotoToAlbum.getPath(); filesystem.addImageData(photoName, imageData, albumName); if( lastScreen != null ){ MIDlet midlet = this.getMidlet(); Display.getDisplay( midlet ).setCurrent( lastScreen ); } return true; } }
leotizzei/MobileMedia-Cosmos-VP-v6
src/br/unicamp/ic/sed/mobilemedia/copyphoto/impl/PhotoViewController.java
Java
mit
3,765
// generated by jwg -output misc/fixture/j/model_json.go misc/fixture/j; DO NOT EDIT package j import ( "encoding/json" ) // FooJSON is jsonized struct for Foo. type FooJSON struct { Tmp *Temp `json:"tmp,omitempty"` Bar `json:",omitempty"` *Buzz `json:",omitempty"` HogeJSON `json:",omitempty"` *FugaJSON `json:",omitempty"` } // FooJSONList is synonym about []*FooJSON. type FooJSONList []*FooJSON // FooPropertyEncoder is property encoder for [1]sJSON. type FooPropertyEncoder func(src *Foo, dest *FooJSON) error // FooPropertyDecoder is property decoder for [1]sJSON. type FooPropertyDecoder func(src *FooJSON, dest *Foo) error // FooPropertyInfo stores property information. type FooPropertyInfo struct { fieldName string jsonName string Encoder FooPropertyEncoder Decoder FooPropertyDecoder } // FieldName returns struct field name of property. func (info *FooPropertyInfo) FieldName() string { return info.fieldName } // JSONName returns json field name of property. func (info *FooPropertyInfo) JSONName() string { return info.jsonName } // FooJSONBuilder convert between Foo to FooJSON mutually. type FooJSONBuilder struct { _properties map[string]*FooPropertyInfo _jsonPropertyMap map[string]*FooPropertyInfo _structPropertyMap map[string]*FooPropertyInfo Tmp *FooPropertyInfo Bar *FooPropertyInfo Buzz *FooPropertyInfo Hoge *FooPropertyInfo Fuga *FooPropertyInfo } // NewFooJSONBuilder make new FooJSONBuilder. func NewFooJSONBuilder() *FooJSONBuilder { jb := &FooJSONBuilder{ _properties: map[string]*FooPropertyInfo{}, _jsonPropertyMap: map[string]*FooPropertyInfo{}, _structPropertyMap: map[string]*FooPropertyInfo{}, Tmp: &FooPropertyInfo{ fieldName: "Tmp", jsonName: "tmp", Encoder: func(src *Foo, dest *FooJSON) error { if src == nil { return nil } dest.Tmp = src.Tmp return nil }, Decoder: func(src *FooJSON, dest *Foo) error { if src == nil { return nil } dest.Tmp = src.Tmp return nil }, }, Bar: &FooPropertyInfo{ fieldName: "Bar", jsonName: "", Encoder: func(src *Foo, dest *FooJSON) error { if src == nil { return nil } dest.Bar = src.Bar return nil }, Decoder: func(src *FooJSON, dest *Foo) error { if src == nil { return nil } dest.Bar = src.Bar return nil }, }, Buzz: &FooPropertyInfo{ fieldName: "Buzz", jsonName: "", Encoder: func(src *Foo, dest *FooJSON) error { if src == nil { return nil } dest.Buzz = src.Buzz return nil }, Decoder: func(src *FooJSON, dest *Foo) error { if src == nil { return nil } dest.Buzz = src.Buzz return nil }, }, Hoge: &FooPropertyInfo{ fieldName: "Hoge", jsonName: "", Encoder: func(src *Foo, dest *FooJSON) error { if src == nil { return nil } d, err := NewHogeJSONBuilder().AddAll().Convert(&src.Hoge) if err != nil { return err } dest.HogeJSON = *d return nil }, Decoder: func(src *FooJSON, dest *Foo) error { if src == nil { return nil } d, err := src.HogeJSON.Convert() if err != nil { return err } dest.Hoge = *d return nil }, }, Fuga: &FooPropertyInfo{ fieldName: "Fuga", jsonName: "", Encoder: func(src *Foo, dest *FooJSON) error { if src == nil { return nil } else if src.Fuga == nil { return nil } d, err := NewFugaJSONBuilder().AddAll().Convert(src.Fuga) if err != nil { return err } dest.FugaJSON = d return nil }, Decoder: func(src *FooJSON, dest *Foo) error { if src == nil { return nil } else if src.FugaJSON == nil { return nil } d, err := src.FugaJSON.Convert() if err != nil { return err } dest.Fuga = d return nil }, }, } jb._structPropertyMap["Tmp"] = jb.Tmp jb._jsonPropertyMap["tmp"] = jb.Tmp jb._structPropertyMap["Bar"] = jb.Bar jb._jsonPropertyMap[""] = jb.Bar jb._structPropertyMap["Buzz"] = jb.Buzz jb._jsonPropertyMap[""] = jb.Buzz jb._structPropertyMap["Hoge"] = jb.Hoge jb._jsonPropertyMap[""] = jb.Hoge jb._structPropertyMap["Fuga"] = jb.Fuga jb._jsonPropertyMap[""] = jb.Fuga return jb } // Properties returns all properties on FooJSONBuilder. func (b *FooJSONBuilder) Properties() []*FooPropertyInfo { return []*FooPropertyInfo{ b.Tmp, b.Bar, b.Buzz, b.Hoge, b.Fuga, } } // AddAll adds all property to FooJSONBuilder. func (b *FooJSONBuilder) AddAll() *FooJSONBuilder { b._properties["Tmp"] = b.Tmp b._properties["Bar"] = b.Bar b._properties["Buzz"] = b.Buzz b._properties["Hoge"] = b.Hoge b._properties["Fuga"] = b.Fuga return b } // Add specified property to FooJSONBuilder. func (b *FooJSONBuilder) Add(info *FooPropertyInfo) *FooJSONBuilder { b._properties[info.fieldName] = info return b } // AddByJSONNames add properties to FooJSONBuilder by JSON property name. if name is not in the builder, it will ignore. func (b *FooJSONBuilder) AddByJSONNames(names ...string) *FooJSONBuilder { for _, name := range names { info := b._jsonPropertyMap[name] if info == nil { continue } b._properties[info.fieldName] = info } return b } // AddByNames add properties to FooJSONBuilder by struct property name. if name is not in the builder, it will ignore. func (b *FooJSONBuilder) AddByNames(names ...string) *FooJSONBuilder { for _, name := range names { info := b._structPropertyMap[name] if info == nil { continue } b._properties[info.fieldName] = info } return b } // Remove specified property to FooJSONBuilder. func (b *FooJSONBuilder) Remove(info *FooPropertyInfo) *FooJSONBuilder { delete(b._properties, info.fieldName) return b } // RemoveByJSONNames remove properties to FooJSONBuilder by JSON property name. if name is not in the builder, it will ignore. func (b *FooJSONBuilder) RemoveByJSONNames(names ...string) *FooJSONBuilder { for _, name := range names { info := b._jsonPropertyMap[name] if info == nil { continue } delete(b._properties, info.fieldName) } return b } // RemoveByNames remove properties to FooJSONBuilder by struct property name. if name is not in the builder, it will ignore. func (b *FooJSONBuilder) RemoveByNames(names ...string) *FooJSONBuilder { for _, name := range names { info := b._structPropertyMap[name] if info == nil { continue } delete(b._properties, info.fieldName) } return b } // Convert specified non-JSON object to JSON object. func (b *FooJSONBuilder) Convert(orig *Foo) (*FooJSON, error) { if orig == nil { return nil, nil } ret := &FooJSON{} for _, info := range b._properties { if err := info.Encoder(orig, ret); err != nil { return nil, err } } return ret, nil } // ConvertList specified non-JSON slice to JSONList. func (b *FooJSONBuilder) ConvertList(orig []*Foo) (FooJSONList, error) { if orig == nil { return nil, nil } list := make(FooJSONList, len(orig)) for idx, or := range orig { json, err := b.Convert(or) if err != nil { return nil, err } list[idx] = json } return list, nil } // Convert specified JSON object to non-JSON object. func (orig *FooJSON) Convert() (*Foo, error) { ret := &Foo{} b := NewFooJSONBuilder().AddAll() for _, info := range b._properties { if err := info.Decoder(orig, ret); err != nil { return nil, err } } return ret, nil } // Convert specified JSONList to non-JSON slice. func (jsonList FooJSONList) Convert() ([]*Foo, error) { orig := ([]*FooJSON)(jsonList) list := make([]*Foo, len(orig)) for idx, or := range orig { obj, err := or.Convert() if err != nil { return nil, err } list[idx] = obj } return list, nil } // Marshal non-JSON object to JSON string. func (b *FooJSONBuilder) Marshal(orig *Foo) ([]byte, error) { ret, err := b.Convert(orig) if err != nil { return nil, err } return json.Marshal(ret) } // HogeJSON is jsonized struct for Hoge. type HogeJSON struct { Hoge1 string `json:"hoge1,omitempty"` } // HogeJSONList is synonym about []*HogeJSON. type HogeJSONList []*HogeJSON // HogePropertyEncoder is property encoder for [1]sJSON. type HogePropertyEncoder func(src *Hoge, dest *HogeJSON) error // HogePropertyDecoder is property decoder for [1]sJSON. type HogePropertyDecoder func(src *HogeJSON, dest *Hoge) error // HogePropertyInfo stores property information. type HogePropertyInfo struct { fieldName string jsonName string Encoder HogePropertyEncoder Decoder HogePropertyDecoder } // FieldName returns struct field name of property. func (info *HogePropertyInfo) FieldName() string { return info.fieldName } // JSONName returns json field name of property. func (info *HogePropertyInfo) JSONName() string { return info.jsonName } // HogeJSONBuilder convert between Hoge to HogeJSON mutually. type HogeJSONBuilder struct { _properties map[string]*HogePropertyInfo _jsonPropertyMap map[string]*HogePropertyInfo _structPropertyMap map[string]*HogePropertyInfo Hoge1 *HogePropertyInfo } // NewHogeJSONBuilder make new HogeJSONBuilder. func NewHogeJSONBuilder() *HogeJSONBuilder { jb := &HogeJSONBuilder{ _properties: map[string]*HogePropertyInfo{}, _jsonPropertyMap: map[string]*HogePropertyInfo{}, _structPropertyMap: map[string]*HogePropertyInfo{}, Hoge1: &HogePropertyInfo{ fieldName: "Hoge1", jsonName: "hoge1", Encoder: func(src *Hoge, dest *HogeJSON) error { if src == nil { return nil } dest.Hoge1 = src.Hoge1 return nil }, Decoder: func(src *HogeJSON, dest *Hoge) error { if src == nil { return nil } dest.Hoge1 = src.Hoge1 return nil }, }, } jb._structPropertyMap["Hoge1"] = jb.Hoge1 jb._jsonPropertyMap["hoge1"] = jb.Hoge1 return jb } // Properties returns all properties on HogeJSONBuilder. func (b *HogeJSONBuilder) Properties() []*HogePropertyInfo { return []*HogePropertyInfo{ b.Hoge1, } } // AddAll adds all property to HogeJSONBuilder. func (b *HogeJSONBuilder) AddAll() *HogeJSONBuilder { b._properties["Hoge1"] = b.Hoge1 return b } // Add specified property to HogeJSONBuilder. func (b *HogeJSONBuilder) Add(info *HogePropertyInfo) *HogeJSONBuilder { b._properties[info.fieldName] = info return b } // AddByJSONNames add properties to HogeJSONBuilder by JSON property name. if name is not in the builder, it will ignore. func (b *HogeJSONBuilder) AddByJSONNames(names ...string) *HogeJSONBuilder { for _, name := range names { info := b._jsonPropertyMap[name] if info == nil { continue } b._properties[info.fieldName] = info } return b } // AddByNames add properties to HogeJSONBuilder by struct property name. if name is not in the builder, it will ignore. func (b *HogeJSONBuilder) AddByNames(names ...string) *HogeJSONBuilder { for _, name := range names { info := b._structPropertyMap[name] if info == nil { continue } b._properties[info.fieldName] = info } return b } // Remove specified property to HogeJSONBuilder. func (b *HogeJSONBuilder) Remove(info *HogePropertyInfo) *HogeJSONBuilder { delete(b._properties, info.fieldName) return b } // RemoveByJSONNames remove properties to HogeJSONBuilder by JSON property name. if name is not in the builder, it will ignore. func (b *HogeJSONBuilder) RemoveByJSONNames(names ...string) *HogeJSONBuilder { for _, name := range names { info := b._jsonPropertyMap[name] if info == nil { continue } delete(b._properties, info.fieldName) } return b } // RemoveByNames remove properties to HogeJSONBuilder by struct property name. if name is not in the builder, it will ignore. func (b *HogeJSONBuilder) RemoveByNames(names ...string) *HogeJSONBuilder { for _, name := range names { info := b._structPropertyMap[name] if info == nil { continue } delete(b._properties, info.fieldName) } return b } // Convert specified non-JSON object to JSON object. func (b *HogeJSONBuilder) Convert(orig *Hoge) (*HogeJSON, error) { if orig == nil { return nil, nil } ret := &HogeJSON{} for _, info := range b._properties { if err := info.Encoder(orig, ret); err != nil { return nil, err } } return ret, nil } // ConvertList specified non-JSON slice to JSONList. func (b *HogeJSONBuilder) ConvertList(orig []*Hoge) (HogeJSONList, error) { if orig == nil { return nil, nil } list := make(HogeJSONList, len(orig)) for idx, or := range orig { json, err := b.Convert(or) if err != nil { return nil, err } list[idx] = json } return list, nil } // Convert specified JSON object to non-JSON object. func (orig *HogeJSON) Convert() (*Hoge, error) { ret := &Hoge{} b := NewHogeJSONBuilder().AddAll() for _, info := range b._properties { if err := info.Decoder(orig, ret); err != nil { return nil, err } } return ret, nil } // Convert specified JSONList to non-JSON slice. func (jsonList HogeJSONList) Convert() ([]*Hoge, error) { orig := ([]*HogeJSON)(jsonList) list := make([]*Hoge, len(orig)) for idx, or := range orig { obj, err := or.Convert() if err != nil { return nil, err } list[idx] = obj } return list, nil } // Marshal non-JSON object to JSON string. func (b *HogeJSONBuilder) Marshal(orig *Hoge) ([]byte, error) { ret, err := b.Convert(orig) if err != nil { return nil, err } return json.Marshal(ret) } // FugaJSON is jsonized struct for Fuga. type FugaJSON struct { Fuga1 string `json:"fuga1,omitempty"` } // FugaJSONList is synonym about []*FugaJSON. type FugaJSONList []*FugaJSON // FugaPropertyEncoder is property encoder for [1]sJSON. type FugaPropertyEncoder func(src *Fuga, dest *FugaJSON) error // FugaPropertyDecoder is property decoder for [1]sJSON. type FugaPropertyDecoder func(src *FugaJSON, dest *Fuga) error // FugaPropertyInfo stores property information. type FugaPropertyInfo struct { fieldName string jsonName string Encoder FugaPropertyEncoder Decoder FugaPropertyDecoder } // FieldName returns struct field name of property. func (info *FugaPropertyInfo) FieldName() string { return info.fieldName } // JSONName returns json field name of property. func (info *FugaPropertyInfo) JSONName() string { return info.jsonName } // FugaJSONBuilder convert between Fuga to FugaJSON mutually. type FugaJSONBuilder struct { _properties map[string]*FugaPropertyInfo _jsonPropertyMap map[string]*FugaPropertyInfo _structPropertyMap map[string]*FugaPropertyInfo Fuga1 *FugaPropertyInfo } // NewFugaJSONBuilder make new FugaJSONBuilder. func NewFugaJSONBuilder() *FugaJSONBuilder { jb := &FugaJSONBuilder{ _properties: map[string]*FugaPropertyInfo{}, _jsonPropertyMap: map[string]*FugaPropertyInfo{}, _structPropertyMap: map[string]*FugaPropertyInfo{}, Fuga1: &FugaPropertyInfo{ fieldName: "Fuga1", jsonName: "fuga1", Encoder: func(src *Fuga, dest *FugaJSON) error { if src == nil { return nil } dest.Fuga1 = src.Fuga1 return nil }, Decoder: func(src *FugaJSON, dest *Fuga) error { if src == nil { return nil } dest.Fuga1 = src.Fuga1 return nil }, }, } jb._structPropertyMap["Fuga1"] = jb.Fuga1 jb._jsonPropertyMap["fuga1"] = jb.Fuga1 return jb } // Properties returns all properties on FugaJSONBuilder. func (b *FugaJSONBuilder) Properties() []*FugaPropertyInfo { return []*FugaPropertyInfo{ b.Fuga1, } } // AddAll adds all property to FugaJSONBuilder. func (b *FugaJSONBuilder) AddAll() *FugaJSONBuilder { b._properties["Fuga1"] = b.Fuga1 return b } // Add specified property to FugaJSONBuilder. func (b *FugaJSONBuilder) Add(info *FugaPropertyInfo) *FugaJSONBuilder { b._properties[info.fieldName] = info return b } // AddByJSONNames add properties to FugaJSONBuilder by JSON property name. if name is not in the builder, it will ignore. func (b *FugaJSONBuilder) AddByJSONNames(names ...string) *FugaJSONBuilder { for _, name := range names { info := b._jsonPropertyMap[name] if info == nil { continue } b._properties[info.fieldName] = info } return b } // AddByNames add properties to FugaJSONBuilder by struct property name. if name is not in the builder, it will ignore. func (b *FugaJSONBuilder) AddByNames(names ...string) *FugaJSONBuilder { for _, name := range names { info := b._structPropertyMap[name] if info == nil { continue } b._properties[info.fieldName] = info } return b } // Remove specified property to FugaJSONBuilder. func (b *FugaJSONBuilder) Remove(info *FugaPropertyInfo) *FugaJSONBuilder { delete(b._properties, info.fieldName) return b } // RemoveByJSONNames remove properties to FugaJSONBuilder by JSON property name. if name is not in the builder, it will ignore. func (b *FugaJSONBuilder) RemoveByJSONNames(names ...string) *FugaJSONBuilder { for _, name := range names { info := b._jsonPropertyMap[name] if info == nil { continue } delete(b._properties, info.fieldName) } return b } // RemoveByNames remove properties to FugaJSONBuilder by struct property name. if name is not in the builder, it will ignore. func (b *FugaJSONBuilder) RemoveByNames(names ...string) *FugaJSONBuilder { for _, name := range names { info := b._structPropertyMap[name] if info == nil { continue } delete(b._properties, info.fieldName) } return b } // Convert specified non-JSON object to JSON object. func (b *FugaJSONBuilder) Convert(orig *Fuga) (*FugaJSON, error) { if orig == nil { return nil, nil } ret := &FugaJSON{} for _, info := range b._properties { if err := info.Encoder(orig, ret); err != nil { return nil, err } } return ret, nil } // ConvertList specified non-JSON slice to JSONList. func (b *FugaJSONBuilder) ConvertList(orig []*Fuga) (FugaJSONList, error) { if orig == nil { return nil, nil } list := make(FugaJSONList, len(orig)) for idx, or := range orig { json, err := b.Convert(or) if err != nil { return nil, err } list[idx] = json } return list, nil } // Convert specified JSON object to non-JSON object. func (orig *FugaJSON) Convert() (*Fuga, error) { ret := &Fuga{} b := NewFugaJSONBuilder().AddAll() for _, info := range b._properties { if err := info.Decoder(orig, ret); err != nil { return nil, err } } return ret, nil } // Convert specified JSONList to non-JSON slice. func (jsonList FugaJSONList) Convert() ([]*Fuga, error) { orig := ([]*FugaJSON)(jsonList) list := make([]*Fuga, len(orig)) for idx, or := range orig { obj, err := or.Convert() if err != nil { return nil, err } list[idx] = obj } return list, nil } // Marshal non-JSON object to JSON string. func (b *FugaJSONBuilder) Marshal(orig *Fuga) ([]byte, error) { ret, err := b.Convert(orig) if err != nil { return nil, err } return json.Marshal(ret) }
favclip/jwg
misc/fixture/j/model_json.go
GO
mit
18,918
package station import ( "github.com/moryg/eve_analyst/apiqueue/ratelimit" "github.com/moryg/eve_analyst/database/station" "log" "net/http" ) func (r *request) execute() { ratelimit.Add() res, err := http.Get(r.url) ratelimit.Sub() if err != nil { log.Println("station.execute: " + err.Error()) return } rsp, err := parseResBody(res) if err != nil { log.Println("station.execute parse:" + err.Error()) return } station.Update(r.stationId, rsp.SystemID, rsp.Name) log.Printf("Updated station %d\n", r.stationId) }
alesbolka/eve_analyst
apiqueue/requests/station/execution.go
GO
mit
540
a === b
PiotrDabkowski/pyjsparser
tests/pass/4263e76758123044.js
JavaScript
mit
7
const pug = require("pug"); const pugRuntimeWrap = require("pug-runtime/wrap"); const path = require("path"); const YAML = require("js-yaml"); const getCodeBlock = require("pug-code-block"); const detectIndent = require("detect-indent"); const rebaseIndent = require("rebase-indent"); const pugdocArguments = require("./arguments"); const MIXIN_NAME_REGEX = /^mixin +([-\w]+)?/; const DOC_REGEX = /^\s*\/\/-\s+?\@pugdoc\s*$/; const DOC_STRING = "//- @pugdoc"; const CAPTURE_ALL = "all"; const CAPTURE_SECTION = "section"; const EXAMPLE_BLOCK = "block"; /** * Returns all pugdoc comment and code blocks for the given code * * @param templateSrc {string} * @return {{lineNumber: number, comment: string, code: string}[]} */ function extractPugdocBlocks(templateSrc) { return ( templateSrc .split("\n") // Walk through every line and look for a pugdoc comment .map(function (line, lineIndex) { // If the line does not contain a pugdoc comment skip it if (!line.match(DOC_REGEX)) { return undefined; } // If the line contains a pugdoc comment return // the comment block and the next code block const comment = getCodeBlock.byLine(templateSrc, lineIndex + 1); const meta = parsePugdocComment(comment); // add number of captured blocks if (meta.capture <= 0) { return undefined; } let capture = 2; if (meta.capture) { if (meta.capture === CAPTURE_ALL) { capture = Infinity; } else if (meta.capture === CAPTURE_SECTION) { capture = Infinity; } else { capture = meta.capture + 1; } } // get all code blocks let code = getCodeBlock.byLine(templateSrc, lineIndex + 1, capture); // make string if (Array.isArray(code)) { // remove comment code.shift(); // join all code code = code.join("\n"); } else { return undefined; } // filter out all but current pugdoc section if (meta.capture === CAPTURE_SECTION) { const nextPugDocIndex = code.indexOf(DOC_STRING); if (nextPugDocIndex > -1) { code = code.substr(0, nextPugDocIndex); } } // if no code and no comment, skip if (comment.match(DOC_REGEX) && code === "") { return undefined; } return { lineNumber: lineIndex + 1, comment: comment, code: code, }; }) // Remove skiped lines .filter(function (result) { return result !== undefined; }) ); } /** * Returns all pugdocDocuments for the given code * * @param templateSrc {string} * @param filename {string} */ function getPugdocDocuments(templateSrc, filename, locals) { return extractPugdocBlocks(templateSrc).map(function (pugdocBlock) { const meta = parsePugdocComment(pugdocBlock.comment); const fragments = []; // parse jsdoc style arguments list if (meta.arguments) { meta.arguments = meta.arguments.map(function (arg) { return pugdocArguments.parse(arg, true); }); } // parse jsdoc style attributes list if (meta.attributes) { meta.attributes = meta.attributes.map(function (arg) { return pugdocArguments.parse(arg, true); }); } let source = pugdocBlock.code; source = source.replace(/\u2028|\u200B/g, ""); if (meta.example && meta.example !== false) { if (meta.beforeEach) { meta.example = `${meta.beforeEach}\n${meta.example}`; } if (meta.afterEach) { meta.example = `${meta.example}\n${meta.afterEach}`; } } // get example objects and add them to parent example // also return them as separate pugdoc blocks if (meta.examples) { for (let i = 0, l = meta.examples.length; i < l; ++i) { let x = meta.examples[i]; // do nothing for simple examples if (typeof x === "string") { if (meta.beforeEach) { meta.examples[i] = `${meta.beforeEach}\n${x}`; } if (meta.afterEach) { meta.examples[i] = `${x}\n${meta.afterEach}`; } continue; } if (meta.beforeEach && typeof x.beforeEach === "undefined") { x.example = `${meta.beforeEach}\n${x.example}`; } if (meta.afterEach && typeof x.afterEach === "undefined") { x.example = `${x.example}\n${meta.afterEach}`; } // merge example/examples with parent examples meta.examples[i] = getExamples(x).reduce( (acc, val) => acc.concat(val), [] ); // add fragments fragments.push(x); } meta.examples = meta.examples.reduce((acc, val) => acc.concat(val), []); } // fix pug compilation for boolean use of example const exampleClone = meta.example; if (typeof meta.example === "boolean") { meta.example = ""; } const obj = { // get meta meta: meta, // add file path file: path.relative(".", filename), // get pug code block matching the comments indent source: source, // get html output output: compilePug(source, meta, filename, locals), }; // remove output if example = false if (exampleClone === false) { obj.output = null; } // add fragments if (fragments && fragments.length) { obj.fragments = fragments.map((subexample) => { return { // get meta meta: subexample, // get html output output: compilePug(source, subexample, filename, locals), }; }); } if (obj.output || obj.fragments) { return obj; } return null; }); } /** * Extract pug attributes from comment block */ function parsePugdocComment(comment) { // remove first line (@pugdoc) if (comment.indexOf("\n") === -1) { return {}; } comment = comment.substr(comment.indexOf("\n")); comment = pugdocArguments.escapeArgumentsYAML(comment, "arguments"); comment = pugdocArguments.escapeArgumentsYAML(comment, "attributes"); // parse YAML return YAML.safeLoad(comment) || {}; } /** * get all examples from the meta object * either one or both of meta.example and meta.examples can be given */ function getExamples(meta) { let examples = []; if (meta.example) { examples = examples.concat(meta.example); } if (meta.examples) { examples = examples.concat(meta.examples); } return examples; } /** * Compile Pug */ function compilePug(src, meta, filename, locals) { let newSrc = [src]; // add example calls getExamples(meta).forEach(function (example, i) { // append to pug if it's a mixin example if (MIXIN_NAME_REGEX.test(src)) { newSrc.push(example); // replace example block with src } else { if (i === 0) { newSrc = []; } const lines = example.split("\n"); lines.forEach(function (line) { if (line.trim() === EXAMPLE_BLOCK) { const indent = detectIndent(line).indent.length; line = rebaseIndent(src.split("\n"), indent).join("\n"); } newSrc.push(line); }); } }); newSrc = newSrc.join("\n"); locals = Object.assign({}, locals, meta.locals); // compile pug const compiled = pug.compileClient(newSrc, { name: "tmp", externalRuntime: true, filename: filename, }); try { const templateFunc = pugRuntimeWrap(compiled, "tmp"); return templateFunc(locals || {}); } catch (err) { try { const compiledDebug = pug.compileClient(newSrc, { name: "tmp", externalRuntime: true, filename: filename, compileDebug: true, }); const templateFuncDebug = pugRuntimeWrap(compiledDebug, "tmp"); templateFuncDebug(locals || {}); } catch (debugErr) { process.stderr.write( `\n\nPug-doc error: ${JSON.stringify(meta, null, 2)}` ); process.stderr.write(`\n\n${debugErr.toString()}`); return null; } } } // Exports module.exports = { extractPugdocBlocks: extractPugdocBlocks, getPugdocDocuments: getPugdocDocuments, parsePugdocComment: parsePugdocComment, getExamples: getExamples, };
Aratramba/jade-doc
lib/parser.js
JavaScript
mit
8,383
module SimpleForm class FormBuilder < ActionView::Helpers::FormBuilder attr_reader :template, :object_name, :object, :wrapper # When action is create or update, we still should use new and edit ACTIONS = { :create => :new, :update => :edit } extend MapType include SimpleForm::Inputs map_type :text, :to => SimpleForm::Inputs::TextInput map_type :file, :to => SimpleForm::Inputs::FileInput map_type :string, :email, :search, :tel, :url, :to => SimpleForm::Inputs::StringInput map_type :password, :to => SimpleForm::Inputs::PasswordInput map_type :integer, :decimal, :float, :to => SimpleForm::Inputs::NumericInput map_type :range, :to => SimpleForm::Inputs::RangeInput map_type :select, :radio, :check_boxes, :to => SimpleForm::Inputs::CollectionInput map_type :date, :time, :datetime, :to => SimpleForm::Inputs::DateTimeInput map_type :country, :time_zone, :to => SimpleForm::Inputs::PriorityInput map_type :boolean, :to => SimpleForm::Inputs::BooleanInput def self.discovery_cache @discovery_cache ||= {} end def initialize(*) #:nodoc: super @defaults = options[:defaults] @wrapper = SimpleForm.wrapper(options[:wrapper] || :default) end # Basic input helper, combines all components in the stack to generate # input html based on options the user define and some guesses through # database column information. By default a call to input will generate # label + input + hint (when defined) + errors (when exists), and all can # be configured inside a wrapper html. # # == Examples # # # Imagine @user has error "can't be blank" on name # simple_form_for @user do |f| # f.input :name, :hint => 'My hint' # end # # This is the output html (only the input portion, not the form): # # <label class="string required" for="user_name"> # <abbr title="required">*</abbr> Super User Name! # </label> # <input class="string required" id="user_name" maxlength="100" # name="user[name]" size="100" type="text" value="Carlos" /> # <span class="hint">My hint</span> # <span class="error">can't be blank</span> # # Each database type will render a default input, based on some mappings and # heuristic to determine which is the best option. # # You have some options for the input to enable/disable some functions: # # :as => allows you to define the input type you want, for instance you # can use it to generate a text field for a date column. # # :required => defines whether this attribute is required or not. True # by default. # # The fact SimpleForm is built in components allow the interface to be unified. # So, for instance, if you need to disable :hint for a given input, you can pass # :hint => false. The same works for :error, :label and :wrapper. # # Besides the html for any component can be changed. So, if you want to change # the label html you just need to give a hash to :label_html. To configure the # input html, supply :input_html instead and so on. # # == Options # # Some inputs, as datetime, time and select allow you to give extra options, like # prompt and/or include blank. Such options are given in plainly: # # f.input :created_at, :include_blank => true # # == Collection # # When playing with collections (:radio and :select inputs), you have three extra # options: # # :collection => use to determine the collection to generate the radio or select # # :label_method => the method to apply on the array collection to get the label # # :value_method => the method to apply on the array collection to get the value # # == Priority # # Some inputs, as :time_zone and :country accepts a :priority option. If none is # given SimpleForm.time_zone_priority and SimpleForm.country_priority are used respectivelly. # def input(attribute_name, options={}, &block) options = @defaults.deep_merge(options) if @defaults chosen = if name = options[:wrapper] name.respond_to?(:render) ? name : SimpleForm.wrapper(name) else wrapper end chosen.render find_input(attribute_name, options, &block) end alias :attribute :input # Creates a input tag for the given attribute. All the given options # are sent as :input_html. # # == Examples # # simple_form_for @user do |f| # f.input_field :name # end # # This is the output html (only the input portion, not the form): # # <input class="string required" id="user_name" maxlength="100" # name="user[name]" size="100" type="text" value="Carlos" /> # def input_field(attribute_name, options={}) options[:input_html] = options.except(:as, :collection, :label_method, :value_method) SimpleForm::Wrappers::Root.new([:input], :wrapper => false).render find_input(attribute_name, options) end # Helper for dealing with association selects/radios, generating the # collection automatically. It's just a wrapper to input, so all options # supported in input are also supported by association. Some extra options # can also be given: # # == Examples # # simple_form_for @user do |f| # f.association :company # Company.all # end # # f.association :company, :collection => Company.all(:order => 'name') # # Same as using :order option, but overriding collection # # == Block # # When a block is given, association simple behaves as a proxy to # simple_fields_for: # # f.association :company do |c| # c.input :name # c.input :type # end # # From the options above, only :collection can also be supplied. # def association(association, options={}, &block) return simple_fields_for(*[association, options.delete(:collection), options].compact, &block) if block_given? raise ArgumentError, "Association cannot be used in forms not associated with an object" unless @object reflection = find_association_reflection(association) raise "Association #{association.inspect} not found" unless reflection options[:as] ||= :select options[:collection] ||= reflection.klass.all(reflection.options.slice(:conditions, :order)) attribute = case reflection.macro when :belongs_to reflection.options[:foreign_key] || :"#{reflection.name}_id" when :has_one raise ":has_one associations are not supported by f.association" else if options[:as] == :select html_options = options[:input_html] ||= {} html_options[:size] ||= 5 html_options[:multiple] = true unless html_options.key?(:multiple) end # Force the association to be preloaded for performance. if options[:preload] != false && object.respond_to?(association) target = object.send(association) target.to_a if target.respond_to?(:to_a) end :"#{reflection.name.to_s.singularize}_ids" end input(attribute, options.merge(:reflection => reflection)) end # Creates a button: # # form_for @user do |f| # f.button :submit # end # # It just acts as a proxy to method name given. # def button(type, *args, &block) options = args.extract_options! options[:class] = [SimpleForm.button_class, options[:class]].compact args << options if respond_to?("#{type}_button") send("#{type}_button", *args, &block) else send(type, *args, &block) end end # Creates an error tag based on the given attribute, only when the attribute # contains errors. All the given options are sent as :error_html. # # == Examples # # f.error :name # f.error :name, :id => "cool_error" # def error(attribute_name, options={}) options[:error_html] = options.except(:error_tag, :error_prefix, :error_method) column = find_attribute_column(attribute_name) input_type = default_input_type(attribute_name, column, options) wrapper.find(:error). render(SimpleForm::Inputs::Base.new(self, attribute_name, column, input_type, options)) end # Return the error but also considering its name. This is used # when errors for a hidden field need to be shown. # # == Examples # # f.full_error :token #=> <span class="error">Token is invalid</span> # def full_error(attribute_name, options={}) options[:error_prefix] ||= if object.class.respond_to?(:human_attribute_name) object.class.human_attribute_name(attribute_name.to_s) else attribute_name.to_s.humanize end error(attribute_name, options) end # Creates a hint tag for the given attribute. Accepts a symbol indicating # an attribute for I18n lookup or a string. All the given options are sent # as :hint_html. # # == Examples # # f.hint :name # Do I18n lookup # f.hint :name, :id => "cool_hint" # f.hint "Don't forget to accept this" # def hint(attribute_name, options={}) options[:hint_html] = options.except(:hint_tag, :hint) if attribute_name.is_a?(String) options[:hint] = attribute_name attribute_name, column, input_type = nil, nil, nil else column = find_attribute_column(attribute_name) input_type = default_input_type(attribute_name, column, options) end wrapper.find(:hint). render(SimpleForm::Inputs::Base.new(self, attribute_name, column, input_type, options)) end # Creates a default label tag for the given attribute. You can give a label # through the :label option or using i18n. All the given options are sent # as :label_html. # # == Examples # # f.label :name # Do I18n lookup # f.label :name, "Name" # Same behavior as Rails, do not add required tag # f.label :name, :label => "Name" # Same as above, but adds required tag # # f.label :name, :required => false # f.label :name, :id => "cool_label" # def label(attribute_name, *args) return super if args.first.is_a?(String) || block_given? options = args.extract_options! options[:label_html] = options.dup options[:label] = options.delete(:label) options[:required] = options.delete(:required) column = find_attribute_column(attribute_name) input_type = default_input_type(attribute_name, column, options) SimpleForm::Inputs::Base.new(self, attribute_name, column, input_type, options).label end # Creates an error notification message that only appears when the form object # has some error. You can give a specific message with the :message option, # otherwise it will look for a message using I18n. All other options given are # passed straight as html options to the html tag. # # == Examples # # f.error_notification # f.error_notification :message => 'Something went wrong' # f.error_notification :id => 'user_error_message', :class => 'form_error' # def error_notification(options={}) SimpleForm::ErrorNotification.new(self, options).render end # Extract the model names from the object_name mess, ignoring numeric and # explicit child indexes. # # Example: # # route[blocks_attributes][0][blocks_learning_object_attributes][1][foo_attributes] # ["route", "blocks", "blocks_learning_object", "foo"] # def lookup_model_names @lookup_model_names ||= begin child_index = options[:child_index] names = object_name.to_s.scan(/([a-zA-Z_]+)/).flatten names.delete(child_index) if child_index names.each { |name| name.gsub!('_attributes', '') } names.freeze end end # The action to be used in lookup. def lookup_action @lookup_action ||= begin action = template.controller.action_name return unless action action = action.to_sym ACTIONS[action] || action end end private # Find an input based on the attribute name. def find_input(attribute_name, options={}, &block) #:nodoc: column = find_attribute_column(attribute_name) input_type = default_input_type(attribute_name, column, options) if block_given? SimpleForm::Inputs::BlockInput.new(self, attribute_name, column, input_type, options, &block) else find_mapping(input_type).new(self, attribute_name, column, input_type, options) end end # Attempt to guess the better input type given the defined options. By # default alwayls fallback to the user :as option, or to a :select when a # collection is given. def default_input_type(attribute_name, column, options) #:nodoc: return options[:as].to_sym if options[:as] return :select if options[:collection] custom_type = find_custom_type(attribute_name.to_s) and return custom_type input_type = column.try(:type) case input_type when :timestamp :datetime when :string, nil case attribute_name.to_s when /password/ then :password when /time_zone/ then :time_zone when /country/ then :country when /email/ then :email when /phone/ then :tel when /url/ then :url else file_method?(attribute_name) ? :file : (input_type || :string) end else input_type end end def find_custom_type(attribute_name) #:nodoc: SimpleForm.input_mappings.find { |match, type| attribute_name =~ match }.try(:last) if SimpleForm.input_mappings end def file_method?(attribute_name) #:nodoc: file = @object.send(attribute_name) if @object.respond_to?(attribute_name) file && SimpleForm.file_methods.any? { |m| file.respond_to?(m) } end def find_attribute_column(attribute_name) #:nodoc: if @object.respond_to?(:column_for_attribute) @object.column_for_attribute(attribute_name) end end def find_association_reflection(association) #:nodoc: if @object.class.respond_to?(:reflect_on_association) @object.class.reflect_on_association(association) end end # Attempts to find a mapping. It follows the following rules: # # 1) It tries to find a registered mapping, if succeeds: # a) Try to find an alternative with the same name in the Object scope # b) Or use the found mapping # 2) If not, fallbacks to #{input_type}Input # 3) If not, fallbacks to SimpleForm::Inputs::#{input_type}Input def find_mapping(input_type) #:nodoc: discovery_cache[input_type] ||= if mapping = self.class.mappings[input_type] mapping_override(mapping) || mapping else camelized = "#{input_type.to_s.camelize}Input" attempt_mapping(camelized, Object) || attempt_mapping(camelized, self.class) || raise("No input found for #{input_type}") end end # If cache_discovery is enabled, use the class level cache that persists # between requests, otherwise use the instance one. def discovery_cache #:nodoc: if SimpleForm.cache_discovery self.class.discovery_cache else @discovery_cache ||= {} end end def mapping_override(klass) #:nodoc: name = klass.name if name =~ /^SimpleForm::Inputs/ attempt_mapping name.split("::").last, Object end end def attempt_mapping(mapping, at) #:nodoc: return if SimpleForm.inputs_discovery == false && at == Object begin at.const_get(mapping) rescue NameError => e e.message =~ /#{mapping}$/ ? nil : raise end end end end
chandresh/simple_form
lib/simple_form/form_builder.rb
Ruby
mit
16,464
import zmq import datetime import pytz from django.core.management.base import BaseCommand, CommandError from django.conf import settings from registrations.models import Registration from registrations import handlers from registrations import tasks class Command(BaseCommand): def log(self, message): f = open(settings.TASK_LOG_PATH, 'a') now = datetime.datetime.utcnow().replace(tzinfo=pytz.utc) log_message = "%s\t%s\n" % (now, message) self.stdout.write(log_message) f.write(log_message) f.close() def handle(self, *args, **options): context = zmq.Context() pull_socket = context.socket(zmq.PULL) pull_socket.bind('tcp://*:7002') self.log("Registration Worker ZMQ Socket Bound to 7002") while True: try: data = pull_socket.recv_json() task_name = data.pop('task') task_kwargs = data.pop('kwargs') self.log("Got task '%s' with kwargs: %s" % (task_name, task_kwargs)) if hasattr(tasks, task_name): result = getattr(tasks, task_name)(**task_kwargs) self.log("Task '%s' result: %s" % (task_name, result)) else: self.log("Received unknown task: %s", task_name) except Exception, e: self.log("Error: %s" % e) pull_socket.close() context.term()
greencoder/hopefullysunny-django
registrations/management/commands/registration_worker.py
Python
mit
1,481
module.exports.up=function(onSuccess,onFailed){ var dbo=new entity.Base(); dbo.saveToDB("recipe_drink",["recipe_code","drink_code","quantity","description"], [ ["3622","342",9.83,"1/3 shot Southern Comfort "], ["3622","315",9.83,"1/3 shot Grand Marnier "], ["3622","375",9.83,"1/3 shot Amaretto "], ["3622","445",3.7,"1 splash Orange juice "], ["3622","261",3.7,"1 splash Pineapple juice "], ["3622","82",0.9,"1 dash Grenadine "], ["3622","22",3.7,"1 splash 7-Up "], ["4511","333",30,"1 oz white Creme de Cacao "], ["4511","316",30,"1 oz Vodka "], ["1736","479",7.5,"1/4 oz Galliano "], ["1736","480",7.5,"1/4 oz Irish cream "], ["1736","378",7.5,"1/4 oz Scotch "], ["1736","462",7.5,"1/4 oz Tequila "], ["2420","365",15,"1/2 oz Absolut Kurant "], ["2420","315",7.5,"1/4 oz Grand Marnier "], ["2420","54",7.5,"1/4 oz Chambord raspberry liqueur "], ["2420","146",7.5,"1/4 oz Midori melon liqueur "], ["2420","36",7.5,"1/4 oz Malibu rum "], ["2420","375",7.5,"1/4 oz Amaretto "], ["2420","372",15,"1/2 oz Cranberry juice "], ["2420","261",7.5,"1/4 oz Pineapple juice "], ["2434","94",480,"16 oz Lager "], ["2434","462",150,"1.5 oz Tequila "], ["2395","36",15,"1/2 oz Malibu rum "], ["2395","214",15,"1/2 oz Light rum (Bacardi) "], ["2395","85",15,"1/2 oz Bacardi 151 proof rum "], ["2395","487",30,"1 oz Dark Creme de Cacao "], ["2395","359",30,"1 oz Cointreau "], ["2395","259",90,"3 oz Milk "], ["2395","417",30,"1 oz Coconut liqueur "], ["2395","503",257,"1 cup Vanilla ice-cream "], ["3794","115",15,"1/2 oz Goldschlager "], ["3794","108",15,"1/2 oz J�germeister "], ["3794","145",15,"1/2 oz Rumple Minze "], ["3794","85",15,"1/2 oz Bacardi 151 proof rum "], ["4753","365",30,"1 oz Absolut Kurant "], ["4753","312",30,"1 oz Absolut Citron "], ["4753","40",30,"1 oz Sour Apple Pucker "], ["4753","34",30,"1 oz Blue Maui "], ["2366","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["2366","232",14.75,"1/2 shot Wild Turkey, 101 proof "], ["1671","122",10,"1/3 oz Jack Daniels "], ["1671","263",10,"1/3 oz Johnnie Walker "], ["1671","471",10,"1/3 oz Jim Beam "], ["3798","304",15,"1/2 oz Rum "], ["3798","416",15,"1/2 oz Grape juice "], ["3798","316",15,"1/2 oz Vodka "], ["3798","376",15,"1/2 oz Gin "], ["3798","297",15,"1/2 oz Blue Curacao "], ["3798","266",15,"1/2 oz Sour mix "], ["3798","186",15,"1/2 oz Lime juice "], ["3798","404",15,"1/2 oz Grapefruit juice "], ["5334","391",45,"1 1/2 oz Vanilla vodka (Stoli) "], ["5334","376",10,"1/3 oz Gin "], ["5334","213",10,"1/3 oz Triple sec "], ["5334","462",10,"1/3 oz Tequila "], ["5334","132",15,"1/2 oz Cinnamon schnapps (Goldschlager) "], ["5334","445",180,"6 oz pulp-free Orange juice "], ["4476","132",15,"1/2 oz Cinnamon schnapps (Goldschlager) "], ["4476","202",15,"1/2 oz Gold tequila (Cuervo) "], ["5340","309",9.83,"1/3 shot Peach schnapps "], ["5340","265",9.83,"1/3 shot Kahlua "], ["5340","316",9.83,"1/3 shot Vodka (Skyy) "], ["5340","82",3.7,"1 splash Grenadine "], ["2897","261",90,"3 oz Pineapple juice "], ["2897","323",90,"3 oz Sprite "], ["2897","85",30,"1 oz Bacardi 151 proof rum "], ["2897","342",30,"1 oz Southern Comfort "], ["2897","71",30,"1 oz Everclear "], ["3590","376",60,"2 oz dry Gin (Gordon's) "], ["3590","22",120,"4 oz 7-Up "], ["3590","424",2250,"0.75 oz Lemon juice "], ["1836","316",15,"1/2 oz Vodka (Finlandia) "], ["1836","376",15,"1/2 oz Gin (Tanqueray) "], ["1836","335",15,"1/2 oz Spiced rum (Captain Morgan's) "], ["1836","213",15,"1/2 oz Triple sec (Bandolero) "], ["1836","261",45,"1 1/2 oz Pineapple juice "], ["1836","82",15,"1/2 oz Grenadine "], ["1836","323",3.7,"Top with 1 splash Sprite or 7-Up "], ["4904","297",10,"1/3 oz Blue Curacao "], ["4904","358",10,"1/3 oz Ouzo "], ["4904","227",10,"1/3 oz Banana liqueur "], ["3793","108",30,"1 oz J�germeister "], ["3793","115",30,"1 oz Goldschlager "], ["3793","444",30,"1 oz Hot Damn "], ["3793","145",30,"1 oz Rumple Minze "], ["4754","503",120,"4 oz Vanilla ice-cream "], ["4754","316",120,"4 oz Vodka (Popov) "], ["4754","476",60,"2 oz Pepsi Cola "], ["4754","396",60,"2 oz Orange soda "], ["4421","54",22.5,"3/4 oz Chambord raspberry liqueur "], ["4421","487",7.5,"1/4 oz Dark Creme de Cacao "], ["4421","316",30,"1 oz Vodka "], ["4421","259",30,"1 oz Milk "], ["1277","312",60,"2 oz Absolut Citron "], ["1277","166",15,"1/2 oz Orange Curacao "], ["1277","269",3.7,"1 splash Strawberry liqueur "], ["1277","445",30,"1 oz Orange juice "], ["6132","214",22.25,"1/2 jigger Light rum "], ["6132","387",22.25,"1/2 jigger Dark rum "], ["6132","355",240,"8 oz Passion fruit juice "], ["6132","261",120,"4 oz Pineapple juice "], ["6129","146",30,"1 oz Midori melon liqueur "], ["6129","322",15,"1/2 oz Peachtree schnapps "], ["6129","323",150,"5 oz Sprite or 7-Up "], ["2322","368",30,"1 oz Sloe gin "], ["2322","375",30,"1 oz Amaretto "], ["5417","468",30,"1 oz Coconut rum "], ["5417","375",15,"1/2 oz Amaretto "], ["5417","445",120,"4 oz Orange juice "], ["5417","82",15,"1/2 oz Grenadine "], ["3919","316",30,"1 oz Vodka "], ["3919","309",30,"1 oz Peach schnapps "], ["3919","445",90,"3 oz Orange juice "], ["3919","372",90,"3 oz Cranberry juice "], ["5486","265",30,"1 oz Kahlua "], ["5486","375",15,"1/2 oz Amaretto "], ["5486","469",15,"Float 1/2 oz Creme de Almond "], ["2","372",60,"2 oz Cranberry juice "], ["2","443",60,"2 oz Soda water "], ["2","146",150,"0.5 oz Midori melon liqueur "], ["2","10",150,"0.5 oz Creme de Banane "], ["3360","423",45,"1 1/2 oz Applejack "], ["3360","404",30,"1 oz Grapefruit juice "], ["5","387",45,"1 1/2 oz Dark rum "], ["5","14",60,"2 oz Peach nectar "], ["5","445",90,"3 oz Orange juice "], ["5994","376",60,"2 oz Gin "], ["5994","88",15,"1/2 oz Dry Vermouth "], ["5994","245",0.63,"1/8 tsp Absinthe "], ["5000","365",22.5,"3/4 oz Absolut Kurant "], ["5000","146",22.5,"3/4 oz Midori melon liqueur "], ["5000","372",30,"1 oz Cranberry juice "], ["5000","323",3.7,"1 splash Sprite or 7-up "], ["1902","119",45,"1 1/2 oz Absolut Vodka "], ["1902","309",15,"1/2 oz Peach schnapps "], ["1902","417",15,"1/2 oz Coconut liqueur "], ["1902","372",45,"1 1/2 oz Cranberry juice cocktail "], ["1902","261",45,"1 1/2 oz Pineapple juice "], ["2452","182",30,"1 oz Crown Royal "], ["2452","365",15,"1/2 oz Absolut Kurant "], ["2452","309",15,"1/2 oz Peach schnapps "], ["2452","372",3.7,"1 splash Cranberry juice "], ["2452","261",3.7,"1 splash Pineapple juice "], ["1775","119",15,"1/2 oz Absolut Vodka "], ["1775","36",15,"1/2 oz Malibu rum "], ["1775","309",15,"1/2 oz Peach schnapps "], ["1775","445",30,"1 oz Orange juice "], ["1775","261",30,"1 oz Pineapple juice "], ["1775","372",30,"1 oz Cranberry juice "], ["6117","312",20,"2 cl Absolut Citron "], ["6117","269",20,"2 cl Strawberry liqueur (Liviko) "], ["6117","424",40,"4 cl Lemon juice "], ["6117","82",10,"1 cl Grenadine "], ["6117","323",120,"12 cl Sprite "], ["5153","119",30,"1 oz Absolut Vodka "], ["5153","342",30,"1 oz Southern Comfort "], ["5153","462",30,"1 oz Tequila "], ["5153","54",30,"1 oz Chambord raspberry liqueur "], ["5153","213",30,"1 oz Triple sec "], ["5153","261",45,"1 1/2 oz Pineapple juice "], ["5153","372",45,"1 1/2 oz Cranberry juice "], ["5460","316",40,"4 cl Vodka "], ["5460","88",20,"2 cl Dry Vermouth "], ["5460","462",40,"4 cl Tequila "], ["5460","22",30,"3 cl 7-Up "], ["5460","342",20,"2 cl Southern Comfort "], ["3844","445",15,"1/2 oz Orange juice "], ["3844","78",15,"1/2 oz Absolut Mandrin "], ["5540","227",15,"1/2 oz Banana liqueur (99 banana) "], ["5540","153",15,"1/2 oz Watermelon liqueur "], ["5540","316",15,"1/2 oz Vodka (Absolut) "], ["2194","145",7.5,"1/4 oz Rumple Minze "], ["2194","270",7.5,"1/4 oz Bailey's irish cream "], ["2194","114",7.5,"1/4 oz Butterscotch schnapps "], ["2194","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["2194","422",3.7,"1 splash Cream "], ["5936","70",390,"13 oz Snapple Rain "], ["5936","226",210,"7 oz Bacardi Limon "], ["2027","85",30,"1 oz Bacardi 151 proof rum "], ["2027","232",30,"1 oz Wild Turkey, 101 proof "], ["4536","387",60,"2 oz Dark rum "], ["4536","424",30,"1 oz Lemon juice "], ["4536","82",5,"1 tsp Grenadine "], ["4069","265",30,"1 oz Kahlua "], ["4069","462",30,"1 oz Tequila "], ["5611","376",30,"1 oz Gin "], ["5611","214",30,"1 oz Light rum "], ["5611","462",240,"0.8 oz Tequila "], ["5611","316",30,"1 oz Vodka "], ["5611","297",150,"1.5 oz Blue Curacao "], ["5611","211",60,"2 oz Sweet and sour "], ["5611","323",30,"1 oz Sprite "], ["5629","316",30,"1 oz Vodka "], ["5629","376",30,"1 oz Gin "], ["5629","142",30,"1 oz White rum "], ["5629","297",30,"1 oz Blue Curacao "], ["5629","266",180,"6 oz Sour mix "], ["5629","22",180,"6 oz 7-Up "], ["3264","316",15,"1/2 oz Vodka "], ["3264","304",15,"1/2 oz Rum "], ["3264","462",15,"1/2 oz Tequila "], ["3264","376",15,"1/2 oz Gin "], ["3264","297",15,"1/2 oz Blue Curacao "], ["3264","266",60,"2 oz Sour mix "], ["3264","22",60,"2 oz 7-Up "], ["9","383",22.5,"3/4 oz Sweet Vermouth "], ["9","105",45,"1 1/2 oz dry Sherry "], ["9","433",0.9,"1 dash Orange bitters "], ["4731","265",10,"1/3 oz Kahlua "], ["4731","270",10,"1/3 oz Bailey's irish cream "], ["4731","205",10,"1/3 oz White Creme de Menthe "], ["2313","213",30,"1 oz Triple sec "], ["2313","231",30,"1 oz Apricot brandy "], ["2313","424",2.5,"1/2 tsp Lemon juice "], ["4082","316",30,"1 oz Vodka (Absolut) "], ["4082","131",15,"1/2 oz Tabasco sauce "], ["1831","198",14.75,"1/2 shot Aftershock "], ["1831","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["3827","198",30,"1 oz Aftershock "], ["3827","464",30,"1 oz Avalanche Peppermint schnapps "], ["1302","62",30,"1 oz Yukon Jack "], ["1302","471",30,"1 oz Jim Beam "], ["1302","449",30,"1 oz Apple schnapps "], ["1302","316",30,"1 oz Vodka "], ["1302","214",30,"1 oz Light rum "], ["1302","213",30,"1 oz Triple sec "], ["1302","82",15,"1/2 oz Grenadine "], ["1302","445",60,"2 oz Orange juice "], ["3310","381",50,"5 cl Drambuie "], ["3310","36",50,"5 cl Malibu rum "], ["3310","179",50,"5 cl Cherry brandy "], ["3310","2",100,"10 cl Lemonade "], ["2383","378",45,"1 1/2 oz Scotch "], ["2383","265",15,"1/2 oz Kahlua "], ["2383","155",15,"1/2 oz Heavy cream "], ["4837","342",60,"2 oz Southern Comfort "], ["4837","464",30,"1 oz Peppermint schnapps "], ["4837","316",30,"1 oz Vodka "], ["4837","441",240,"8 oz Fruit punch "], ["4837","186",30,"1 oz Lime juice "], ["5192","342",30,"1 oz Southern Comfort "], ["5192","375",30,"1 oz Amaretto "], ["5192","368",15,"1/2 oz Sloe gin "], ["5192","424",0.9,"1 dash Lemon juice "], ["13","85",30,"1 oz 151 proof rum "], ["13","462",30,"1 oz Tequila "], ["13","342",30,"1 oz Southern Comfort "], ["13","464",30,"1 oz Peppermint schnapps "], ["13","392",360,"12 oz Beer "], ["2278","462",45,"1 1/2 oz Tequila "], ["2278","445",30,"1 oz Orange juice "], ["2278","261",15,"1/2 oz Pineapple juice "], ["2278","388",3.7,"1 splash Lemon-lime soda "], ["14","62",14.75,"1/2 shot Yukon Jack "], ["14","375",14.75,"1/2 shot Amaretto "], ["4071","376",60,"2 oz Gin "], ["4071","207",15,"1/2 oz Yellow Chartreuse "], ["4071","433",0.9,"1 dash Orange bitters "], ["5539","316",60,"2 oz Stefanoffs Vodka "], ["5539","59",30,"1 oz Fanta "], ["5539","323",150,"0.5 oz Sprite "], ["5539","100",150,"0.5 oz Kiwi juice , concentrate "], ["2304","376",20,"2 cl Gin "], ["2304","333",20,"2 cl Creme de Cacao "], ["2304","422",20,"2 cl Cream "], ["18","376",45,"1 1/2 oz Gin "], ["18","15",30,"1 oz Green Creme de Menthe "], ["18","155",30,"1 oz Heavy cream "], ["18","20",0.63,"1/8 tsp grated Nutmeg "], ["15","376",60,"2 oz Gin "], ["15","297",15,"1/2 oz Blue Curacao "], ["15","155",15,"1/2 oz Heavy cream "], ["1370","316",15,"1/2 oz Vodka "], ["1370","274",15,"1/2 oz Melon liqueur "], ["1370","221",15,"1/2 oz Raspberry schnapps "], ["1370","297",15,"1/2 oz Blue Curacao "], ["1370","211",60,"2 oz Sweet and sour "], ["1370","22",60,"2 oz 7-Up "], ["21","56",45,"1 1/2 oz Blended whiskey "], ["21","88",30,"1 oz Dry Vermouth "], ["21","261",30,"1 oz Pineapple juice "], ["1002","82",10,"1 cl Grenadine syrup "], ["1002","445",10,"1 cl Orange juice "], ["1002","261",20,"2 cl Pineapple juice "], ["1002","422",40,"4 cl Cream "], ["3130","316",7.5,"1/4 oz Vodka (Absolut) "], ["3130","146",7.5,"1/4 oz Midori melon liqueur "], ["3130","36",7.5,"1/4 oz Malibu rum "], ["3130","261",7.5,"1/4 oz Pineapple juice "], ["5184","375",29.5,"1 shot Amaretto "], ["5184","315",29.5,"1 shot Grand Marnier "], ["5184","342",29.5,"1 shot Southern Comfort "], ["1903","114",15,"1/2 oz Butterscotch schnapps "], ["1903","270",7.5,"1/4 oz Bailey's irish cream "], ["1903","146",7.5,"1/4 oz Midori melon liqueur "], ["4658","249",30,"1 oz Bourbon "], ["4658","342",30,"1 oz Southern Comfort "], ["4658","175",60,"2 oz Coca-Cola "], ["1510","36",15,"1/2 oz Malibu rum "], ["1510","265",15,"1/2 oz Kahlua "], ["1510","316",15,"1/2 oz Vodka "], ["1510","487",15,"1/2 oz Dark Creme de Cacao "], ["1510","261",120,"4 oz Pineapple juice "], ["1510","266",60,"2 oz Sour mix "], ["4176","122",15,"1/2 oz Jack Daniels "], ["4176","368",10,"1/3 oz Sloe gin "], ["4176","274",10,"1/3 oz Melon liqueur "], ["4176","261",10,"1/3 oz Pineapple juice "], ["23","88",30,"1 oz Dry Vermouth "], ["23","376",30,"1 oz Gin "], ["23","360",2.5,"1/2 tsp Kummel "], ["2034","146",10,"1/3 oz Midori melon liqueur "], ["2034","309",10,"1/3 oz Peach schnapps "], ["2034","342",10,"1/3 oz Southern Comfort "], ["2034","375",10,"1/3 oz Amaretto "], ["2034","211",3.7,"1 splash Sweet and sour "], ["2764","375",22.5,"3/4 oz Amaretto "], ["2764","487",15,"1/2 oz Dark Creme de Cacao "], ["2764","482",240,"8 oz Coffee (hot) "], ["5675","475",30,"1 oz Sambuca "], ["5675","375",15,"1/2 oz Amaretto "], ["3348","375",15,"1/2 oz Amaretto "], ["3348","333",15,"1/2 oz white Creme de Cacao "], ["3348","41",60,"2 oz Light cream "], ["4468","365",7.5,"1-1/4 oz Absolut Kurant "], ["4468","375",22.5,"3/4 oz Amaretto "], ["4468","54",22.5,"3/4 oz Chambord raspberry liqueur "], ["4468","261",3.7,"1 splash Pineapple juice "], ["4468","372",3.7,"1 splash Cranberry juice "], ["5215","464",60,"2 oz Peppermint schnapps "], ["5215","323",360,"12 oz Sprite "], ["26","375",45,"1 1/2 oz Amaretto "], ["26","41",45,"1 1/2 oz Light cream "], ["1587","375",45,"1 1/2 oz Amaretto "], ["1587","266",90,"3 oz Sour mix "], ["29","375",45,"1 1/2 oz Amaretto "], ["29","205",22.5,"3/4 oz White Creme de Menthe "], ["2561","375",45,"1 1/2 oz Amaretto "], ["2561","445",120,"4 oz Orange juice "], ["2561","266",120,"4 oz Sour mix "], ["4445","445",120,"4 oz Orange juice "], ["4445","375",29.5,"1 shot Amaretto "], ["4445","82",14.75,"1/2 shot Grenadine "], ["4445","427",128.5,"1/2 cup Ice cubes "], ["4445","424",5,"1 tsp Lemon juice "], ["3204","375",10,"1 cl Amaretto "], ["3204","445",120,"4 oz Orange juice "], ["3204","82",2.5,"1/4 cl Grenadine "], ["2869","450",22.5,"3/4 oz Rye whiskey "], ["2869","375",7.5,"1/4 oz Amaretto "], ["33","192",30,"1 oz Brandy "], ["33","88",15,"1/2 oz Dry Vermouth "], ["33","205",1.25,"1/4 tsp White Creme de Menthe "], ["33","445",30,"1 oz Orange juice "], ["33","82",5,"1 tsp Grenadine "], ["33","451",15,"1/2 oz Tawny port "], ["4422","265",7.5,"1/4 oz Kahlua "], ["4422","375",7.5,"1/4 oz Amaretto "], ["4422","167",7.5,"1/4 oz Frangelico "], ["4422","487",7.5,"1/4 oz Dark Creme de Cacao "], ["1899","387",150,"0.5 oz Dark rum "], ["1899","214",150,"0.5 oz Light rum "], ["1899","261",60,"2 oz Pineapple juice "], ["1899","445",60,"2 oz Orange juice "], ["1899","82",3.7,"1 splash Grenadine "], ["1626","214",15,"1/2 oz Light rum "], ["1626","105",45,"1 1/2 oz dry Sherry "], ["1626","192",15,"1/2 oz Brandy "], ["4816","231",15,"1/2 oz Apricot brandy "], ["4816","448",15,"1/2 oz Apple brandy "], ["4816","376",30,"1 oz Gin "], ["36","333",7.5,"1/4 oz white Creme de Cacao "], ["36","368",7.5,"1/4 oz Sloe gin "], ["36","192",7.5,"1/4 oz Brandy "], ["36","41",7.5,"1/4 oz Light cream "], ["4575","85",60,"2 oz 151 proof rum "], ["4575","179",30,"1 oz Cherry brandy "], ["4575","186",30,"1 oz fresh Lime juice "], ["4575","357",5,"1 tsp Sugar syrup (optional) "], ["2161","32",10,"2 tsp Cherry Kool-Aid "], ["2161","304",60,"2 oz Rum (Bacardi) "], ["2161","199",180,"6 oz Mountain Dew "], ["39","448",30,"1 oz Apple brandy "], ["39","213",15,"1/2 oz Triple sec "], ["39","28",30,"1 oz Dubonnet Rouge "], ["3133","316",60,"2 oz Smirnoff Vodka "], ["3133","459",10,"2 tsp Lemon-lime mix "], ["3133","352",257,"1 cup Water "], ["1895","316",15,"1/2 oz Vodka "], ["1895","297",15,"1/2 oz Blue Curacao "], ["1895","85",15,"1/2 oz Bacardi 151 proof rum "], ["1895","464",15,"1/2 oz Peppermint schnapps "], ["4554","146",60,"2 oz Midori melon liqueur "], ["4554","297",30,"1 oz Blue Curacao "], ["4554","316",15,"1/2 oz Vodka "], ["4554","342",15,"1/2 oz Southern Comfort "], ["4554","375",15,"1/2 oz Amaretto "], ["4554","261",7.5,"1/4 oz Pineapple juice "], ["4554","266",7.5,"1/4 oz Sour mix "], ["4554","404",7.5,"1/4 oz Grapefruit juice "], ["2275","512",45,"1 1/2 oz Dubonnet Blanc "], ["2275","88",45,"1 1/2 oz Dry Vermouth "], ["3898","248",20,"2 cl Aperol "], ["3898","359",20,"2 cl Cointreau "], ["3898","88",20,"2 cl Dry Vermouth "], ["3875","424",20,"2 cl Lemon juice "], ["3875","200",20,"2 cl Rose's sweetened lime juice "], ["3875","445",40,"4 cl Orange juice "], ["3875","248",40,"4 cl Aperol "], ["2960","464",30,"1 oz Peppermint schnapps "], ["2960","316",22.5,"3/4 oz Vodka (Skyy) "], ["2960","265",15,"1/2 oz oz Kahlua "], ["2960","249",15,"1/2 oz Bourbon (Old Grandad) "], ["2960","205",30,"1 oz White Creme de Menthe "], ["2960","342",22.5,"3/4 oz Southern Comfort "], ["2960","310",60,"2 oz Hot chocolate "], ["4992","449",26.25,"7/8 oz Apple schnapps (DeKuyper Apple Barrel) "], ["4992","115",3.75,"1/8 oz Goldschlager "], ["4534","74",10,"1 cl Apfelkorn "], ["4534","316",10,"1 cl Vodka "], ["4534","445",20,"2 cl Orange juice "], ["4534","323",20,"2 cl Sprite or 7-up "], ["42","192",30,"1 oz Brandy "], ["42","461",60,"2 oz Apple juice "], ["42","424",5,"1 tsp Lemon juice "], ["42","316",0.9,"1 dash Vodka "], ["2889","449",44.5,"1 jigger Apple schnapps "], ["2889","115",44.5,"1 jigger Goldschlager "], ["2889","270",44.5,"1 jigger Bailey's irish cream "], ["2667","335",30,"1 oz Spiced rum "], ["2667","449",22.5,"3/4 oz Apple schnapps "], ["2667","132",22.5,"3/4 oz Cinnamon schnapps "], ["2667","22",3.7,"1 splash 7-Up "], ["4212","462",90,"3 oz Tequila (Cuervo Mystico) "], ["4212","324",360,"12 oz Apple cider "], ["3210","315",15,"1/2 oz Grand Marnier "], ["3210","316",15,"1/2 oz Vodka "], ["3210","461",90,"3 oz Apple juice "], ["5112","147",7.5,"1/4 oz Irish Mist "], ["5112","132",7.5,"1/4 oz Cinnamon schnapps "], ["5112","167",7.5,"1/4 oz Frangelico "], ["5112","375",7.5,"1/4 oz Amaretto "], ["46","214",30,"1 oz Light rum "], ["46","383",15,"1/2 oz Sweet Vermouth "], ["46","423",5,"1 tsp Applejack "], ["46","424",5,"1 tsp Lemon juice "], ["46","82",2.5,"1/2 tsp Grenadine "], ["3188","223",20,"2 cl Licor 43 "], ["3188","74",20,"2 cl Apfelkorn "], ["3188","259",20,"2 cl Milk "], ["48","349",45,"1 1/2 oz A�ejo rum "], ["48","423",15,"1/2 oz Applejack "], ["48","186",10,"2 tsp Lime juice "], ["48","130",60,"2 oz Club soda "], ["5923","423",30,"1 oz Applejack "], ["5923","213",30,"1 oz Triple sec "], ["5923","424",30,"1 oz Lemon juice "], ["2879","122",30,"1 oz Jack Daniels "], ["2879","146",15,"1/2 oz Midori melon liqueur "], ["2879","266",60,"2 oz Sour mix "], ["53","376",45,"1 1/2 oz Gin "], ["53","479",15,"1/2 oz Galliano "], ["53","10",15,"1/2 oz Creme de Banane "], ["53","404",15,"1/2 oz Grapefruit juice "], ["2033","316",60,"2 oz Vodka (Finlandia) "], ["2033","295",90,"Fill with 3 oz Champagne "], ["1482","316",75,"2 1/2 oz Vodka "], ["1482","234",22.5,"3/4 oz Acerola pulp "], ["1482","404",45,"1 1/2 oz Grapefruit juice "], ["1482","477",5,"1 tsp Sugar "], ["2900","316",10,"1/3 oz Vodka (Fris) "], ["2900","146",10,"1/3 oz Midori melon liqueur "], ["2900","211",10,"1/3 oz Sweet and sour (Mr.& Mrs.T's) "], ["4830","115",30,"1 oz Goldschlager "], ["4830","108",30,"1 oz J�germeister "], ["4830","462",30,"1 oz Tequila "], ["5206","304",14.75,"1/2 shot Rum "], ["5206","316",14.75,"1/2 shot Vodka "], ["5206","375",14.75,"1/2 shot Amaretto "], ["5206","265",14.75,"1/2 shot Kahlua "], ["5291","33",90,"3 oz Lillet "], ["5291","359",30,"1 oz Cointreau "], ["5291","383",3.7,"1 splash Sweet Vermouth "], ["5446","294",29.5,"1 shot Lime juice cordial "], ["5446","480",29.5,"1 shot Irish cream "], ["5446","12",29.5,"1 shot Blavod vodka "], ["4045","376",60,"2 oz Gin "], ["4045","88",15,"1/2 oz Dry Vermouth "], ["4045","433",0.9,"1 dash Orange bitters "], ["3910","71",15,"1/2 oz Everclear "], ["3910","85",15,"1/2 oz Bacardi 151 proof rum "], ["3910","272",15,"1/2 oz Razzmatazz "], ["3910","375",30,"1 oz Amaretto "], ["5677","15",30,"1 oz Green Creme de Menthe "], ["5677","333",30,"1 oz Creme de Cacao "], ["5677","259",180,"6 oz Milk "], ["5677","287",15,"3 tsp Chocolate syrup "], ["4246","119",30,"1 oz Absolut Vodka "], ["4246","376",30,"1 oz Gin (Tanqueray) "], ["4246","29",120,"4 oz Tonic water "], ["1433","316",20,"2 cl Smirnoff Vodka "], ["1433","342",20,"2 cl Southern Comfort "], ["1433","454",20,"2 cl Passion fruit syrup (Monin) "], ["1433","211",60,"6 cl Sweet and sour, mix "], ["1433","130",0.9,"1 dash Club soda "], ["1264","146",30,"1 oz Midori melon liqueur "], ["1264","316",30,"1 oz Vodka "], ["1264","266",30,"1 oz Sour mix "], ["4175","316",7.5,"1/4 oz Vodka "], ["4175","376",7.5,"1/4 oz Gin "], ["4175","213",7.5,"1/4 oz Triple sec "], ["4175","375",7.5,"1/4 oz Amaretto "], ["4175","309",7.5,"1/4 oz Peach schnapps "], ["4175","266",7.5,"1/4 oz Sour mix "], ["4175","372",3.7,"1 splash Cranberry juice "], ["3056","108",30,"1 oz J�germeister "], ["3056","115",30,"1 oz Goldschlager "], ["2355","330",60,"2 oz Port "], ["2355","315",30,"1 oz Grand Marnier "], ["2355","375",15,"1/2 oz Amaretto "], ["3753","375",50,"1 2/3 oz Amaretto "], ["3753","309",50,"1 2/3 oz Peach schnapps "], ["3753","88",22.5,"3/4 oz Dry Vermouth "], ["3753","130",120,"4 oz Club soda "], ["5909","192",15,"1/2 oz Brandy "], ["5909","351",15,"1/2 oz Benedictine "], ["1904","270",10,"1/3 oz Bailey's irish cream "], ["1904","265",10,"1/3 oz Kahlua "], ["1904","167",10,"1/3 oz Frangelico "], ["1275","265",9.83,"1/3 shot Kahlua "], ["1275","375",9.83,"1/3 shot Amaretto "], ["1275","270",9.83,"1/3 shot Bailey's irish cream "], ["1758","265",20,"2 cl Kahlua "], ["1758","270",20,"2 cl Bailey's irish cream "], ["1758","359",20,"2 cl Cointreau "], ["2664","375",20,"2 cl Amaretto "], ["2664","270",15,"1 1/2 cl Bailey's irish cream "], ["2664","304",5,"1/2 cl Rum "], ["4009","265",9.83,"1/3 shot Kahlua "], ["4009","475",9.83,"1/3 shot Sambuca "], ["4009","315",9.83,"1/3 shot Grand Marnier "], ["1387","270",15,"1/2 oz Bailey's irish cream "], ["1387","15",15,"1/2 oz Green Creme de Menthe "], ["1387","315",15,"1/2 oz Grand Marnier "], ["1387","265",15,"1/2 oz Kahlua "], ["2197","265",30,"1 oz Kahlua "], ["2197","480",30,"1 oz Irish cream (Bailey's) "], ["2197","315",30,"1 oz Grand Marnier "], ["2197","316",30,"1 oz Vodka (Stolichnaya) "], ["2356","315",30,"1 oz Grand Marnier "], ["2356","265",30,"1 oz Kahlua "], ["2356","270",30,"1 oz Bailey's irish cream "], ["2356","375",30,"1 oz Amaretto "], ["2356","316",30,"1 oz Vodka (Absolut) "], ["5242","265",9.83,"1/3 shot Kahlua "], ["5242","464",9.83,"1/3 shot Peppermint schnapps "], ["5242","480",9.83,"1/3 shot Irish cream "], ["3115","265",75,"2 1/2 oz Kahlua "], ["3115","270",15,"1/2 oz Bailey's irish cream "], ["1573","316",75,"2 1/2 oz Vodka (Absolut) "], ["1573","211",120,"4 oz Sweet and sour "], ["1573","54",30,"1 oz Chambord raspberry liqueur "], ["3869","214",52.5,"1 3/4 oz Bacardi Light rum "], ["3869","186",30,"1 oz Lime juice "], ["3869","357",2.5,"1/2 tsp Sugar syrup "], ["3869","82",0.9,"1 dash Grenadine "], ["1867","381",150,"1.5 oz Drambuie "], ["1867","315",150,"1.5 oz Grand Marnier "], ["4372","265",9.83,"1/3 shot Kahlua "], ["4372","270",9.83,"1/3 shot Bailey's irish cream "], ["4372","316",9.83,"1/3 shot Vodka "], ["4690","424",15,"1/2 oz Lemon juice "], ["4690","445",60,"2 oz Orange juice "], ["4690","261",60,"2 oz Pineapple juice "], ["4690","304",45,"1 1/2 oz Rum "], ["4690","468",30,"1 oz Coconut rum "], ["4690","116",15,"1/2 oz Cherry Heering "], ["4690","82",15,"1/2 oz Grenadine "], ["4648","316",15,"1/2 oz Vodka (Skyy) "], ["4648","309",15,"1/2 oz Peach schnapps "], ["2713","304",22.5,"3/4 oz Rum (Havanna Club Silver Dry) "], ["2713","356",7.5,"1/4 oz Limoncello (Luxardo) "], ["2713","446",15,"1/2 oz Condensed milk (Nestle) "], ["2088","387",30,"1 oz Dark rum "], ["2088","335",30,"1 oz Spiced rum "], ["2088","445",120,"4 oz Orange juice "], ["2088","261",60,"2 oz Pineapple juice "], ["2088","82",15,"1/2 oz Grenadine "], ["1283","214",15,"1/2 oz Light rum "], ["1283","387",15,"1/2 oz Dark rum "], ["1283","335",15,"1/2 oz Spiced rum "], ["1283","36",15,"1/2 oz Malibu rum "], ["1283","85",15,"1/2 oz Bacardi 151 proof rum "], ["1283","297",15,"1/2 oz Blue Curacao "], ["1283","261",150,"5 oz Pineapple juice "], ["2089","316",30,"3 cl Vodka "], ["2089","425",20,"2 cl Pisang Ambon "], ["2089","36",20,"2 cl Malibu rum "], ["2089","445",60,"6 cl Orange juice "], ["2089","424",10,"1 cl Lemon juice "], ["3283","274",44.25,"1 1/2 shot Melon liqueur "], ["3283","169",29.5,"1 shot Lime vodka "], ["3283","119",29.5,"1 shot Absolut Vodka "], ["3283","213",29.5,"1 shot Triple sec "], ["3283","243",44.25,"1 1/2 shot Blueberry schnapps "], ["3283","186",3.7,"1 splash Lime juice "], ["3283","22",3.7,"1 splash 7-Up "], ["1993","142",200,"20 cl White rum (Bacardi) "], ["1993","319",200,"20 cl Bacardi Black rum "], ["1993","10",200,"20 cl Creme de Banane "], ["1993","157",200,"20 cl Passoa "], ["1993","417",100,"10 cl Coconut liqueur "], ["1993","82",100,"10 cl Grenadine "], ["1993","445",2000,"200 cl Orange juice or tropical fruit mix "], ["1048","387",45,"1 1/2 oz Dark rum "], ["1048","10",15,"1/2 oz Creme de Banane "], ["1048","41",30,"1 oz Light cream "], ["2496","379",29.5,"1 shot Tomato juice "], ["2496","462",29.5,"1 shot white Tequila "], ["2496","424",29.5,"1 shot Lemon juice "], ["3722","265",15,"1/2 oz Kahlua "], ["3722","480",15,"1/2 oz Irish cream "], ["3722","227",15,"1/2 oz Banana liqueur (99 bananas) "], ["3842","227",40,"4 cl Banana liqueur "], ["3842","316",30,"3 cl Vodka "], ["3842","445",80,"8 cl Orange juice "], ["4589","42",29.5,"1 shot Irish whiskey "], ["4589","147",29.5,"1 shot Irish Mist "], ["1632","10",15,"1/2 oz Creme de Banane "], ["1632","333",15,"1/2 oz Creme de Cacao "], ["1632","422",60,"2 oz Cream, sweet "], ["68","297",15,"1/2 oz Blue Curacao "], ["68","108",15,"1/2 oz J�germeister "], ["68","372",3.7,"1 splash Cranberry juice "], ["4662","36",30,"1 oz Malibu rum "], ["4662","119",30,"1 oz Absolut Vodka "], ["4662","372",30,"1 oz Cranberry juice "], ["4662","445",30,"1 oz Orange juice "], ["5002","378",15,"1/2 oz Scotch "], ["5002","376",15,"1/2 oz Gin "], ["5002","304",15,"1/2 oz Rum "], ["5002","333",15,"1/2 oz white Creme de Cacao "], ["5002","41",15,"1/2 oz Light cream "], ["3406","423",15,"1/2 oz Applejack "], ["3406","376",7.5,"1/4 oz Gin "], ["3406","378",7.5,"1/4 oz Scotch "], ["1972","304",44.25,"1 1/2 shot Rum "], ["1972","199",360,"12 oz Mountain Dew "], ["1972","34",59,"1 - 2 shot Blue Maui "], ["73","66",60,"2 oz Cachaca "], ["73","483",120,"4 oz Pineapple (fresh), chunks "], ["73","477",2.5,"1/2 tsp granulated Sugar "], ["73","427",257,"1 cup crushed Ice "], ["6126","66",60,"2 oz Cachaca "], ["6126","184",120,"4 oz Mango, fresh, chopped "], ["6126","477",10,"2 tsp granulated Sugar "], ["6126","427",257,"1 cup crushed Ice "], ["3329","136",60,"2 oz Blackberry schnapps (Black Haus) "], ["3329","361",30,"1 oz Chocolate liqueur "], ["3329","259",30,"1 oz Milk "], ["1852","342",60,"2 oz Southern Comfort "], ["1852","2",180,"6 oz Lemonade "], ["3709","36",12,"2/5 oz Malibu rum "], ["3709","304",12,"2/5 oz Rum (Captain Morgan's) "], ["3709","375",12,"2/5 oz Amaretto "], ["3709","372",12,"2/5 oz Cranberry juice "], ["3709","261",12,"2/5 oz Pineapple juice "], ["2910","270",15,"1/2 oz Bailey's irish cream "], ["2910","297",15,"1/2 oz Blue Curacao "], ["2910","227",15,"1/2 oz Banana liqueur "], ["76","88",45,"1 1/2 oz Dry Vermouth "], ["76","378",45,"1 1/2 oz Scotch "], ["5263","297",30,"1 oz Blue Curacao "], ["5263","213",30,"1 oz Triple sec "], ["5263","226",30,"1 oz Bacardi Limon "], ["5263","323",3.7,"1 splash Sprite "], ["5263","211",3.7,"1 splash Sweet and sour "], ["78","85",15,"1/2 oz Bacardi 151 proof rum "], ["78","10",15,"1/2 oz Creme de Banane "], ["78","270",30,"1 oz Bailey's irish cream "], ["2017","88",15,"1/2 oz Dry Vermouth "], ["2017","383",15,"1/2 oz Sweet Vermouth "], ["2017","378",45,"1 1/2 oz Scotch "], ["3587","265",15,"1/2 oz Kahlua "], ["3587","270",15,"1/2 oz Bailey's irish cream "], ["3587","227",15,"1/2 oz Banana liqueur "], ["4408","198",29.5,"1 shot Aftershock "], ["4408","471",29.5,"1 shot Jim Beam "], ["3222","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["3222","464",14.75,"1/2 shot Peppermint schnapps "], ["1342","342",30,"1 oz Southern Comfort "], ["1342","316",30,"1 oz Vodka "], ["1342","31",480,"1/16 oz Grain alcohol "], ["1342","352",30,"1 oz Water "], ["6104","340",30,"1 oz Barenjager "], ["6104","464",30,"1 oz Peppermint schnapps "], ["4714","71",30,"1 oz Everclear "], ["4714","286",30,"1 oz Purple passion "], ["4714","316",30,"1 oz Vodka "], ["4714","420",30,"1 oz Cider (White lightning) "], ["4714","342",30,"1 oz Southern Comfort "], ["4714","85",30,"1 oz Bacardi 151 proof rum "], ["4714","181",30,"1 oz Plum Wine "], ["4714","352",30,"1 oz Water "], ["79","383",15,"1/2 oz Sweet Vermouth "], ["79","88",15,"1/2 oz Dry Vermouth "], ["79","376",30,"1 oz Gin "], ["79","445",5,"1 tsp Orange juice "], ["79","82",0.9,"1 dash Grenadine "], ["1579","304",60,"2 oz Barbados Rum "], ["1579","387",60,"2 oz Dark rum "], ["1579","85",30,"1 oz Bacardi 151 proof rum "], ["1579","175",180,"6 oz Coca-Cola "], ["1579","186",15,"1/2 oz fresh Lime juice "], ["5610","3",30,"1 oz Cognac (Hennessy) "], ["5610","315",30,"1 oz Grand Marnier "], ["80","174",45,"1 1/2 oz Blackberry brandy "], ["80","205",15,"1/2 oz White Creme de Menthe "], ["5890","392",300,"10 oz Beer "], ["5890","22",60,"2 oz 7-Up "], ["2276","146",45,"1 1/2 oz Midori melon liqueur "], ["2276","316",15,"1/2 oz Vodka "], ["2276","41",30,"1 oz Light cream "], ["81","376",45,"1 1/2 oz Gin "], ["81","213",30,"1 oz Triple sec "], ["81","231",30,"1 oz Apricot brandy "], ["81","424",10,"2 tsp Lemon juice "], ["2325","295",180,"6 oz Champagne "], ["2325","309",30,"1 oz Peach schnapps "], ["86","231",7.5,"1 1/2 tsp Apricot brandy "], ["86","376",37.5,"1 1/4 oz Gin "], ["86","82",7.5,"1 1/2 tsp Grenadine "], ["5763","304",45,"1 1/2 oz Rum (Gosling's Black Seal) "], ["5763","372",60,"2 oz Cranberry juice "], ["5763","445",60,"2 oz Orange juice "], ["5365","316",20,"2 cl Vodka "], ["5365","270",20,"2 cl Bailey's irish cream "], ["3398","309",90,"3 oz Peach schnapps "], ["3398","282",150,"5 oz Peach juice "], ["3398","83",90,"3 oz Ginger ale "], ["2487","312",45,"1 1/2 oz Absolut Citron "], ["2487","323",300,"10 oz Sprite "], ["2487","82",15,"1/2 oz Grenadine "], ["4006","192",30,"1 oz Brandy "], ["4006","214",30,"1 oz Light rum "], ["4006","213",30,"1 oz Triple sec "], ["4006","424",30,"1 oz Lemon juice "], ["5367","468",30,"1 oz Coconut rum "], ["5367","375",30,"1 oz Amaretto "], ["2330","304",60,"2 oz Rum "], ["2330","375",60,"2 oz Amaretto "], ["2330","468",60,"2 oz Coconut rum "], ["2330","10",60,"2 oz Creme de Banane "], ["2330","261",240,"8 oz Pineapple juice "], ["5423","259",257,"1 cup Milk "], ["5423","508",2.5,"1/2 tsp Vanilla extract "], ["5423","64",192.75,"3/4 cup Chocolate ice-cream "], ["5423","342",45,"1 1/2 oz Southern Comfort "], ["4833","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["4833","227",15,"1/2 oz Banana liqueur "], ["4833","200",3.7,"1 splash Rose's sweetened lime juice "], ["4833","82",3.7,"1 splash Grenadine "], ["4833","372",3.7,"1 splash Cranberry juice "], ["1725","368",15,"1/2 oz Sloe gin "], ["1725","342",15,"1/2 oz Southern Comfort "], ["1725","309",15,"1/2 oz Peach schnapps "], ["1332","480",15,"1/2 oz Irish cream "], ["1332","115",15,"1/2 oz Goldschlager "], ["2505","3",22.5,"3/4 oz Cognac "], ["2505","332",22.5,"3/4 oz Pernod "], ["4043","333",7.5,"1/4 oz Creme de Cacao "], ["4043","297",7.5,"1/4 oz Blue Curacao "], ["4043","316",7.5,"1/4 oz Vodka "], ["4043","266",7.5,"1/4 oz Sour mix "], ["3744","376",60,"2 oz Gin "], ["3744","88",15,"1/2 oz Dry Vermouth "], ["3744","205",15,"1/2 oz White Creme de Menthe "], ["3744","332",5,"1 tsp Pernod "], ["2888","462",30,"1 oz Tequila "], ["2888","213",22.5,"3/4 oz Triple sec "], ["2888","316",15,"1/2 oz Vodka "], ["2888","445",52.5,"1 3/4 oz Orange juice "], ["2888","266",52.5,"1 3/4 oz Sour mix "], ["2888","22",3.7,"1 splash 7-Up "], ["5491","122",30,"1 oz Jack Daniels "], ["5491","202",15,"1/2 oz Gold tequila (Cuervo) "], ["5491","316",15,"1/2 oz Vodka "], ["5491","297",15,"1/2 oz Blue Curacao "], ["2925","136",30,"1 oz Blackberry schnapps "], ["2925","297",60,"2 oz Blue Curacao "], ["2925","316",60,"2 oz Vodka "], ["1759","265",30,"3 cl Kahlua "], ["1759","259",30,"3 cl Milk "], ["2467","267",22.5,"3/4 oz Black Sambuca "], ["2467","270",22.5,"3/4 oz Bailey's irish cream "], ["2467","85",15,"1/2 oz bacardi 151 proof rum "], ["4323","479",30,"3 cl Galliano "], ["4323","108",30,"3 cl J�germeister "], ["5299","462",30,"1 oz Tequila (Sauza) "], ["5299","174",30,"1 oz Blackberry brandy "], ["5299","130",30,"1 oz Club soda "], ["4198","237",22.5,"3/4 oz Raspberry liqueur (Chambord) "], ["4198","480",22.5,"3/4 oz Irish cream (Bailey's) "], ["4198","240",22.5,"3/4 oz Coffee liqueur (Kahlua) "], ["4198","316",22.5,"3/4 oz Vodka (Absolut) "], ["4198","126",22.5,"3/4 oz Half-and-half "], ["4198","175",3.7,"1 splash Coca-Cola "], ["5937","265",60,"2 oz Kahlua "], ["5937","126",60,"2 oz Half-and-half "], ["5937","109",90,"3 oz Cola "], ["6020","267",45,"1 1/2 oz Black Sambuca "], ["6020","206",180,"6 oz Eggnog "], ["2745","316",44.25,"1 - 1 1/2 shot Vodka "], ["2745","95",15,"1/2 oz Soy sauce "], ["4363","265",7.5,"1/4 oz Kahlua "], ["4363","475",7.5,"1/4 oz Sambuca (Romana) "], ["4363","270",7.5,"1/4 oz Bailey's irish cream "], ["4363","126",7.5,"1/4 oz Half-and-half "], ["3345","297",30,"1 oz Blue Curacao "], ["3345","82",30,"1 oz Grenadine "], ["3345","375",30,"1 oz Amaretto "], ["3345","213",30,"1 oz Triple sec "], ["3345","174",30,"1 oz Blackberry brandy "], ["2563","108",22.5,"3/4 oz J�germeister "], ["2563","115",22.5,"3/4 oz Goldschlager "], ["2448","376",20,"2/3 oz Gin "], ["2448","267",10,"1/3 oz Black Sambuca "], ["1607","431",60,"2 oz Coffee brandy "], ["1607","214",60,"2 oz Light rum "], ["1607","482",120,"4 oz strong, black Coffee "], ["1607","236",10,"2 tsp Powdered sugar "], ["4701","387",30,"1 oz Dark rum "], ["4701","267",15,"1/2 oz Black Sambuca (Opal) "], ["4701","179",5,"1 tsp Cherry brandy "], ["4701","424",15,"1/2 oz Lemon juice "], ["102","192",45,"1 1/2 oz Brandy "], ["102","383",15,"1/2 oz Sweet Vermouth "], ["102","88",15,"1/2 oz Dry Vermouth "], ["102","213",10,"2 tsp Triple sec "], ["4669","368",7.38,"1/4 shot Sloe gin (CreamyHead) "], ["4669","297",7.38,"1/4 shot Blue Curacao "], ["4669","309",7.38,"1/4 shot Peach schnapps "], ["4669","316",7.38,"1/4 shot Vodka (Absolut) "], ["1958","316",30,"3 cl Vodka (Stoli) "], ["1958","240",30,"3 cl Coffee liqueur (Kaluha) "], ["1958","175",150,"15 cl Coca-Cola "], ["3107","240",22.5,"3/4 oz Coffee liqueur "], ["3107","316",45,"1 1/2 oz Vodka "], ["104","296",30,"1 oz Sake "], ["104","95",15,"1/2 oz Soy sauce "], ["3449","173",75,"2 1/2 oz Canadian whisky (Crown Royal) "], ["3449","175",3.7,"1 splash Coca-Cola "], ["5734","135",150,"5 oz chilled Stout "], ["5734","295",150,"5 oz chilled Champagne "], ["1848","312",30,"1 oz Absolut Citron "], ["1848","267",30,"1 oz Black Sambuca (Opal Nera) "], ["1866","462",45,"1 1/2 oz Tequila "], ["1866","213",15,"1/2 oz Triple sec "], ["1866","54",15,"1/2 oz Chambord raspberry liqueur "], ["1866","186",120,"4 oz Lime juice (or Sour Mix) "], ["99","192",15,"1/2 oz Brandy "], ["99","121",30,"1 oz Kirschwasser "], ["99","482",30,"1 oz Coffee "], ["106","378",45,"1 1/2 oz Scotch "], ["106","265",30,"1 oz Kahlua "], ["106","213",15,"1/2 oz Triple sec "], ["106","424",15,"1/2 oz Lemon juice "], ["5345","12",45,"1 1/2 oz Blavod vodka "], ["5345","455",180,"6 oz Longbranch Bloody mary mix "], ["3909","114",45,"1 1/2 oz Butterscotch schnapps "], ["3909","85",45,"1 1/2 oz Bacardi 151 proof rum "], ["2871","378",60,"2 oz Scotch "], ["2871","186",15,"1/2 oz Lime juice "], ["2871","477",2.5,"1/2 tsp superfine Sugar "], ["1900","378",60,"2 oz Scotch "], ["1900","404",150,"5 oz Grapefruit juice "], ["1900","82",5,"1 tsp Grenadine "], ["5522","316",60,"2 oz Vodka "], ["5522","445",60,"2 oz Orange juice "], ["5522","404",60,"2 oz Grapefruit juice "], ["5522","91",30,"1 oz Strawberry syrup "], ["2850","85",7.5,"1/4 oz 151 proof rum "], ["2850","232",7.5,"1/4 oz Wild Turkey (101 proof) "], ["2850","297",7.5,"1/4 oz Blue Curacao "], ["2850","261",3.7,"1 splash Pineapple juice "], ["2850","445",3.7,"1 splash Orange juice "], ["3007","304",30,"1 oz Rum (Bacardi) "], ["3007","309",30,"1 oz Peach schnapps "], ["3007","315",15,"1/2 oz Grand Marnier "], ["3007","261",30,"1 oz Pineapple juice "], ["3007","445",30,"1 oz Orange juice "], ["4303","226",30,"1 oz Bacardi Limon "], ["4303","297",15,"1/2 oz Blue Curacao "], ["4303","82",10,"1/3 oz Grenadine "], ["4303","211",45,"1 1/2 oz Sweet and sour mix "], ["4303","443",3.7,"1 splash Soda water "], ["4157","3",22.5,"3/4 oz Cognac "], ["4157","359",22.5,"3/4 oz Cointreau "], ["4157","499",22.5,"3/4 oz Calvados "], ["4157","332",15,"1/2 oz Pernod "], ["5101","327",30,"1 oz Campari "], ["5101","376",30,"1 oz Gin "], ["3646","62",45,"1 1/2 oz Yukon Jack "], ["3646","462",45,"1 1/2 oz Tequila "], ["3646","316",45,"1 1/2 oz Vodka "], ["3646","379",30,"1 oz Tomato juice (V-8) "], ["3646","270",30,"1 oz Bailey's irish cream "], ["3646","424",15,"1/2 oz Lemon juice "], ["2858","15",30,"3 cl Green Creme de Menthe "], ["2858","270",15,"1 1/2 cl Bailey's irish cream "], ["2193","10",60,"2 oz Creme de Banane (Hiram Walker) "], ["2193","297",60,"2 oz Blue Curacao (Hiram Walker) "], ["1682","270",10,"1/3 oz Bailey's irish cream "], ["1682","21",10,"1/3 oz Whiskey "], ["1682","375",10,"1/3 oz Amaretto "], ["5150","252",60,"2 oz Whisky "], ["5150","352",180,"6 oz Water "], ["4827","297",22.5,"3/4 oz Blue Curacao "], ["4827","270",7.5,"1/4 oz Bailey's irish cream "], ["4827","22",30,"1 oz 7-Up "], ["4827","443",30,"1 oz Soda water "], ["4076","464",22.13,"3/4 shot Avalanche Peppermint schnapps "], ["4076","115",22.13,"3/4 shot Goldschlager "], ["3134","316",60,"2 oz Vodka (Skyy) "], ["3134","404",150,"5 oz Grapefruit juice "], ["5183","327",60,"2 oz Campari "], ["5183","192",60,"2 oz Brandy "], ["5183","424",30,"1 oz Lemon juice "], ["6207","496",30,"1 oz Hpnotiq "], ["6207","312",30,"1 oz Absolut Citron "], ["6207","507",90,"3 oz White cranberry juice "], ["4081","316",30,"1 oz Vodka "], ["4081","376",30,"1 oz Gin "], ["4081","142",30,"1 oz White rum "], ["4081","297",30,"1 oz Blue Curacao "], ["4081","477",5,"1 tsp Sugar "], ["4081","29",90,"3 oz Tonic water "], ["5661","297",30,"1 oz Blue Curacao "], ["5661","316",30,"1 oz Vodka "], ["5661","211",30,"1 oz Sweet and sour "], ["3941","376",45,"1 1/2 oz Gin (Bombay Sapphire) "], ["3941","297",22.5,"3/4 oz Blue Curacao "], ["4865","349",45,"1 1/2 oz A�ejo rum "], ["4865","215",15,"1/2 oz Tia maria "], ["4865","316",15,"1/2 oz Vodka "], ["4865","445",30,"1 oz Orange juice "], ["4865","424",5,"1 tsp Lemon juice "], ["120","376",37.5,"1 1/4 oz Gin (Tanqueray Malacca) "], ["120","297",15,"1/2 oz Blue Curacao "], ["120","211",45,"1 1/2 oz fresh Sweet and sour mix "], ["120","261",90,"3 oz Pineapple juice "], ["2373","36",15,"1/2 oz Malibu rum "], ["2373","297",7.5,"1/4 oz Blue Curacao "], ["2373","261",15,"1/2 oz Pineapple juice "], ["1590","309",30,"1 oz Peach schnapps "], ["1590","297",15,"1/2 oz Blue Curacao "], ["6115","295",120,"4 oz Champagne "], ["6115","316",30,"1 oz Vodka "], ["6115","297",14.75,"1/2 shot Blue Curacao "], ["2626","342",15,"1/2 oz Southern Comfort "], ["2626","10",15,"1/2 oz Creme de Banane "], ["2626","297",15,"1/2 oz Blue Curacao "], ["6144","108",5.9,"1/5 shot J�germeister "], ["6144","85",5.9,"1/5 shot Bacardi 151 proof rum "], ["6144","145",5.9,"1/5 shot Rumple Minze "], ["6144","115",5.9,"1/5 shot Goldschlager "], ["6144","297",5.9,"1/5 shot Blue Curacao "], ["6206","297",29.5,"1 shot Blue Curacao "], ["6206","424",29.5,"1 shot Lemon juice "], ["3784","243",30,"3 cl Blueberry schnapps or liqueur "], ["3784","142",10,"1 cl White rum "], ["3784","186",10,"1 cl Lime juice "], ["3784","357",20,"2 cl Sugar syrup "], ["5726","375",30,"1 oz Amaretto "], ["5726","315",15,"1/2 oz Grand Marnier "], ["5726","250",128.5,"1/2 cup blueberry or black currant Tea "], ["3690","243",30,"1 oz Blueberry schnapps "], ["3690","316",30,"1 oz Vodka "], ["3690","211",30,"1 oz Sweet and sour "], ["3690","422",0.9,"1 dash Cream (optional) "], ["2705","130",180,"6 oz Club soda "], ["2705","243",29.5,"1 shot Blueberry schnapps "], ["2705","445",3.7,"1 splash Orange juice "], ["5637","270",29.5,"1 shot Bailey's irish cream "], ["5637","36",29.5,"1 shot Malibu rum "], ["5637","252",29.5,"1 shot Whisky "], ["4337","331",360,"12 oz Surge "], ["4337","108",120,"4 oz J�germeister "], ["4337","427",480,"16 oz Ice "], ["2158","270",10,"1/3 oz Bailey's irish cream "], ["2158","36",10,"1/3 oz Malibu rum "], ["2158","333",10,"1/3 oz white Creme de Cacao "], ["1419","146",15,"1/2 oz Midori melon liqueur "], ["1419","108",15,"1/2 oz J�germeister "], ["1419","115",15,"1/2 oz Goldschlager "], ["1395","316",60,"2 oz Vodka "], ["1395","83",240,"8 oz Ginger ale "], ["1006","445",10,"1 cl Orange juice "], ["1006","424",10,"1 cl Lemon juice "], ["1006","357",5,"1 tsp Sugar syrup "], ["1006","422",60,"6 cl Cream "], ["3059","21",60,"2 oz Whiskey "], ["3059","392",300,"10 oz Beer "], ["1678","448",22.5,"3/4 oz Apple brandy "], ["1678","214",45,"1 1/2 oz Light rum "], ["1678","383",1.25,"1/4 tsp Sweet Vermouth "], ["4412","316",45,"1 1/2 oz Vodka "], ["4412","445",45,"1 1/2 oz Orange juice "], ["4412","404",45,"1 1/2 oz Grapefruit juice "], ["5450","184",3.7,"1 splash Mango puree "], ["5450","295",180,"4-6 oz Champagne "], ["124","316",29.5,"1 shot Vodka "], ["124","376",29.5,"1 shot Gin "], ["124","309",29.5,"1 shot Peach schnapps "], ["124","132",29.5,"1 shot Cinnamon schnapps "], ["124","214",29.5,"1 shot Light rum "], ["4802","88",15,"1/2 oz Dry Vermouth "], ["4802","383",15,"1/2 oz Sweet Vermouth "], ["4802","192",30,"1 oz Brandy "], ["4802","213",2.5,"1/2 tsp Triple sec "], ["4802","170",1.25,"1/4 tsp Anis "], ["4812","449",15,"1/2 oz Apple schnapps "], ["4812","309",15,"1/2 oz Peach schnapps "], ["4812","227",15,"1/2 oz Banana liqueur "], ["4812","261",15,"1/2 oz Pineapple juice "], ["4812","22",15,"1/2 oz 7-Up "], ["3428","376",29.5,"1 shot Gin "], ["3428","462",29.5,"1 shot Tequila "], ["3428","424",0.9,"1 dash Lemon juice "], ["3428","297",0.9,"1 dash Blue Curacao "], ["3627","145",15,"1/2 oz Rumple Minze "], ["3627","464",15,"1/2 oz Peppermint schnapps "], ["2540","304",29.5,"1 shot Rum "], ["2540","316",29.5,"1 shot Vodka "], ["2540","376",29.5,"1 shot Gin "], ["2540","213",29.5,"1 shot Triple sec "], ["2540","82",14.75,"1/2 shot Grenadine "], ["2540","372",257,"1 cup Cranberry juice "], ["2540","445",64.25,"1/4 cup Orange juice "], ["2540","261",64.25,"1/4 cup Pineapple juice "], ["4747","82",15,"1/2 oz Grenadine "], ["4747","375",15,"1/2 oz Amaretto "], ["4747","85",15,"1/2 oz 151 proof rum "], ["1857","232",22.5,"3/4 oz Wild Turkey 101 proof "], ["1857","274",22.5,"3/4 oz Melon liqueur "], ["1857","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["3292","316",10,"1 cl Vodka (Absolut) "], ["3292","270",10,"1 cl Bailey's irish cream "], ["3292","482",10,"1 cl Coffee (Cappuchino) "], ["3292","259",10,"1 cl Milk "], ["2939","108",14.75,"1/2 shot J�germeister "], ["2939","62",14.75,"1/2 shot Yukon Jack "], ["3278","462",15,"1/2 oz Tequila "], ["3278","213",15,"1/2 oz Triple sec "], ["3278","10",15,"1/2 oz Creme de Banane "], ["3278","445",15,"1/2 oz Orange juice "], ["3278","266",15,"1/2 oz Sour mix "], ["2749","142",30,"1 oz White rum "], ["2749","376",30,"1 oz Gin "], ["2749","316",30,"1 oz Vodka "], ["2749","213",30,"1 oz Triple sec "], ["2749","459",420,"14 oz Lemon-lime mix "], ["2749","175",15,"1/2 oz Coca-Cola "], ["3380","146",15,"1/2 oz Midori melon liqueur "], ["3380","36",15,"1/2 oz Malibu rum "], ["3380","335",15,"1/2 oz Spiced rum (Bacardi) "], ["3380","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["2117","122",29.5,"1 shot Jack Daniels "], ["2117","342",29.5,"1 shot Southern Comfort "], ["2117","475",29.5,"1 shot Sambuca "], ["126","261",100,"10 cl Pineapple juice "], ["126","355",60,"6 cl Passion fruit juice "], ["126","424",10,"1 cl Lemon juice "], ["126","82",10,"1 cl Grenadine syrup "], ["130","211",75,"2 1/2 oz Sweet and sour "], ["130","274",75,"2 1/2 oz Melon liqueur (Midori) "], ["130","276",75,"2 1/2 oz Root beer schnapps "], ["4968","249",60,"2 oz Bourbon "], ["4968","213",15,"1/2 oz Triple sec "], ["4968","424",15,"1/2 oz Lemon juice "], ["4685","372",60,"2 oz Cranberry juice "], ["4685","316",60,"2 oz Vodka (Skyy) "], ["4685","213",15,"1/2 oz Triple sec "], ["4685","186",15,"1/2 oz Lime juice "], ["4685","445",0.9,"1 dash Orange juice "], ["132","249",120,"4 oz Bourbon (Henry McKenna bourbon) "], ["132","323",210,"7 oz Sprite "], ["1855","249",60,"2 oz Bourbon "], ["1855","352",120,"4 oz bottled Water "], ["140","249",60,"2 oz Bourbon "], ["140","41",15,"1/2 oz Light cream "], ["141","249",60,"2 oz Bourbon "], ["141","487",15,"1/2 oz Dark Creme de Cacao "], ["141","259",150,"5 oz Milk "], ["141","20",1.25,"1/4 tsp grated Nutmeg "], ["144","477",5,"1 tsp superfine Sugar "], ["144","249",60,"2 oz Bourbon "], ["144","259",150,"5 oz Milk "], ["144","409",1.25,"1/4 tsp ground Cinnamon "], ["143","249",60,"2 oz Bourbon "], ["143","126",90,"3 oz Half-and-half "], ["143","477",5,"1 tsp superfine Sugar "], ["143","508",1.25,"1/4 tsp Vanilla extract "], ["143","20",1.25,"1/4 tsp grated Nutmeg "], ["5081","249",60,"2 oz Bourbon "], ["5081","358",30,"1 oz Ouzo "], ["4213","108",15,"1/2 oz J�germeister "], ["4213","501",15,"1/2 oz Ice 101 "], ["3572","115",30,"1 oz Goldschlager "], ["3572","265",30,"1 oz Kahlua "], ["3572","316",30,"1 oz Vodka "], ["1427","309",30,"1 oz Peach schnapps "], ["1427","270",5,"1 tsp Bailey's irish cream "], ["1427","82",2.5,"1/2 tsp Grenadine "], ["2508","125",60,"2 oz clear Schnapps of your choice "], ["2508","480",10,"2 tsp Irish cream "], ["2508","82",5,"1 tsp Grenadine "], ["151","378",60,"2 oz Scotch "], ["151","351",15,"1/2 oz Benedictine "], ["151","383",5,"1 tsp Sweet Vermouth "], ["153","192",45,"1 1/2 oz Brandy "], ["153","487",30,"1 oz Dark Creme de Cacao "], ["153","126",30,"1 oz Half-and-half "], ["153","20",1.25,"1/4 tsp grated Nutmeg "], ["17","192",45,"1 1/2 oz Brandy "], ["17","333",30,"1 oz white Creme de Cacao "], ["17","155",30,"1 oz Heavy cream "], ["17","20",1.25,"1/4 tsp grated Nutmeg "], ["158","192",60,"2 oz Brandy "], ["158","130",150,"5 oz Club soda "], ["163","192",75,"2 1/2 oz Brandy "], ["163","424",30,"1 oz Lemon juice "], ["163","477",5,"1 tsp superfine Sugar "], ["163","130",120,"4 oz Club soda "], ["174","383",45,"1 1/2 oz Sweet Vermouth "], ["174","192",60,"2 oz Brandy "], ["174","106",0.9,"1 dash Bitters "], ["175","315",10,"1/3 oz Grand Marnier "], ["175","309",10,"1/3 oz Peach schnapps "], ["175","261",10,"1/3 oz Pineapple juice "], ["6183","462",15,"1/2 oz Tequila "], ["6183","131",15,"1/2 oz Tabasco sauce "], ["1255","304",15,"1/2 oz Rum "], ["1255","316",15,"1/2 oz Vodka "], ["1255","445",120,"4 oz Orange juice "], ["1673","465",15,"1/2 oz White chocolate liqueur (Godiva) "], ["1673","270",10,"1/3 oz Bailey's irish cream "], ["1673","114",10,"1/3 oz Butterscotch schnapps "], ["1673","126",30,"1 oz Half-and-half "], ["5874","105",45,"1 1/2 oz dry Sherry "], ["5874","88",45,"1 1/2 oz Dry Vermouth "], ["5874","170",1.25,"1/4 tsp Anis "], ["5874","106",0.9,"1 dash Bitters "], ["2491","464",30,"1 oz Peppermint schnapps "], ["2491","304",30,"1 oz Rum (Bacardi) "], ["1552","202",10,"1/3 oz Gold tequila (Cuervo) "], ["1552","82",10,"1/3 oz Grenadine (Rose's) "], ["1552","22",10,"1/3 oz 7-Up "], ["3965","316",20,"2 cl Vodka "], ["3965","227",20,"2 cl Banana liqueur "], ["3965","266",200,"20 cl Sour mix "], ["3965","22",50,"5 cl 7-Up "], ["5244","349",45,"1 1/2 oz A�ejo rum "], ["5244","487",15,"1/2 oz Dark Creme de Cacao "], ["5244","424",15,"1/2 oz Lemon juice "], ["5244","477",10,"2 tsp superfine Sugar "], ["5244","250",120,"4 oz cold Tea "], ["178","179",45,"1 1/2 oz Cherry brandy "], ["178","387",30,"1 oz Dark rum "], ["178","214",30,"1 oz Light rum "], ["178","213",15,"1/2 oz Triple sec "], ["178","412",15,"1/2 oz Creme de Noyaux "], ["178","266",45,"1 1/2 oz Sour mix "], ["178","445",45,"1 1/2 oz Orange juice "], ["4973","375",15,"1/2 oz Amaretto "], ["4973","274",15,"1/2 oz Melon liqueur "], ["4973","372",30,"1 oz Cranberry juice "], ["4066","383",22.5,"3/4 oz Sweet Vermouth "], ["4066","330",45,"1 1/2 oz Port "], ["4066","213",1.25,"1/4 tsp Triple sec "], ["179","376",45,"1 1/2 oz Gin "], ["179","88",5,"1 tsp Dry Vermouth "], ["179","445",15,"1/2 oz Orange juice "], ["910","276",90,"3 oz Root beer schnapps "], ["910","323",270,"9 oz Sprite "], ["4927","304",30,"1 oz Rum "], ["4927","316",30,"1 oz Vodka "], ["4927","376",30,"1 oz Gin "], ["4927","261",3.7,"1 splash Pineapple juice "], ["4927","272",3.7,"1 splash Razzmatazz "], ["4927","266",3.7,"1 splash Sour mix "], ["4927","392",60,"1-2 oz Beer "], ["185","264",15,"1/2 oz Peanut liqueur "], ["185","333",15,"1/2 oz white Creme de Cacao "], ["185","41",60,"2 oz Light cream "], ["3178","214",22.5,"3/4 oz Light rum "], ["3178","376",22.5,"3/4 oz Gin "], ["3178","88",22.5,"3/4 oz Dry Vermouth "], ["4352","375",30,"1 oz Amaretto "], ["4352","270",30,"1 oz Bailey's irish cream "], ["4352","265",30,"1 oz Kahlua "], ["4352","71",30,"1 oz Everclear "], ["4352","114",30,"1 oz Butterscotch schnapps "], ["5856","316",15,"1/2 oz Vodka "], ["5856","54",15,"1/2 oz Chambord raspberry liqueur "], ["5856","322",15,"1/2 oz Peachtree schnapps "], ["5856","372",15,"1/2 oz Cranberry juice "], ["1519","132",20,"2/3 oz Cinnamon schnapps (Hot 100) "], ["1519","131",10,"1/3 oz Tabasco sauce "], ["2087","301",150,"5 oz Red wine, french "], ["2087","316",210,"7 oz Vodka "], ["3071","249",45,"1 1/2 oz Bourbon "], ["3071","352",180,"6 oz cold Water "], ["1849","249",24,"4/5 oz Bourbon "], ["1849","131",6,"1/5 oz Tabasco sauce "], ["3926","316",45,"1 1/2 oz Vodka "], ["3926","370",90,"3 oz Beef bouillon, chilled "], ["3926","258",0.9,"1 dash Worcestershire sauce "], ["3926","51",0.9,"1 dash Salt "], ["3926","168",0.9,"1 dash Black pepper "], ["3748","505",480,"16 oz Malt liquor (Schlitz) "], ["3748","85",60,"2 oz 151 proof rum (Lemon Hart Demerara) "], ["1802","316",75,"2 1/2 oz Vodka "], ["1802","370",90,"3 oz Beef bouillon "], ["1802","424",5,"1 tsp Lemon juice "], ["1802","131",0.9,"1 dash Tabasco sauce "], ["1802","258",0.9,"1 dash Worcestershire sauce "], ["1802","188",0.9,"1 dash Celery salt "], ["5884","270",10,"1/3 oz Bailey's irish cream "], ["5884","265",10,"1/3 oz Kahlua "], ["5884","475",10,"1/3 oz Sambuca "], ["3543","108",30,"1 oz J�germeister "], ["3543","340",30,"1 oz Barenjager "], ["192","387",60,"2 oz Dark rum "], ["192","424",30,"1 oz Lemon juice "], ["192","82",2.5,"1/2 tsp Grenadine "], ["192","20",1.25,"1/4 tsp grated Nutmeg "], ["193","108",15,"1/2 oz J�germeister "], ["193","145",15,"1/2 oz Rumple Minze "], ["1464","165",45,"1 1/2 oz Strawberry schnapps "], ["1464","261",120,"4 oz Pineapple juice "], ["1717","76",10,"1/3 oz George Dickel "], ["1717","122",10,"1/3 oz Jack Daniels "], ["1717","471",10,"1/3 oz Jim Beam "], ["1717","82",0.9,"1 dash Grenadine "], ["4542","349",45,"1 1/2 oz A�ejo rum "], ["4542","231",15,"1/2 oz Apricot brandy "], ["4542","261",30,"1 oz Pineapple juice "], ["1527","214",45,"1 1/2 oz Light rum "], ["1527","512",30,"1 oz Dubonnet Blanc "], ["1527","106",0.9,"1 dash Bitters "], ["1704","17",30,"1 oz Mezcal "], ["1704","115",30,"1 oz Goldschlager "], ["4210","378",30,"1 oz Scotch "], ["4210","114",30,"1 oz Butterscotch schnapps "], ["4210","375",30,"1 oz Amaretto "], ["5499","114",30,"1 oz Butterscotch schnapps "], ["5499","270",30,"1 oz Bailey's irish cream "], ["5499","259",60,"2 oz Milk "], ["5499","427",30,"1 oz crushed Ice "], ["5355","114",14.75,"1/2 shot Butterscotch schnapps "], ["5355","270",14.75,"1/2 shot Bailey's irish cream "], ["4512","114",14.75,"1/2 shot Butterscotch schnapps "], ["4512","375",14.75,"1/2 shot Amaretto "], ["1685","114",44.25,"1 1/2 shot Butterscotch schnapps "], ["1685","240",14.75,"1/2 shot Coffee liqueur "], ["2164","114",14.75,"1/2 shot Butterscotch schnapps "], ["2164","270",14.75,"1/2 shot Bailey's irish cream "], ["2307","114",14.75,"1/2 shot Butterscotch schnapps "], ["2307","480",14.75,"1/2 shot Irish cream "], ["1661","309",20,"2/3 oz Peach schnapps "], ["1661","270",10,"1/3 oz Bailey's irish cream "], ["2432","114",15,"1/2 oz Butterscotch schnapps "], ["2432","270",15,"1/2 oz Bailey's irish cream "], ["2432","247",5,"1 tsp Cherry liqueur "], ["5382","270",22.5,"3/4 oz Bailey's irish cream "], ["5382","114",22.5,"3/4 oz Butterscotch schnapps "], ["5382","36",22.5,"3/4 oz Malibu rum "], ["5382","261",22.5,"3/4 oz Pineapple juice "], ["3502","108",22.5,"3/4 oz J�germeister "], ["3502","114",7.5,"1/4 oz Butterscotch schnapps "], ["5852","192",15,"1/2 oz Brandy "], ["5852","231",15,"1/2 oz Apricot brandy "], ["5852","170",15,"1/2 oz Anis "], ["5852","205",15,"1/2 oz White Creme de Menthe "], ["3731","316",60,"2 oz Vodka (Absolut) "], ["3731","146",60,"2 oz Midori melon liqueur "], ["3731","445",90,"3 oz fresh Orange juice "], ["5976","375",15,"1/2 oz Amaretto "], ["5976","240",15,"1/2 oz Coffee liqueur "], ["5976","464",15,"1/2 oz Peppermint schnapps "], ["4948","97",30,"1 oz RedRum "], ["4948","497",180,"6 oz Hawaiian Punch "], ["4948","227",0.9,"1 dash Banana liqueur (99 Bananas) "], ["4862","304",37.5,"1 1/4 oz Captain Morgan's Rum "], ["4862","166",22.5,"3/4 oz Orange Curacao "], ["4862","211",37.5,"1 1/4 oz Sweet and sour "], ["2279","462",37.5,"1 1/4 oz Tequila "], ["2279","301",37.5,"1 1/4 oz Red wine "], ["2279","213",30,"1 oz Triple sec "], ["2279","266",195,"6 1/2 oz Sour mix "], ["2279","388",3.7,"1 splash Lemon-lime soda "], ["2279","186",0.9,"1 dash Lime juice "], ["200","462",60,"2 oz Tequila "], ["200","424",60,"2 oz Lemon juice "], ["200","213",10,"2 tsp Triple sec "], ["200","381",10,"2 tsp Drambuie "], ["200","477",2.5,"1/2 tsp superfine Sugar "], ["200","106",0.9,"1 dash Bitters "], ["1985","261",270,"9 oz Pineapple juice "], ["1985","186",180,"6 oz Lime juice "], ["1985","214",90,"3 oz Light rum "], ["1985","335",45,"1 1/2 oz Spiced rum "], ["1985","375",45,"1 1/2 oz Amaretto "], ["2682","342",45,"1 1/2 oz Southern Comfort "], ["2682","249",15,"1/2 oz Bourbon (Old Grandad) "], ["2682","131",0.9,"1 dash Tabasco sauce "], ["2998","378",45,"1 1/2 oz Scotch "], ["2998","297",15,"1/2 oz Blue Curacao "], ["2998","333",15,"1/2 oz white Creme de Cacao "], ["206","22",360,"12 oz 7-Up or Sprite "], ["206","316",60,"2 oz Vodka (Absolut) "], ["206","115",45,"1 1/2 oz Goldschlager "], ["5879","36",15,"1/2 oz Malibu rum "], ["5879","342",15,"1/2 oz Southern Comfort "], ["5879","375",15,"1/2 oz Amaretto "], ["5879","266",3.7,"1 splash Sour mix "], ["5879","22",3.7,"1 splash 7-Up "], ["5879","82",3.7,"1 splash Grenadine "], ["4933","387",20,"2 cl Dark rum "], ["4933","240",20,"2 cl Coffee liqueur "], ["4978","114",22.13,"3/4 shot Butterscotch schnapps "], ["4978","270",7.38,"1/4 shot Bailey's irish cream "], ["4721","462",45,"1 1/2 oz Tequila "], ["4721","445",60,"2 oz Orange juice "], ["4721","261",60,"2 oz Pineapple juice "], ["4721","54",15,"1/2 oz Chambord raspberry liqueur "], ["209","173",45,"1 1/2 oz Canadian whisky "], ["209","179",15,"1/2 oz Cherry brandy "], ["209","445",7.5,"1 1/2 tsp Orange juice "], ["209","424",7.5,"1 1/2 tsp Lemon juice "], ["210","173",45,"1 1/2 oz Canadian whisky "], ["210","213",7.5,"1 1/2 tsp Triple sec "], ["210","106",0.9,"1 dash Bitters "], ["210","236",5,"1 tsp Powdered sugar "], ["2238","173",22.5,"3/4 oz Canadian whisky (Crown Royal) "], ["2238","324",75,"2 1/2 oz Canadian Apple cider "], ["5375","265",30,"1 oz Kahlua "], ["5375","422",30,"1 oz Cream "], ["5375","333",15,"1/2 oz Creme de Cacao "], ["5375","167",15,"1/2 oz Frangelico "], ["5955","316",14.75,"1/2 shot 100 proof Vodka "], ["5955","211",7.38,"1/4 shot Sweet and sour "], ["5955","445",3.7,"1 splash concentrated Orange juice "], ["5955","130",3.7,"1 splash Club soda "], ["5955","82",0.9,"1 dash Rose's Grenadine "], ["3339","344",360,"12 oz Dr. Pepper "], ["3339","85",37.5,"1 1/4 oz Bacardi 151 proof rum "], ["3339","375",22.5,"3/4 oz Amaretto "], ["4242","249",15,"1/2 oz Bourbon (Jim Beam) "], ["4242","375",15,"1/2 oz Amaretto "], ["214","431",22.5,"3/4 oz Coffee brandy "], ["214","316",22.5,"3/4 oz Vodka "], ["214","41",22.5,"3/4 oz Light cream "], ["5278","333",22.5,"3/4 oz white Creme de Cacao "], ["5278","10",22.5,"3/4 oz Creme de Banane "], ["5278","41",22.5,"3/4 oz Light cream "], ["215","376",45,"1 1/2 oz Gin "], ["215","176",15,"1/2 oz Maraschino liqueur "], ["215","445",30,"1 oz Orange juice "], ["1325","324",120,"4 oz Apple cider "], ["1325","335",15,"1/2 oz Captain Morgan's Spiced rum "], ["1325","468",15,"1/2 oz Coconut rum (Parrot Bay) "], ["1325","40",15,"1/2 oz Sour Apple Pucker "], ["5295","335",29.5,"1 shot Spiced rum (Captain Morgan's) "], ["5295","199",600,"20 oz Mountain Dew "], ["1996","335",29.5,"1 shot Spiced rum (Captain Morgan's) "], ["1996","344",180,"6 oz Dr. Pepper "], ["3871","335",45,"1 1/2 oz Captain Morgan's Spiced rum "], ["3871","314",90,"3 oz Cream soda "], ["2248","376",45,"1 1/2 oz Gin "], ["2248","408",5,"1 tsp Vermouth "], ["2248","205",15,"1/2 oz White Creme de Menthe "], ["5167","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["5167","22",120,"4 oz 7-Up "], ["216","335",30,"1 oz Spiced rum (Cpt. Morgan) "], ["216","115",30,"1 oz Goldschlager "], ["3317","304",29.5,"1 shot Captain Morgan's Silver Rum "], ["3317","468",44.25,"1 1/2 shot Parrot Bay Coconut rum "], ["3317","445",3.7,"1 splash Orange juice "], ["3317","372",3.7,"1 splash Cranberry juice "], ["4544","83",90,"3 oz Ginger ale "], ["4544","415",90,"3 oz Apple-cranberry juice "], ["4544","335",30,"1 oz Captain Morgan's Spiced rum "], ["4899","40",30,"1 oz Sour Apple Pucker "], ["4899","114",22.5,"3/4 oz Butterscotch schnapps "], ["217","333",15,"1/2 oz white Creme de Cacao "], ["217","10",7.5,"1/4 oz Creme de Banane "], ["217","265",7.5,"1/4 oz Kahlua "], ["4194","442",420,"13-14 oz Guinness stout "], ["4194","270",30,"1 oz Bailey's irish cream "], ["4194","21",30,"1 oz Whiskey (Jameson's) "], ["1931","304",20,"2 cl Rum (Bacardi superior) "], ["1931","359",10,"1 cl Cointreau "], ["1931","196",10,"1 cl White port "], ["218","349",45,"1 1/2 oz A�ejo rum "], ["218","176",15,"1/2 oz Maraschino liqueur "], ["218","213",5,"1 tsp Triple sec "], ["218","82",5,"1 tsp Grenadine "], ["2575","316",30,"1 oz SKYY Vodka "], ["2575","214",7.5,"1/4 oz Light rum (Bacardi) "], ["2575","36",7.5,"1/4 oz Malibu rum "], ["2575","261",120,"4 oz Pineapple juice "], ["2575","82",3.7,"1 splash Grenadine "], ["5596","391",45,"1 1/2 oz Vanilla vodka (Stoli) "], ["5596","36",22.5,"3/4 oz Malibu rum "], ["5596","261",3.7,"1 splash Pineapple juice "], ["2312","251",45,"1 1/2 oz Watermelon schnapps "], ["2312","36",15,"1/2 oz Malibu rum "], ["2312","213",45,"1 1/2 oz Triple sec "], ["2312","445",150,"5 oz Orange juice "], ["2312","2",90,"3 oz Lemonade "], ["2312","424",15,"1/2 oz Lemon juice "], ["1396","3",29.5,"1 shot Cognac (Hennessey) "], ["1396","505",360,"12 oz Malt liquor "], ["2086","309",30,"1 oz Peach schnapps "], ["2086","10",30,"1 oz Creme de Banane "], ["2086","36",30,"1 oz Malibu rum "], ["2086","445",120,"4 oz Orange juice "], ["2086","261",60,"2 oz Pineapple juice "], ["2086","422",60,"2 oz Cream "], ["3281","376",30,"3 cl Gin (Tanqueray) "], ["3281","425",10,"1 cl Pisang Ambon "], ["3281","186",10,"1 cl Lime juice (Monin) "], ["3281","290",70,"Fill with 7 cl Schweppes Russchian "], ["3450","316",45,"1 1/2 oz Vodka "], ["3450","443",30,"1 oz Soda water "], ["3450","416",75,"2 1/2 oz Grape juice "], ["4298","449",22.5,"3/4 oz Apple schnapps "], ["4298","114",22.5,"3/4 oz Butterscotch schnapps "], ["5333","342",45,"1 1/2 oz Southern Comfort "], ["5333","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["5333","309",30,"1 oz Peach schnapps "], ["5333","316",15,"1/2 oz Vodka (or more to taste) "], ["5333","161",180,"4-6 oz sweet Iced tea "], ["2545","316",30,"1 oz Vodka "], ["2545","213",30,"1 oz Triple sec "], ["2545","186",30,"1 oz Lime juice "], ["2545","297",7.5,"1/4 oz Blue Curacao "], ["1268","295",60,"2 oz Champagne "], ["1268","401",60,"2 oz Strega "], ["1793","270",15,"1/2 oz Bailey's irish cream "], ["1793","114",15,"1/2 oz Butterscotch schnapps "], ["1793","132",7.5,"1/4 oz Cinnamon schnapps "], ["1425","115",5,"1 tsp Goldschlager "], ["1425","270",60,"2 oz Bailey's irish cream "], ["1425","240",60,"2 oz Coffee liqueur "], ["221","214",60,"2 oz Light rum "], ["221","213",7.5,"1 1/2 tsp Triple sec "], ["221","186",7.5,"1 1/2 tsp Lime juice "], ["221","176",7.5,"1 1/2 tsp Maraschino liqueur "], ["3539","376",45,"1 1/2 oz Gin "], ["3539","88",30,"1 oz Dry Vermouth "], ["3539","205",30,"1 oz White Creme de Menthe "], ["223","376",45,"1 1/2 oz Gin "], ["223","88",30,"1 oz Dry Vermouth "], ["223","15",30,"1 oz Green Creme de Menthe "], ["225","304",180,"6 oz Rum "], ["225","364",360,"12 oz Black Cherry Cola "], ["3961","445",40,"4 cl Orange juice "], ["3961","316",30,"3 cl Vodka "], ["3961","111",20,"2 cl Advocaat "], ["3961","424",10,"1 cl Lemon juice "], ["1086","462",45,"1 1/2 oz Tequila "], ["1086","309",30,"1 oz Peach schnapps "], ["1086","297",30,"1 oz Blue Curacao "], ["1086","266",120,"4 oz Sour mix "], ["5915","182",45,"1 1/2 oz Crown Royal "], ["5915","309",15,"1/2 oz Peach schnapps "], ["4522","3",30,"1 oz Cognac "], ["4522","359",30,"1 oz Cointreau "], ["4522","424",30,"1 oz Lemon juice "], ["4522","214",45,"1 1/2 oz Light rum "], ["227","378",45,"1 1/2 oz Scotch "], ["227","42",30,"1 oz Irish whiskey "], ["227","424",15,"1/2 oz Lemon juice "], ["227","106",0.9,"1 dash Bitters "], ["3611","270",29.5,"1 shot Bailey's irish cream "], ["3611","186",14.75,"1/2 shot Lime juice "], ["3611","85",14.75,"1/2 shot 151 proof rum "], ["1299","270",44.5,"1 jigger Bailey's irish cream "], ["1299","186",44.5,"1 jigger Lime juice "], ["4982","435",45,"1 1/2 oz Orange vodka (Stoli Ohranj) "], ["4982","97",45,"1 1/2 oz RedRum "], ["4982","137",120,"4 oz Grapefruit-lemon soda (Squirt) "], ["4907","316",30,"1 oz Vodka "], ["4907","82",7.5,"1/4 oz Grenadine "], ["4907","270",7.5,"1/4 oz Bailey's irish cream "], ["4351","54",30,"1 oz Chambord raspberry liqueur "], ["4351","316",30,"1 oz Vodka "], ["4351","372",0.9,"1 dash Cranberry juice "], ["4351","261",3.7,"1 splash Pineapple juice "], ["5419","165",60,"2 oz Strawberry schnapps "], ["5419","270",15,"1/2 oz Bailey's irish cream "], ["5419","82",10,"2 tsp Grenadine "], ["4847","81",120,"4 oz Mad Dog 20/20 (any flavor) "], ["4847","295",180,"6 oz cheap Champagne "], ["4847","316",60,"2 oz Vodka "], ["231","387",45,"1 1/2 oz Dark rum "], ["231","179",15,"1/2 oz Cherry brandy "], ["231","424",15,"1/2 oz Lemon juice "], ["231","477",2.5,"1/2 tsp superfine Sugar "], ["232","192",45,"1 1/2 oz Brandy "], ["232","383",45,"1 1/2 oz Sweet Vermouth "], ["232","106",0.9,"1 dash Bitters "], ["233","231",30,"1 oz Apricot brandy "], ["233","368",30,"1 oz Sloe gin "], ["233","424",30,"1 oz Lemon juice "], ["5914","18",20,"2 cl Charleston Follies "], ["5914","133",20,"2 cl Aquavit "], ["5914","186",10,"1 cl Lime juice "], ["5914","29",30,"3 cl indian Tonic water "], ["5313","378",40,"4 cl Scotch "], ["5313","297",15,"1 1/2 cl Blue Curacao "], ["5313","88",0.9,"1 dash Dry Vermouth (Martini) "], ["5313","433",0.9,"1 dash Orange bitters "], ["3089","215",20,"2 cl Tia maria "], ["3089","217",10,"1 cl Hazelnut liqueur "], ["3089","270",10,"1 cl Bailey's irish cream or cream "], ["3089","422",5,"1/2 cl Cream "], ["4114","376",45,"1 1/2 oz Gin "], ["4114","213",15,"1/2 oz Triple sec "], ["4114","424",10,"2 tsp Lemon juice "], ["234","270",22.5,"3/4 oz Bailey's irish cream "], ["234","261",22.5,"3/4 oz Pineapple juice "], ["234","82",7.5,"1/4 oz Grenadine "], ["236","214",45,"1 1/2 oz Light rum "], ["236","179",15,"1/2 oz Cherry brandy "], ["236","41",15,"1/2 oz Light cream "], ["4368","342",10,"1/3 oz Southern Comfort "], ["4368","375",10,"1/3 oz Amaretto "], ["4368","82",10,"1/3 oz Grenadine "], ["1382","316",30,"1 oz Vodka "], ["1382","333",45,"1 1/2 oz Creme de Cacao "], ["1382","82",22.5,"3/4 oz Grenadine "], ["2208","465",22.5,"3/4 oz White chocolate liqueur (Godet) "], ["2208","412",22.5,"Layered on 3/4 oz Creme de Noyaux "], ["2716","342",30,"1 oz Southern Comfort 100 proof "], ["2716","364",120,"4 oz Cherry Cola "], ["239","342",15,"1/2 oz Southern Comfort "], ["239","375",15,"1/2 oz Amaretto "], ["239","266",30,"1 oz Sour mix "], ["239","82",3.7,"1 splash Grenadine "], ["6157","465",22.5,"3/4 oz Godet White chocolate liqueur "], ["6157","179",7.5,"1/4 oz Cherry brandy "], ["5695","179",120,"4 oz Cherry brandy "], ["5695","175",240,"8 oz Coca-Cola "], ["5988","342",120,"4 oz Southern Comfort "], ["5988","316",120,"4 oz Vodka "], ["5988","445",300,"10 oz Orange juice "], ["243","309",15,"1/2 oz Peach schnapps "], ["243","342",15,"1/2 oz Southern Comfort "], ["5826","316",15,"1/2 oz Vodka "], ["5826","270",15,"1/2 oz Bailey's irish cream "], ["5826","333",15,"1/2 oz white Creme de Cacao "], ["5118","316",45,"1 1/2 oz Vodka "], ["5118","224",15,"1/2 oz Godiva liqueur "], ["5118","256",15,"1/2 oz Vanilla schnapps "], ["2958","375",10,"1/3 oz Amaretto "], ["2958","487",10,"1/3 oz Dark Creme de Cacao "], ["2958","480",10,"1/3 oz Irish cream "], ["244","265",30,"1 oz Kahlua "], ["244","316",15,"1/2 oz Vodka "], ["244","64",150,"5 oz Chocolate ice-cream "], ["5950","333",15,"1/2 oz white Creme de Cacao "], ["5950","487",15,"1/2 oz Dark Creme de Cacao "], ["5950","480",15,"1/2 oz Irish cream "], ["5950","259",45,"1 1/2 oz Milk "], ["3846","375",30,"1 oz Amaretto "], ["3846","316",150,"0.5 oz Vodka "], ["3846","377",60,"2 oz Chocolate milk "], ["3846","82",5,"1 tsp Grenadine "], ["1088","333",29.5,"1 shot white Creme de Cacao "], ["1088","316",29.5,"1 shot Vodka "], ["5531","224",14.75,"1/2 shot Godiva liqueur "], ["5531","340",14.75,"1/2 shot Barenjager "], ["1331","316",60,"2 oz Vodka "], ["1331","333",15,"1/2 oz Creme de Cacao "], ["4403","391",75,"2 1/2 oz Vanilla vodka (Stoli) "], ["4403","361",15,"1/2 oz Chocolate liqueur (Godiva) "], ["1385","361",14.75,"1/2 shot Chocolate liqueur (Droste) "], ["1385","259",14.75,"1/2 shot Milk "], ["1385","375",0.9,"1 dash Amaretto "], ["246","387",30,"1 oz Dark rum "], ["246","85",15,"1/2 oz 151 proof rum "], ["246","487",15,"1/2 oz Dark Creme de Cacao "], ["246","205",10,"2 tsp White Creme de Menthe "], ["246","41",15,"1/2 oz Light cream "], ["5569","78",45,"1 1/2 oz Absolut Mandrin "], ["5569","333",45,"1 1/2 oz white Creme de Cacao "], ["1278","464",30,"1 oz Peppermint schnapps "], ["1278","377",90,"3 oz Chocolate milk "], ["1669","270",45,"1 1/2 oz Bailey's irish cream "], ["1669","54",45,"1 1/2 oz Chambord raspberry liqueur "], ["247","488",45,"1 1/2 oz Raspberry vodka (Stoli) "], ["247","333",30,"1 oz white Creme de Cacao "], ["2959","310",240,"8 oz Hot chocolate "], ["2959","198",29.5,"1 shot Aftershock "], ["5277","391",22.5,"3/4 oz Vanilla vodka (Stoli) "], ["5277","487",22.5,"3/4 oz Dark Creme de Cacao "], ["5277","291",15,"1/2 oz Cherry juice "], ["5277","422",3.7,"1 splash Cream "], ["5277","443",3.7,"1 splash Soda water "], ["5307","316",30,"1 oz Vodka "], ["5307","205",15,"1/2 oz White Creme de Menthe "], ["5307","333",15,"1/2 oz white Creme de Cacao "], ["3955","316",20,"2 cl Vodka "], ["3955","270",20,"2 cl Bailey's irish cream "], ["1898","206",14.75,"1/2 shot Eggnog "], ["1898","464",14.75,"1/2 shot Peppermint schnapps "], ["5742","462",75,"2 1/2 oz a�ejo or white Tequila "], ["5742","82",30,"1 oz Grenadine "], ["5742","200",30,"1 oz Rose's sweetened lime juice "], ["4248","85",30,"1 oz 151 proof rum (Bacardi) "], ["4248","227",30,"1 oz Banana liqueur (99 Bananas) "], ["4248","373",90,"3 oz Pina colada mix "], ["5889","274",10,"1/3 oz Melon liqueur "], ["5889","82",10,"1/3 oz Grenadine "], ["5889","480",10,"1/3 oz Irish cream "], ["5125","132",30,"1 oz Cinnamon schnapps (Goldschlagger) "], ["5125","391",60,"2 oz Vanilla vodka (Stoli Vanil) "], ["5305","115",29.5,"1 shot Goldschlager "], ["5305","461",257,"1 cup Apple juice "], ["5123","462",90,"3 oz Tequila "], ["5123","425",60,"2 oz Pisang Ambon "], ["5123","200",30,"1 oz Rose's sweetened lime juice "], ["4148","407",30,"1 oz Lemon vodka "], ["4148","2",60,"2 oz Lemonade "], ["4148","372",60,"2 oz Cranberry juice "], ["4148","186",3.7,"1 splash Lime juice "], ["3126","312",30,"1 oz Absolut Citron "], ["3126","315",15,"1/2 oz Grand Marnier "], ["3126","266",15,"1-1/2 oz Sour mix "], ["3126","22",30,"1 oz 7-Up "], ["3422","259",90,"3 oz Milk "], ["3422","468",22.5,"3/4 oz Coconut rum "], ["3422","55",22.5,"3/4 oz Cream of coconut "], ["3422","155",22.5,"3/4 oz Heavy cream "], ["3422","333",22.5,"3/4 oz Creme de Cacao "], ["254","316",45,"1 1/2 oz Vodka "], ["254","379",90,"3 oz Tomato juice "], ["254","321",30,"1 oz Clamato juice "], ["146","111",30,"1 oz Advocaat "], ["146","36",15,"1/2 oz Malibu rum "], ["146","342",3.7,"1 splash Southern Comfort "], ["146","261",60,"2 oz Pineapple juice "], ["5990","108",30,"1 oz J�germeister "], ["5990","85",30,"1 oz Bacardi 151 proof rum "], ["5990","1",7.5,"1/4 oz Firewater "], ["5990","145",7.5,"1/4 oz Rumple Minze "], ["255","375",15,"1/2 oz Amaretto "], ["255","333",15,"1/2 oz white Creme de Cacao "], ["255","213",15,"1/2 oz Triple sec "], ["255","316",15,"1/2 oz Vodka "], ["255","10",15,"1/2 oz Creme de Banane "], ["255","41",30,"1 oz Light cream "], ["5926","316",20,"2 cl Vodka "], ["5926","265",20,"2 cl Kahlua "], ["5926","83",200,"20 cl Ginger ale "], ["5154","383",30,"1 oz Sweet Vermouth "], ["5154","368",15,"1/2 oz Sloe gin "], ["5154","181",15,"1/2 oz Muscatel Wine "], ["3781","375",15,"1/2 oz Amaretto "], ["3781","270",15,"1/2 oz Bailey's irish cream "], ["3781","487",15,"1/2 oz Dark Creme de Cacao "], ["3781","215",15,"1/2 oz Tia maria "], ["3781","126",7.5,"1/4 oz Half-and-half "], ["3781","175",3.7,"1 splash Coca-Cola "], ["3494","214",15,"1/2 oz Light rum "], ["3494","316",15,"1/2 oz Vodka "], ["3494","265",15,"1/2 oz Kahlua "], ["3494","270",30,"1 oz Bailey's irish cream "], ["3494","41",30,"1 oz Light cream "], ["3494","175",30,"1 oz Coca-Cola "], ["5736","277",40,"4 cl Batida de Coco "], ["5736","142",20,"2 cl White rum "], ["5736","261",80,"8 cl Pineapple juice "], ["1756","376",30,"1 oz Gin "], ["1756","265",30,"1 oz Kahlua "], ["1756","422",60,"2 oz Cream "], ["259","256",30,"1 oz Vanilla schnapps "], ["259","36",30,"1 oz Malibu rum "], ["259","422",90,"3 oz Cream "], ["5029","297",60,"2 oz Blue Curacao "], ["5029","381",60,"2 oz Drambuie "], ["5952","431",22.5,"3/4 oz Coffee brandy "], ["5952","205",22.5,"3/4 oz White Creme de Menthe "], ["5952","41",22.5,"3/4 oz Light cream "], ["6108","265",11.25,"3/8 oz Kahlua "], ["6108","333",7.5,"1/4 oz Creme de Cacao "], ["6108","167",3.75,"1/8 oz Frangelico "], ["6108","270",7.5,"1/4 oz Bailey's irish cream "], ["264","375",29.5,"1 shot Amaretto "], ["264","175",360,"8-12 oz Coca-Cola "], ["5214","265",10,"1/3 oz Kahlua "], ["5214","375",10,"1/3 oz Amaretto "], ["5214","3",10,"1/3 oz Cognac (Hennessy) "], ["3064","462",45,"1 1/2 oz chilled Tequila "], ["3064","379",45,"1 1/2 oz Tomato juice "], ["3064","131",3.6,"1-4 dash Tabasco sauce "], ["3064","168",3.6,"1-4 dash Black pepper "], ["5902","62",37.5,"1 1/4 oz Yukon Jack "], ["5902","269",22.5,"3/4 oz Strawberry liqueur "], ["5902","445",120,"4 oz Orange juice "], ["3135","316",30,"1 oz Vodka "], ["3135","342",30,"1 oz Southern Comfort "], ["3135","368",15,"1/2 oz Sloe gin "], ["3135","375",30,"1 oz Amaretto "], ["3135","445",30,"1 oz Orange juice "], ["3135","372",60,"2 oz Cranberry juice "], ["3135","22",3.7,"1 splash 7-Up "], ["266","88",75,"2 1/2 oz Dry Vermouth "], ["266","192",5,"1 tsp Brandy "], ["266","213",2.5,"1/2 tsp Triple sec "], ["266","236",2.5,"1/2 tsp Powdered sugar "], ["266","106",0.9,"1 dash Bitters "], ["1475","192",60,"2 oz Brandy "], ["1475","327",30,"1 oz Campari "], ["1475","424",30,"1 oz fresh Lemon juice "], ["2533","342",90,"3 oz Southern Comfort "], ["2533","88",22.5,"3/4 oz Dry Vermouth (Noilly Prat) "], ["269","387",45,"1 1/2 oz Dark rum "], ["269","479",15,"1/2 oz Galliano "], ["269","487",10,"2 tsp Dark Creme de Cacao "], ["2554","316",29.5,"1 shot Vodka "], ["2554","270",29.5,"1 shot Bailey's irish cream "], ["3044","265",15,"1/2 oz Kahlua "], ["3044","270",15,"1/2 oz Bailey's irish cream "], ["3044","85",5,"1 tsp Bacardi 151 proof rum "], ["3457","400",22.5,"3/4 oz Mandarine Napoleon "], ["3457","375",15,"1/2 oz Amaretto di Saranno "], ["3457","10",15,"1/2 oz Creme de Banane (Bols) "], ["3457","126",30,"1 oz Half-and-half "], ["3457","82",0.9,"1 dash Grenadine (Tavern) "], ["4036","444",29.5,"1 shot Hot Damn "], ["4036","464",29.5,"1 shot Peppermint schnapps "], ["1984","182",30,"1 oz Crown Royal "], ["1984","174",15,"1/2 oz Blackberry brandy "], ["1984","22",15,"1/2 oz 7-Up "], ["4335","270",30,"1 oz Bailey's irish cream "], ["4335","114",15,"1/2 oz Butterscotch schnapps "], ["6103","82",15,"1/2 oz Grenadine "], ["6103","237",15,"1/2 oz Raspberry liqueur (Chambord) "], ["6103","198",7.5,"1/4 oz Aftershock "], ["6103","365",15,"1/2 oz Absolut Kurant "], ["2652","316",37.5,"1 1/4 oz Vodka "], ["2652","83",180,"6 oz Ginger ale "], ["5692","490",45,"1 1/2 oz Citrus vodka (Smirnoff) "], ["5692","462",22.5,"3/4 oz Tequila "], ["5692","297",30,"1 oz Blue Curacao "], ["5692","266",30,"1 oz Sour mix "], ["277","88",22.5,"3/4 oz Dry Vermouth "], ["277","376",22.5,"3/4 oz Gin "], ["277","28",22.5,"3/4 oz Dubonnet Rouge "], ["278","192",45,"1 1/2 oz Brandy "], ["278","280",15,"1/2 oz Fernet Branca "], ["278","205",30,"1 oz White Creme de Menthe "], ["3650","365",60,"2 oz Absolut Kurant "], ["3650","315",30,"1 oz Grand Marnier "], ["3650","186",3.7,"1 splash Lime juice "], ["3650","372",3.7,"1 splash Cranberry juice "], ["279","312",37.5,"1 1/4 oz Absolut Citron "], ["279","186",7.5,"1/4 oz Lime juice "], ["279","213",7.5,"1/4 oz Triple sec or Cointreau "], ["279","372",64.25,"1/4 cup Cranberry juice "], ["2446","36",45,"1 1/2 oz Malibu rum "], ["2446","309",45,"1 1/2 oz Peach schnapps "], ["2446","82",3.7,"1 splash Grenadine "], ["5714","316",45,"1 1/2 oz Vodka (Stolichnaya) "], ["5714","3",15,"1/2 oz Cognac "], ["5714","179",15,"1/2 oz Cherry brandy "], ["4341","316",120,"4 oz Vodka "], ["4341","304",120,"4 oz Rum "], ["4341","445",360,"12 oz Orange juice "], ["2609","85",30,"1 oz Bacardi 151 proof rum "], ["2609","145",30,"1 oz Rumple Minze "], ["2609","232",30,"1 oz Wild Turkey, 101 proof "], ["5418","136",14.75,"1/2 shot Blackberry schnapps (Blackhaus) "], ["5418","372",14.75,"1/2 shot Cranberry juice "], ["3768","316",45,"1 1/2 oz Vodka "], ["3768","372",60,"2 oz Cranberry juice "], ["3768","418",60,"2 oz Collins mix "], ["5275","375",45,"1 1/2 oz Amaretto "], ["5275","372",120,"4 oz Cranberry juice "], ["6212","463",45,"1 1/2 oz Cranberry vodka (Finlandia) "], ["6212","514",22.5,"3/4 oz Sour apple liqueur "], ["6212","372",15,"1/2 oz Cranberry juice "], ["1122","445",60,"2 oz Orange juice "], ["1122","372",60,"2 oz Cranberry juice "], ["5721","462",45,"1 1/2 oz Tequila (Cuervo) "], ["5721","200",30,"1 oz Rose's sweetened lime juice "], ["5721","213",45,"1 1/2 oz Triple sec "], ["5721","211",45,"1 1/2 oz Sweet and sour "], ["5721","372",60,"2 oz Cranberry juice "], ["1441","463",15,"1/2 oz Cranberry vodka or schnapps "], ["1441","49",15,"1/2 oz Wild Spirit liqueur "], ["1052","461",257,"1 cup Apple juice "], ["1052","259",257,"1 cup Milk "], ["6188","227",30,"1 oz Banana liqueur "], ["6188","328",60,"2 oz strawberry Daiquiri mix "], ["6188","445",60,"2 oz Orange juice "], ["281","167",15,"1/2 oz Frangelico "], ["281","270",15,"1/2 oz Bailey's irish cream "], ["281","333",7.5,"1/4 oz Creme de Cacao "], ["281","375",7.5,"1/4 oz Amaretto "], ["281","422",3.7,"1 splash Cream "], ["282","61",45,"1 1/2 oz Vanilla liqueur "], ["282","445",90,"3 oz Orange juice "], ["282","259",45,"1 1/2 oz Milk "], ["5911","333",30,"1 oz Creme de Cacao "], ["5911","167",30,"1 oz Frangelico "], ["5911","259",120,"4 oz Milk "], ["5045","375",30,"1 oz Amaretto "], ["5045","480",30,"1 oz Irish cream "], ["5045","309",30,"1 oz Peach schnapps "], ["5045","422",30,"1 oz Cream "], ["287","376",60,"2 oz Gin "], ["287","424",10,"2 tsp Lemon juice "], ["287","82",2.5,"1/2 tsp Grenadine "], ["287","451",15,"1/2 oz Tawny port "], ["2400","119",7.5,"1/4 oz Absolut Vodka "], ["2400","36",7.5,"1/4 oz Malibu rum "], ["2400","54",7.5,"1/4 oz Chambord raspberry liqueur "], ["2400","34",7.5,"1/4 oz Maui "], ["2400","342",7.5,"1/4 oz Southern Comfort "], ["2400","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["2400","372",7.5,"1/4 oz Cranberry juice "], ["2400","323",7.5,"1/4 oz Sprite or 7-Up "], ["3979","297",30,"1 oz Blue Curacao "], ["3979","316",30,"1 oz Vodka "], ["3979","303",15,"1/2 oz White wine "], ["3979","82",15,"1/2 oz Grenadine "], ["5867","182",15,"1/2 oz Crown Royal "], ["5867","85",15,"1/2 oz 151 proof rum "], ["5867","462",15,"1/2 oz Tequila "], ["5350","85",30,"1 oz 151 proof rum "], ["5350","226",30,"1 oz Bacardi Limon "], ["5350","312",30,"1 oz Absolut Citron "], ["5350","145",30,"1 oz Rumple Minze "], ["5350","297",30,"1 oz Blue Curacao "], ["4307","65",135,"4 1/2 oz strawberry Guava juice "], ["4307","297",30,"1 oz Blue Curacao "], ["4307","316",30,"1 oz Vodka (Absolut) "], ["4320","62",30,"1 oz Yukon Jack "], ["4320","375",22.5,"3/4 oz Amaretto "], ["4320","372",67.5,"2 1/4 oz Cranberry juice "], ["5904","142",300,"30 cl White rum (Bacardi) "], ["5904","333",100,"10 cl white Creme de Cacao (Bols) "], ["5904","482",300,"30 cl hot Coffee "], ["5904","477",15,"3 tsp Sugar "], ["5904","422",200,"20 cl double Cream "], ["3669","349",75,"2 1/2 oz A�ejo rum "], ["3669","67",15,"1/2 oz Ricard "], ["3838","3",30,"1 oz Cognac "], ["3838","269",15,"1/2 oz Strawberry liqueur "], ["3838","359",15,"1/2 oz Cointreau "], ["3838","445",30,"1 oz Orange juice "], ["3838","424",0.9,"1 dash Lemon juice "], ["2401","342",30,"1 oz Southern Comfort "], ["2401","407",15,"1/2 oz Lemon vodka (Stoli) "], ["2401","445",90,"3 oz Orange juice "], ["5251","115",15,"1/2 oz Goldschlager "], ["5251","141",15,"1/2 oz Becherovka "], ["1603","108",30,"1 oz J�germeister "], ["1603","312",30,"1 oz Absolut Citron "], ["1603","2",300,"10 oz Lemonade "], ["1401","340",22.5,"3/4 oz Barenjager "], ["1401","145",22.5,"3/4 oz Rumple Minze "], ["1401","108",22.5,"3/4 oz J�germeister "], ["5348","214",44.5,"1 jigger Light rum "], ["5348","186",30,"1 oz Lime juice "], ["5348","477",5,"1 tsp Sugar "], ["3173","249",45,"1 1/2 oz Bourbon (Jim Beam) "], ["3173","462",45,"1 1/2 oz Tequila (Cuervo) "], ["5009","15",15,"1/2 oz Green Creme de Menthe "], ["5009","115",15,"1/2 oz Goldschlager "], ["1455","114",15,"1/2 oz Butterscotch schnapps (DeKuyper Buttershots) "], ["1455","15",7.5,"1/4 oz Green Creme de Menthe "], ["1455","270",7.5,"1/4 oz Bailey's irish cream "], ["1455","82",7.5,"1/4 oz Grenadine "], ["293","21",2250,"0.75 oz Whiskey (Black Velvet recommended) "], ["293","444",750,"0.25 oz Hot Damn "], ["2427","192",60,"2 oz Brandy "], ["2427","213",15,"1/2 oz Triple sec "], ["2427","124",5,"1 tsp Anisette "], ["295","316",22.5,"3/4 oz Vodka "], ["295","297",15,"1/2 oz Blue Curacao "], ["295","408",0.9,"1 dash Vermouth "], ["295","372",45,"1 1/2 oz Cranberry juice "], ["5218","462",180,"6 oz Tequila "], ["5218","55",240,"8 oz Cream of coconut "], ["5218","261",240,"8 oz Pineapple juice "], ["3815","319",60,"2 oz Gosling's Black rum "], ["3815","156",240,"8 oz Ginger beer "], ["1536","265",22.5,"3/4 oz Kahlua "], ["1536","115",3.75,"1/8 oz Goldschlager "], ["1536","259",3.75,"1/8 oz Milk "], ["297","214",45,"1 1/2 oz Light rum "], ["297","155",30,"1 oz Heavy cream "], ["297","333",15,"1/2 oz white Creme de Cacao "], ["3574","316",15,"1/2 oz Vodka "], ["3574","213",7.5,"1/4 oz Triple sec "], ["3574","229",22.5,"3/4 oz Lemon schnapps (Lemon Tattoo) "], ["3574","445",15,"1/4 - 1/2 oz Orange juice "], ["3574","126",22.5,"1/2 - 3/4 oz Half-and-half "], ["3574","82",3.75,"1/8 oz Grenadine "], ["5324","391",75,"2 1/2 oz Vanilla vodka (Stoli Vanil) "], ["5324","213",15,"1/2 oz Triple sec "], ["5324","22",75,"2 1/2 oz 7-Up "], ["3696","270",30,"1 oz Bailey's irish cream "], ["3696","462",30,"1 oz Tequila "], ["5547","119",30,"1 oz Absolut Vodka "], ["5547","417",30,"1 oz Coconut liqueur "], ["5547","375",30,"1 oz Amaretto "], ["5547","61",30,"1 oz Vanilla liqueur "], ["5665","85",30,"1 oz 151 proof rum "], ["5665","462",30,"Layer 1 oz Tequila "], ["5665","108",30,"Layer 1 oz J�germeister "], ["1686","145",6,"1/5 oz Rumple Minze "], ["1686","265",6,"1/5 oz Kahlua "], ["1686","15",6,"1/5 oz Green Creme de Menthe "], ["1686","270",6,"1/5 oz Bailey's irish cream "], ["1686","316",6,"1/5 oz Vodka "], ["1528","145",20,"2/3 oz Rumple Minze "], ["1528","108",20,"2/3 oz J�germeister "], ["3833","295",150,"5 oz well chilled Champagne "], ["3833","332",30,"1 oz Pernod "], ["4097","85",30,"1 oz Bacardi 151 proof rum "], ["4097","376",30,"1 oz Gin (Tanqueray) "], ["4097","175",90,"3 oz Coca-Cola "], ["5794","376",30,"3 cl Gin (Beefeater) "], ["5794","297",20,"2 cl Blue Curacao "], ["5794","424",10,"1 cl Lemon juice "], ["5794","261",40,"4 cl Pineapple juice "], ["5794","443",50,"5 cl Soda water "], ["299","375",45,"1 1/2 oz Amaretto "], ["299","468",45,"1 1/2 oz Coconut rum "], ["299","22",180,"6 oz 7-Up "], ["3214","387",45,"1 1/2 oz Dark rum "], ["3214","349",15,"1/2 oz A�ejo rum "], ["3214","265",15,"1/2 oz Kahlua "], ["3214","155",15,"1/2 oz Heavy cream "], ["300","359",60,"2 oz Cointreau "], ["300","213",60,"2 oz Triple sec "], ["300","424",60,"2 oz Lemon juice "], ["4623","71",15,"1/2 oz Everclear "], ["4623","445",15,"1/2 oz Orange juice "], ["302","448",30,"1 oz Apple brandy "], ["302","376",30,"1 oz Gin "], ["302","170",5,"1 tsp Anis "], ["302","82",2.5,"1/2 tsp Grenadine "], ["304","349",30,"1 oz A�ejo rum "], ["304","249",15,"1/2 oz Bourbon "], ["304","487",15,"1/2 oz Dark Creme de Cacao "], ["304","179",15,"1/2 oz Cherry brandy "], ["304","155",30,"1 oz Heavy cream "], ["1738","131",30,"1 oz Tabasco sauce "], ["1738","462",30,"Fill with 1 oz Tequila "], ["4643","473",150,"5 oz Creme de Cassis "], ["4643","316",30,"1 oz Stoli Vodka "], ["2465","83",180,"6 oz Ginger ale / soda (Vernors Original) "], ["2465","132",59,"1-2 shot Cinnamon schnapps "], ["5496","88",45,"1 1/2 oz Dry Vermouth "], ["5496","330",45,"1 1/2 oz Port "], ["5496","424",2.5,"1/2 tsp Lemon juice "], ["2914","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["2914","199",360,"12 oz Mountain Dew "], ["3323","21",60,"2 oz Whiskey "], ["3323","199",300,"10 oz Mountain Dew "], ["306","376",60,"2 oz Gin "], ["306","303",150,"0.5 oz White wine "], ["1961","214",60,"2 oz Light rum "], ["1961","249",15,"1/2 oz Bourbon "], ["1961","487",5,"1 tsp Dark Creme de Cacao "], ["1961","179",5,"1 tsp Cherry brandy "], ["2598","309",29.5,"1 shot Peach schnapps "], ["2598","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["2598","342",14.75,"1/2 shot Southern Comfort "], ["2598","62",14.75,"1/2 shot Yukon Jack "], ["2598","261",3.7,"1 splash Pineapple juice "], ["2598","372",3.7,"1 splash Cranberry juice "], ["2598","315",3.7,"1 splash Grand Marnier "], ["1751","270",19.67,"2/3 shot Bailey's irish cream "], ["1751","182",9.83,"1/3 shot Crown Royal "], ["1962","316",30,"1 oz Vodka (Absolut) "], ["1962","213",30,"1 oz Triple sec "], ["1962","259",240,"8 oz Milk "], ["1962","409",5,"1 tsp Cinnamon "], ["5246","304",120,"4 oz Rum (Captain Morgan) "], ["5246","29",120,"4 oz Tonic water "], ["5246","445",3.7,"1 splash Orange juice "], ["3195","85",20,"2/3 oz Bacardi 151 proof rum "], ["3195","71",20,"2/3 oz Everclear "], ["3195","145",20,"2/3 oz Rumple Minze "], ["6011","54",30,"1 oz Chambord raspberry liqueur "], ["6011","297",30,"1 oz Blue Curacao "], ["6011","375",30,"1 oz Amaretto "], ["6011","335",30,"1 oz Spiced rum "], ["6011","266",30,"1 oz Sour mix "], ["5984","54",30,"1 oz Chambord raspberry liqueur "], ["5984","36",30,"1 oz Malibu rum "], ["5984","266",3.7,"1 splash Sour mix "], ["5984","261",3.7,"1 splash Pineapple juice "], ["5984","297",15,"1/2 oz Blue Curacao "], ["3711","316",15,"1/2 oz Vodka "], ["3711","375",15,"1/2 oz Amaretto "], ["3711","342",15,"1/2 oz Southern Comfort "], ["3711","146",15,"1/2 oz Midori melon liqueur "], ["3711","54",15,"1/2 oz Chambord raspberry liqueur "], ["3711","445",15,"1/2 oz Orange juice "], ["2572","205",30,"1 oz White Creme de Menthe "], ["2572","316",30,"1 oz Vodka "], ["2572","265",30,"1 oz Kahlua "], ["2572","270",30,"1 oz Bailey's irish cream "], ["3318","376",75,"2 1/2 oz Gin "], ["3318","329",3.7,"1 splash Olive juice "], ["2567","2",240,"8 oz Lemonade "], ["2567","316",120,"4 oz Vodka "], ["2567","323",60,"2 oz Sprite "], ["4661","480",45,"1 1/2 oz Irish cream "], ["4661","387",30,"1 oz Dark rum "], ["4661","3",45,"1 1/2 oz Cognac "], ["5448","192",45,"1 1/2 oz Brandy "], ["5448","265",15,"1/2 oz Kahlua "], ["312","12",15,"1/2 oz Blavod vodka "], ["312","297",15,"1/2 oz Blue Curacao "], ["312","157",15,"1/2 oz Passoa "], ["312","445",45,"1 1/2 oz Orange juice "], ["312","372",45,"1 1/2 oz Cranberry juice "], ["1955","108",45,"1 1/2 oz J�germeister "], ["1955","270",45,"1 1/2 oz Bailey's irish cream "], ["6145","146",30,"1 oz Midori melon liqueur "], ["6145","115",30,"1 oz Goldschlager "], ["315","249",45,"1 1/2 oz Bourbon "], ["315","205",2.5,"1/2 tsp White Creme de Menthe "], ["315","213",2.5,"1/2 tsp Triple sec "], ["317","249",60,"2 oz Bourbon "], ["317","205",2.5,"1/2 tsp White Creme de Menthe "], ["317","213",1.25,"1/4 tsp Triple sec "], ["317","236",2.5,"1/2 tsp Powdered sugar "], ["317","106",0.9,"1 dash Bitters "], ["5755","249",90,"3 oz Bourbon "], ["5755","205",15,"1/2 oz White Creme de Menthe "], ["5755","342",2.5,"1/2 tsp Southern Comfort "], ["2501","132",15,"1/2 oz Cinnamon schnapps "], ["2501","276",15,"1/2 oz Root beer schnapps "], ["2501","22",30,"1 oz 7-Up "], ["2501","270",15,"1/2 oz Bailey's irish cream "], ["1287","316",90,"3 oz Vodka "], ["1287","392",360,"12 oz Beer "], ["1287","342",120,"4 oz Southern Comfort "], ["3451","71",9.83,"1/3 shot Everclear "], ["3451","145",9.83,"1/3 shot Rumple Minze "], ["3451","115",9.83,"1/3 shot Goldschlager "], ["1629","270",22.5,"3/4 oz Bailey's irish cream "], ["1629","145",22.5,"3/4 oz Rumple Minze "], ["5699","119",60,"2 oz Absolut Vodka "], ["5699","427",257,"1 cup Ice "], ["5699","372",120,"4 oz Cranberry juice "], ["5699","266",120,"4 oz Sour mix "], ["1368","36",45,"1 1/2 oz Malibu rum "], ["1368","266",60,"2 oz Sour mix "], ["1368","443",60,"2 oz Soda water "], ["3856","256",45,"1 1/2 oz Vanilla schnapps (Dr. McGillicuddy's) "], ["3856","291",30,"1 oz unsweetened Cherry juice "], ["3856","372",15,"1/2 oz Cranberry juice "], ["3856","422",3.7,"1 splash Cream "], ["5475","376",15,"1/2 oz Gin "], ["5475","316",15,"1/2 oz Vodka "], ["5475","297",15,"1/2 oz Blue Curacao "], ["5475","333",15,"1/2 oz Creme de Cacao "], ["5475","146",15,"1/2 oz Midori melon liqueur "], ["5475","126",120,"4 oz Half-and-half "], ["5475","82",7.5,"1/4 oz Grenadine "], ["4782","376",30,"1 oz Tanqueray Gin "], ["4782","378",30,"1 oz Single malt Scotch "], ["4160","115",22.5,"3/4 oz Goldschlager "], ["4160","202",22.5,"3/4 oz Gold tequila (Cuervo) "], ["2654","375",15,"1/2 oz Amaretto "], ["2654","342",7.5,"1/4 oz Southern Comfort "], ["2654","10",7.5,"1/4 oz Creme de Banane "], ["4673","449",30,"1 oz Apple schnapps "], ["4673","251",30,"1 oz Watermelon schnapps "], ["5083","122",14.75,"1/2 shot Jack Daniels "], ["5083","62",14.75,"1/2 shot Yukon Jack "], ["4726","316",40,"4 cl Vodka "], ["4726","376",40,"4 cl Gin "], ["4726","142",40,"4 cl White rum "], ["4726","462",40,"4 cl Tequila "], ["4726","436",40,"4 cl white Curacao "], ["4726","186",40,"4 cl Lime juice "], ["4726","109",260,"26 cl Cola "], ["5148","375",30,"1 oz Amaretto "], ["5148","304",30,"1 oz Rum "], ["4935","445",60,"2 oz Orange juice "], ["4935","388",30,"1 oz Lemon-lime soda "], ["4935","211",30,"1 oz Sweet and sour mix "], ["4935","21",30,"1 oz Whiskey "], ["4935","309",30,"1 oz Peach schnapps "], ["4935","82",10,"1/3 oz Grenadine "], ["2723","392",240,"8 oz Beer "], ["2723","175",120,"4 oz Coca-Cola "], ["2723","265",30,"1 oz Kahlua "], ["2723","375",30,"1 oz Amaretto "], ["2723","179",15,"1/2 oz Cherry brandy "], ["3580","464",30,"1 oz Peppermint schnapps "], ["3580","344",360,"12 oz Dr. Pepper "], ["3706","130",90,"3 oz Club soda "], ["3706","119",90,"3 oz Absolut Vodka "], ["3706","198",120,"4 oz Aftershock "], ["4838","344",180,"6 oz Dr. Pepper "], ["4838","198",30,"1 oz Aftershock "], ["2962","1",15,"1/2 oz Firewater "], ["2962","85",15,"1/2 oz Bacardi 151 proof rum "], ["2055","192",45,"1 1/2 oz Brandy "], ["2055","213",22.5,"3/4 oz Triple sec "], ["2055","124",1.25,"1/4 tsp Anisette "], ["1360","375",30,"1 oz Amaretto "], ["1360","213",30,"1 oz Triple sec "], ["1360","445",60,"2 oz Orange juice "], ["1360","126",60,"2 oz Half-and-half "], ["3488","270",45,"1 1/2 oz Bailey's irish cream "], ["3488","445",105,"3 1/2 oz Orange juice "], ["323","192",45,"1 1/2 oz Brandy "], ["323","423",30,"1 oz Applejack "], ["323","383",30,"1 oz Sweet Vermouth "], ["324","214",45,"1 1/2 oz Light rum "], ["324","179",10,"2 tsp Cherry brandy "], ["324","213",10,"2 tsp Triple sec "], ["324","186",15,"1/2 oz Lime juice "], ["2899","170",45,"1 1/2 oz Anis "], ["2899","383",15,"1/2 oz Sweet Vermouth "], ["2899","88",15,"1/2 oz Dry Vermouth "], ["1392","265",22.5,"3/4 oz Kahlua "], ["1392","270",22.5,"3/4 oz Bailey's irish cream "], ["1392","173",22.5,"3/4 oz Canadian whisky (Canadian Club) "], ["4250","182",15,"1/2 oz Crown Royal "], ["4250","265",15,"1/2 oz Kahlua "], ["4250","270",10,"Float 1/3 oz Bailey's irish cream "], ["3170","316",90,"3 oz Vodka "], ["3170","376",60,"2 oz dry Gin "], ["3170","309",135,"4 1/2 oz Peach schnapps "], ["2484","270",29.5,"1 shot Bailey's irish cream "], ["2484","265",29.5,"1 shot Kahlua "], ["2484","85",29.5,"1 shot Bacardi 151 proof rum "], ["5157","122",60,"2 oz Jack Daniels "], ["5157","317",60,"2 oz Jose Cuervo "], ["5044","265",15,"1/2 oz Kahlua "], ["5044","146",15,"1/2 oz Midori melon liqueur "], ["5044","270",15,"1/2 oz Bailey's irish cream "], ["5044","462",15,"1/2 oz Tequila "], ["5404","198",15,"1/2 oz Aftershock "], ["5404","173",15,"1/2 oz Canadian whisky "], ["5161","297",10,"1/3 oz Blue Curacao "], ["5161","362",10,"1/3 oz Pi�a Colada "], ["5161","82",10,"1/3 oz Grenadine "], ["1053","36",20,"2 cl Malibu rum "], ["1053","362",10,"1 cl Pi�a Colada "], ["1053","157",10,"1 cl Passoa "], ["1053","425",10,"1 cl Pisang Ambon "], ["1053","261",60,"6 cl Pineapple juice "], ["3565","318",15,"1/2 oz Chocolate mint liqueur "], ["3565","227",15,"1/2 oz Banana liqueur "], ["3565","41",60,"2 oz Light cream "], ["3565","216",5,"1 tsp shaved sweet Chocolate "], ["6000","376",30,"1 oz Gin "], ["6000","249",30,"1 oz Bourbon "], ["6000","245",22.5,"3/4 oz Absinthe (Deva) "], ["4000","105",45,"1 1/2 oz dry Sherry "], ["4000","88",45,"1 1/2 oz Dry Vermouth "], ["4000","106",0.9,"1 dash Bitters "], ["1346","487",45,"1 1/2 oz Dark Creme de Cacao "], ["1346","316",15,"1/2 oz Vodka "], ["1346","287",5,"1 tsp Chocolate syrup "], ["1346","179",5,"1 tsp Cherry brandy "], ["3509","316",50,"5 cl Vodka "], ["3509","372",50,"5 cl Cranberry juice "], ["3509","297",25,"2 1/2 cl Blue Curacao "], ["5071","462",180,"6 oz Tequila "], ["5071","316",180,"6 oz Vodka "], ["5071","387",180,"6 oz Dark rum "], ["5071","376",180,"6 oz Gin "], ["5071","261",360,"12 oz sweetened Pineapple juice "], ["5071","21",180,"6 oz Whiskey "], ["4186","316",30,"1 oz Vodka (Stoli) "], ["4186","146",30,"1 oz Midori melon liqueur "], ["4186","297",30,"1 oz Blue Curacao (Bols) "], ["4186","404",30,"1 oz Grapefruit juice "], ["4186","261",60,"2 oz Pineapple juice "], ["4186","445",60,"2 oz Orange juice "], ["4958","297",15,"1/2 oz Blue Curacao "], ["4958","376",15,"1/2 oz Gin "], ["4958","22",30,"1 oz 7-Up or Sprite "], ["4958","372",15,"1/2 oz Cranberry juice "], ["3993","316",30,"1 oz Vodka "], ["3993","309",30,"1 oz Peach schnapps "], ["3993","297",15,"1/2 oz Blue Curacao "], ["3993","261",60,"2 oz Pineapple juice "], ["3993","445",60,"2 oz Orange juice "], ["3993","443",3.7,"1 splash Soda water "], ["333","387",44.5,"1 jigger Dark rum "], ["333","383",44.5,"1 jigger red Sweet Vermouth "], ["333","82",3.7,"1 splash Grenadine "], ["2063","214",45,"1 1/2 oz Light rum "], ["2063","186",15,"1/2 oz Lime juice "], ["2063","383",15,"1/2 oz Sweet Vermouth "], ["2063","333",0.9,"1 dash white Creme de Cacao "], ["2063","82",0.9,"1 dash Grenadine "], ["3255","375",30,"1 oz Amaretto "], ["3255","342",30,"1 oz Southern Comfort "], ["3255","227",30,"1 oz Banana liqueur "], ["3255","261",150,"5 oz Pineapple juice "], ["3079","297",22.5,"3/4 oz Blue Curacao "], ["3079","214",22.5,"3/4 oz Light rum "], ["3079","211",60,"2 oz Sweet and sour mix "], ["3079","175",3.7,"1 splash Coca-Cola "], ["3940","462",45,"1 1/2 oz Tequila "], ["3940","297",15,"1/2 oz Blue Curacao "], ["3940","200",15,"1/2 oz Rose's sweetened lime juice "], ["5168","316",37.5,"1 1/4 oz Vodka "], ["5168","297",15,"1/2 oz Blue Curacao "], ["5168","211",60,"2 oz Sweet and sour "], ["5168","22",3.7,"1 splash 7-Up "], ["4734","21",60,"2 oz Whiskey "], ["4734","323",180,"6 oz Sprite "], ["4734","297",60,"2 oz Blue Curacao "], ["4734","274",30,"1 oz Melon liqueur "], ["5366","480",15,"1/2 oz Irish cream "], ["5366","115",15,"1/2 oz Goldschlager "], ["5366","108",10,"1/3 oz J�germeister "], ["5366","145",10,"1/3 oz Rumple Minze "], ["4188","387",45,"1 1/2 oz Dark rum "], ["4188","10",15,"1/2 oz Creme de Banane "], ["4188","424",15,"1/2 oz Lemon juice "], ["3512","36",240,"8 oz Malibu rum "], ["3512","146",120,"4 oz Midori melon liqueur "], ["3512","297",120,"4 oz Blue Curacao "], ["3512","211",3.7,"1 splash Sweet and sour "], ["3512","323",3.7,"1 splash Sprite "], ["3739","85",15,"1/2 oz Bacardi 151 proof rum "], ["3739","232",15,"1/2 oz Wild Turkey 101 proof "], ["3739","316",15,"1/2 oz Vodka "], ["341","387",60,"2 oz Dark rum "], ["341","424",15,"1/2 oz Lemon juice "], ["341","29",120,"4 oz Tonic water "], ["3749","146",60,"2 oz Midori melon liqueur "], ["3749","468",30,"1 oz Coconut rum (Hiram Walker) "], ["3749","373",180,"6 oz Pina colada mix "], ["4553","204",30,"1 oz cold Espresso "], ["4553","316",45,"1 1/2 oz Vodka (Absolut) "], ["4553","265",45,"1 1/2 oz Kahlua "], ["4553","333",30,"1 oz white Creme de Cacao "], ["342","205",22.5,"3/4 oz White Creme de Menthe "], ["342","231",22.5,"3/4 oz Apricot brandy "], ["342","213",22.5,"3/4 oz Triple sec "], ["344","333",45,"1 1/2 oz Creme de Cacao "], ["344","297",30,"1 oz Blue Curacao "], ["344","214",15,"1/2 oz Light rum "], ["4800","316",90,"3 oz Vodka "], ["4800","161",150,"5 oz Iced tea "], ["3460","376",45,"1 1/2 oz Gin (Tanqueray) "], ["3460","146",30,"1 oz Midori melon liqueur "], ["3460","266",3.7,"1 splash Sour mix "], ["3460","22",3.7,"1 splash 7-Up "], ["345","202",45,"1 1/2 oz Gold tequila "], ["345","445",120,"4 oz fresh Orange juice "], ["345","473",10,"2 tsp Creme de Cassis "], ["6112","335",60,"2 oz Spiced rum (Captain Morgan's) "], ["6112","161",300,"10 oz Iced tea (very sweet) "], ["1643","111",15,"2/4 oz Advocaat "], ["1643","252",7.5,"1/4 oz Whisky "], ["1643","333",7.5,"1/4 oz white Creme de Cacao "], ["1643","213",0.9,"1 dash Triple sec, blue "], ["1643","366",0.9,"1 dash Angostura bitters "], ["1643","433",0.9,"1 dash Orange bitters "], ["6148","462",30,"1 oz Tequila "], ["6148","316",15,"1/2 oz Vodka "], ["6148","108",7.5,"1/4 oz J�germeister "], ["6148","372",7.5,"1/4 oz Cranberry juice "], ["6148","82",7.5,"1/4 oz Grenadine "], ["346","335",210,"7 oz Spiced rum (Captain Morgan's) "], ["346","175",300,"10 oz Coca-Cola "], ["346","186",30,"1 oz Lime juice "], ["5078","387",6,"1/5 oz Dark rum "], ["5078","265",6,"1/5 oz Kahlua "], ["5078","375",6,"1/5 oz Amaretto "], ["5078","270",12,"2/5 oz Bailey's irish cream "], ["5758","1",15,"1/2 oz Firewater "], ["5758","212",15,"1/2 oz Absolut Peppar "], ["5758","131",0.9,"1 dash Tabasco sauce "], ["1256","342",15,"1/2 oz Southern Comfort "], ["1256","182",15,"1/2 oz Crown Royal "], ["1256","375",15,"1/2 oz Amaretto "], ["1256","445",15,"1/2 oz Orange juice "], ["1256","261",15,"1/2 oz Pineapple juice "], ["1256","372",15,"1/2 oz Cranberry juice "], ["1256","82",3.7,"1 splash Grenadine "], ["347","119",60,"6 cl Absolut Vodka "], ["347","287",40,"4 cl Chocolate syrup (light chocolate preferably) "], ["347","347",20,"2 cl crushed Strawberries "], ["347","427",30,"3 cl crushed Ice "], ["1488","387",11.8,"2/5 shot Dark rum "], ["1488","399",11.8,"2/5 shot Margarita mix, Strawberry "], ["1488","424",5.9,"1/5 shot Lemon juice "], ["5401","192",30,"1 oz Brandy "], ["5401","88",22.5,"3/4 oz Dry Vermouth "], ["5401","205",5,"1 tsp White Creme de Menthe "], ["5401","176",5,"1 tsp Maraschino liqueur "], ["356","376",60,"2 oz Gin "], ["356","332",15,"1/2 oz Pernod "], ["356","445",30,"1 oz Orange juice "], ["356","82",2.5,"1/2 tsp Grenadine "], ["357","462",60,"2 oz Tequila, almond flavored "], ["357","22",120,"4 oz 7-Up "], ["4706","10",7.5,"1/4 oz Creme de Banane "], ["4706","297",7.5,"1/4 oz Blue Curacao "], ["4706","36",7.5,"1/4 oz Malibu rum "], ["4706","261",15,"1/2 oz Pineapple juice "], ["358","270",30,"1 oz Bailey's irish cream "], ["358","375",15,"1/2 oz Amaretto "], ["358","227",15,"1/2 oz Banana liqueur "], ["6169","62",10,"1/3 oz Yukon Jack "], ["6169","108",10,"1/3 oz J�germeister "], ["6169","85",10,"1/3 oz 151 proof rum "], ["359","231",22.5,"3/4 oz Apricot brandy "], ["359","88",22.5,"3/4 oz Dry Vermouth "], ["359","376",22.5,"3/4 oz Gin "], ["359","424",1.25,"1/4 tsp Lemon juice "], ["3181","316",10,"1 cl Vodka "], ["3181","82",10,"1 cl Grenadine "], ["3181","295",100,"10 cl Champagne "], ["4407","265",15,"Layer 1/2 oz Kahlua "], ["4407","270",15,"1/2 oz Bailey's irish cream "], ["4407","358",15,"1/2 oz Ouzo "], ["4407","232",15,"1/2 oz Wild Turkey "], ["4407","85",15,"1/2 oz Bacardi 151 proof rum "], ["2663","146",10,"1 cl Midori melon liqueur "], ["2663","269",15,"1 1/2 cl Strawberry liqueur "], ["2663","167",15,"1 1/2 cl Frangelico "], ["2663","479",15,"1 1/2 cl Galliano "], ["2663","422",45,"4 1/2 cl Cream "], ["1804","85",9.83,"1/3 shot Bacardi 151 proof rum "], ["1804","71",9.83,"1/3 shot Everclear "], ["1804","213",9.83,"1/3 shot Triple sec "], ["3845","227",15,"1/2 oz Banana liqueur "], ["3845","297",15,"1/2 oz Blue Curacao "], ["3845","71",15,"1/2 oz Everclear "], ["362","36",45,"1 1/2 oz Malibu rum "], ["362","261",30,"1 oz Pineapple juice "], ["362","372",30,"1 oz Cranberry juice "], ["361","88",45,"1 1/2 oz Dry Vermouth "], ["361","376",45,"1 1/2 oz Gin "], ["5843","376",30,"1 oz Gin "], ["5843","464",30,"1 oz Peppermint schnapps "], ["5843","29",30,"1 oz Tonic water "], ["2038","214",45,"1 1/2 oz Light rum "], ["2038","387",60,"2 oz Dark rum "], ["2038","261",30,"1 oz Pineapple juice "], ["2038","404",30,"1 oz Grapefruit juice "], ["2038","445",60,"2 oz Orange juice "], ["2744","1",14.75,"1/2 shot Firewater "], ["2744","145",14.75,"1/2 shot Rumple Minze "], ["2301","249",30,"3 cl Bourbon (Four Roses) "], ["2301","231",10,"1 cl Apricot brandy (Bols) "], ["2301","88",20,"2 cl Dry Vermouth (Cinzano) "], ["363","316",40,"4 cl Finlandia Vodka "], ["363","454",20,"2 cl Passion fruit syrup (Monin) "], ["363","445",40,"4 cl Orange juice "], ["363","211",60,"6 cl Sweet and sour mix "], ["5509","316",37.5,"1 1/4 oz Vodka "], ["5509","404",60,"2 oz Grapefruit juice "], ["5509","82",0.9,"1 dash Grenadine "], ["1570","85",30,"1 oz 151 proof rum "], ["1570","131",0.9,"1 dash Tabasco sauce "], ["3311","132",30,"1 oz Cinnamon schnapps "], ["3311","131",0.9,"1 dash Tabasco sauce "], ["4593","316",66.75,"1 1/2 jigger Vodka "], ["4593","375",15,"1/2 oz Amaretto "], ["4593","213",15,"1/2 oz Triple sec "], ["4593","424",3.7,"1 splash freshly squeezed Lemon juice "], ["1791","108",40,"2-4 cl J�germeister "], ["1791","83",40,"2-4 cl Ginger ale or Red Soda Water "], ["5330","36",30,"1 oz Malibu rum "], ["5330","297",30,"1 oz Blue Curacao "], ["5330","146",30,"1 oz Midori melon liqueur "], ["5330","445",60,"2 oz Orange juice "], ["5330","266",60,"2 oz Sour mix "], ["5330","22",30,"1 oz 7-Up "], ["5668","108",15,"1/2 oz J�germeister "], ["5668","85",15,"1/2 oz 151 proof rum "], ["5668","145",15,"1/2 oz Rumple Minze "], ["5668","115",15,"1/2 oz Goldschlager "], ["5668","462",15,"1/2 oz Tequila "], ["3812","82",15,"1/2 oz Grenadine "], ["3812","15",15,"1/2 oz Green Creme de Menthe "], ["3812","10",15,"1/2 oz Creme de Banane "], ["3812","304",15,"1/2 oz Rum (Overproof is best) "], ["4755","85",30,"1 oz Bacardi 151 proof rum "], ["4755","464",15,"1/2 oz Peppermint schnapps "], ["4755","342",15,"1/2 oz Southern Comfort "], ["4755","462",15,"1/2 oz Tequila "], ["3379","124",15,"1/2 oz Anisette "], ["3379","408",15,"1/2 oz Vermouth "], ["3379","85",3.7,"1 splash Bacardi 151 proof rum "], ["6052","375",14.75,"1/2 shot Amaretto "], ["6052","21",14.75,"1/2 shot Whiskey "], ["6052","392",240,"8 oz Beer "], ["6052","71",0.9,"1 dash Everclear "], ["3266","82",0.9,"1 dash Grenadine "], ["3266","224",15,"1/2 oz Godiva liqueur "], ["3266","85",0.9,"1 dash 151 proof rum (Bacardi) "], ["1375","375",30,"1 oz Amaretto "], ["1375","316",30,"1 oz Vodka "], ["1375","85",30,"1 oz Bacardi 151 proof rum "], ["1375","344",30,"1 oz Dr. Pepper "], ["1375","392",30,"1 oz Beer "], ["1647","1",150,"1.5 oz Firewater "], ["1647","344",360,"12 oz Dr. Pepper "], ["1322","375",15,"1/2 oz Amaretto "], ["1322","85",15,"1/2 oz Bacardi 151 proof rum "], ["1322","94",180,"6 oz Lager "], ["1988","309",15,"1/2 oz Peach schnapps "], ["1988","227",15,"1/2 oz Banana liqueur "], ["1988","71",15,"1/2 oz Everclear "], ["3843","68",30,"1 oz Green Chartreuse "], ["3843","85",30,"1 oz 151 proof rum (Bacardi) "], ["5639","265",60,"2 oz Kahlua "], ["5639","114",30,"1 oz Butterscotch schnapps "], ["5639","85",30,"1 oz 151 proof rum "], ["2162","36",30,"1 oz Malibu rum "], ["2162","316",15,"1/2 oz Vodka "], ["2162","270",15,"1/2 oz Bailey's irish cream "], ["2162","445",180,"4-6 oz Orange juice "], ["1344","342",29.5,"1 shot Southern Comfort "], ["1344","344",3.7,"1 splash Dr. Pepper "], ["1648","392",30,"1 oz Blackened Voodoo Beer "], ["1648","342",60,"2 oz Southern Comfort "], ["1648","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["1648","71",7.5,"1/4 oz Everclear "], ["1648","304",15,"1/2 oz Rum (Captain Morgan's) "], ["1648","443",120,"4 oz Soda water "], ["1648","199",30,"1 oz Mountain Dew "], ["1648","427",720,"24 oz Ice "], ["4217","316",45,"1 1/2 oz Vodka (Absolut) "], ["4217","186",3.7,"1 splash Lime juice "], ["4217","82",3.7,"1 splash Grenadine "], ["4217","85",15,"Float 1/2 oz Bacardi 151 proof rum "], ["3307","265",30,"1 oz Kahlua "], ["3307","475",30,"1 oz Sambuca "], ["3307","297",30,"1 oz Blue Curacao "], ["3307","270",30,"1 oz Bailey's irish cream "], ["2966","265",30,"1 oz Kahlua "], ["2966","375",30,"1 oz Amaretto "], ["2966","316",30,"1 oz Vodka "], ["2966","207",15,"1/2 oz Yellow Chartreuse "], ["2966","297",30,"1 oz Blue Curacao "], ["2966","259",15,"1/2 oz Milk "], ["5853","476",600,"20 oz Diet Pepsi Cola "], ["5853","71",30,"1 oz Everclear "], ["2709","108",30,"1 oz J�germeister "], ["2709","444",30,"1 oz Hot Damn "], ["2645","316",30,"1 oz Vodka "], ["2645","85",6,"1/5 oz Bacardi 151 proof rum "], ["365","85",30,"1 oz Bacardi 151 proof rum "], ["365","265",30,"1 oz Kahlua "], ["3219","304",37.5,"1 1/4 oz Bacardi Rum "], ["3219","304",18.75,"5/8 oz Meyers Rum "], ["3219","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["3219","261",45,"1 1/2 oz Pineapple juice "], ["3219","445",45,"1 1/2 oz Orange juice "], ["3219","211",30,"1 oz Sweet and sour "], ["3257","376",45,"1 1/2 oz Gin "], ["3257","383",15,"1/2 oz Sweet Vermouth "], ["3257","88",5,"1 tsp Dry Vermouth "], ["3257","213",5,"1 tsp Triple sec "], ["3257","424",5,"1 tsp Lemon juice "], ["5239","464",30,"1 oz Peppermint schnapps "], ["5239","375",30,"1 oz Amaretto "], ["5239","480",90,"3 oz Irish cream "], ["5239","482",90,"Fill with 3 oz Coffee "], ["368","359",30,"1 oz Cointreau "], ["368","270",30,"1 oz Bailey's irish cream "], ["3677","376",15,"1/2 oz Gin "], ["3677","121",7.5,"1 1/2 tsp Kirschwasser "], ["3677","213",7.5,"1 1/2 tsp Triple sec "], ["3677","445",30,"1 oz Orange juice "], ["3677","424",5,"1 tsp Lemon juice "], ["3925","376",60,"2 oz Gin "], ["3925","213",15,"1/2 oz Triple sec "], ["5283","146",30,"1 oz Midori melon liqueur "], ["5283","304",30,"1 oz Rum (Bacardi) "], ["5283","323",60,"2 oz Sprite "], ["5283","261",90,"3 oz Pineapple juice "], ["369","265",10,"1/3 oz Kahlua "], ["369","227",10,"1/3 oz Banana liqueur "], ["369","270",10,"1/3 oz Bailey's irish cream "], ["3146","274",5,"1/6 oz Melon liqueur "], ["3146","304",5,"1/6 oz Rum "], ["3146","316",5,"1/6 oz Vodka "], ["3146","323",10,"1/3 oz Sprite "], ["3146","82",5,"1/6 oz Grenadine "], ["5233","378",30,"1 oz Scotch "], ["5233","383",30,"1 oz Sweet Vermouth "], ["5233","106",0.9,"1 dash Bitters "], ["5233","357",1.25,"1/4 tsp Sugar syrup "], ["371","479",29.5,"1 shot Galliano "], ["371","205",29.5,"1 shot White Creme de Menthe "], ["371","316",29.5,"1 shot Vodka "], ["371","445",128.5,"1/2 cup Orange juice "], ["4163","36",60,"2 oz Malibu rum "], ["4163","261",120,"4 oz Pineapple juice "], ["1796","376",30,"1 oz Gin "], ["1796","355",15,"1/2 oz Passion fruit juice "], ["1796","82",0.9,"1 dash Grenadine "], ["3839","280",40,"4 cl Fernet Branca "], ["3839","422",3.7,"1 splash Cream (whipped) "], ["4784","192",30,"1 oz Brandy "], ["4784","124",30,"1 oz Anisette "], ["4784","88",15,"1/2 oz Dry Vermouth "], ["2754","375",15,"1/2 oz Amaretto "], ["2754","261",15,"1/2 oz Pineapple juice "], ["5910","71",23.6,"4/5 shot Everclear "], ["5910","131",5.9,"1/5 shot Tabasco sauce "], ["5899","142",30,"1 oz White rum "], ["5899","304",30,"1 oz amber Rum "], ["5899","316",30,"1 oz Vodka "], ["5899","82",30,"1 oz Grenadine "], ["5899","297",30,"1 oz Blue Curacao "], ["5899","2",210,"7 oz Lemonade "], ["1784","142",20,"2 cl White rum "], ["1784","210",10,"1 cl Lakka "], ["1784","205",10,"1 cl White Creme de Menthe "], ["1784","445",20,"2 cl Orange juice "], ["1784","424",20,"2 cl Lemon juice "], ["4852","317",7.5,"1/4 oz Jose Cuervo "], ["4852","471",7.5,"1/4 oz Jim Beam "], ["4852","122",7.5,"1/4 oz Jack Daniels "], ["4852","263",7.5,"1/4 oz Johnnie Walker "], ["4960","249",7.5,"1/4 oz Bourbon (Jim Beam) "], ["4960","159",7.5,"1/4 oz Tennessee whiskey (Jack Daniel's) "], ["4960","378",7.5,"1/4 oz Scotch (Johnnie Walker Red) "], ["4960","462",7.5,"1/4 oz Tequila (Jose Cuervo) "], ["3681","5",40,"4 cl Coconut milk "], ["3681","316",60,"6 cl Vodka "], ["3681","462",40,"4 cl Tequila "], ["3681","205",50,"5 cl White Creme de Menthe "], ["3681","227",40,"4 cl Banana liqueur "], ["1705","202",22.5,"3/4 oz Gold tequila (Jose Cuervo) "], ["1705","108",22.5,"3/4 oz J�germeister "], ["1705","145",22.5,"3/4 oz Rumple Minze "], ["1705","85",22.5,"3/4 oz Bacardi 151 proof rum "], ["374","82",15,"1/2 oz Grenadine "], ["374","297",15,"1/2 oz Blue Curacao "], ["374","422",15,"1/2 oz Cream "], ["2712","375",15,"1/2 oz Amaretto "], ["2712","333",15,"1/2 oz Creme de Cacao "], ["2712","41",60,"2 oz Light cream "], ["5381","295",105,"3 1/2 oz Champagne "], ["5381","26",22.5,"3/4 oz Creme de Fraise des Bois (Marie Brizard) "], ["5381","3",15,"1/2 oz Cognac "], ["377","278",257,"1 cup Ice-cream "], ["377","167",37.5,"1 1/4 oz Frangelico "], ["377","333",30,"1 oz Creme de Cacao "], ["377","259",64.25,"1/4 cup Milk "], ["377","287",30,"1 oz Chocolate syrup "], ["1105","482",128.5,"1/2 cup strong black Coffee "], ["1105","259",128.5,"1/2 cup Milk "], ["1105","477",10,"1-2 tsp Sugar or honey "], ["5549","265",10,"1/3 oz Kahlua "], ["5549","333",10,"1/3 oz white Creme de Cacao "], ["5549","405",10,"1/3 oz Tequila Rose (or Baja Rosa Tequila) "], ["378","462",60,"2 oz Tequila "], ["378","445",120,"4 oz Orange juice "], ["378","479",15,"1/2 oz Galliano "], ["2066","108",15,"1/2 oz J�germeister "], ["2066","475",15,"1/2 oz Sambuca "], ["2066","316",15,"1/2 oz Vodka "], ["379","462",15,"1/2 oz Tequila "], ["379","122",15,"1/2 oz Jack Daniels "], ["3973","3",45,"1 1/2 oz Cognac "], ["3973","375",22.5,"3/4 oz Amaretto "], ["6165","3",30,"1 oz Cognac "], ["6165","315",30,"1 oz Grand Marnier "], ["2382","3",45,"1 1/2 oz Cognac "], ["2382","424",30,"1 oz Lemon juice "], ["2382","477",5,"1 tsp Sugar "], ["2382","295",180,"6 oz Champagne "], ["5667","265",20,"2 cl Kahlua "], ["5667","332",20,"2 cl Pernod "], ["4427","54",37.5,"1 1/4 oz Chambord raspberry liqueur "], ["4427","315",22.5,"3/4 oz Grand Marnier "], ["4427","445",60,"2 oz Orange juice "], ["4427","443",30,"1 oz Soda water "], ["2518","316",30,"1 oz Vodka "], ["2518","54",15,"1/2 oz Chambord raspberry liqueur "], ["2518","261",15,"1/2 oz Pineapple juice "], ["2464","391",30,"1 oz Vanilla vodka (Stoli Vanil) "], ["2464","224",15,"1/2 oz Godiva liqueur "], ["2464","475",7.5,"1/4 oz Sambuca "], ["2464","204",30,"1 oz chilled Espresso "], ["2464","422",30,"1 oz Cream "], ["4863","199",180,"6 oz Mountain Dew "], ["4863","387",30,"1 oz Dark rum "], ["4863","309",30,"1 oz Peach schnapps "], ["3734","450",60,"2 oz Rye whiskey "], ["3734","351",7.5,"1/4 oz Benedictine "], ["3734","424",22.5,"3/4 oz Lemon juice "], ["4334","316",30,"1 oz Skyy Vodka "], ["4334","309",30,"1 oz Peach schnapps "], ["4334","261",90,"3 oz Pineapple juice "], ["4334","372",90,"3 oz Cranberry juice "], ["4079","142",60,"2 oz White rum "], ["4079","297",15,"1/2 oz Blue Curacao "], ["4079","186",15,"1/2 oz Lime juice "], ["4079","427",85.67,"1/3 cup Ice "], ["387","232",15,"1/2 oz Wild Turkey "], ["387","145",15,"1/2 oz Rumple Minze "], ["392","316",60,"2 oz Vodka "], ["392","265",60,"2 oz Kahlua "], ["392","270",60,"2 oz Bailey's irish cream "], ["392","503",180,"6 oz Vanilla ice-cream "], ["3699","214",30,"1 oz Light rum "], ["3699","174",15,"1/2 oz Blackberry brandy "], ["3699","227",15,"1/2 oz Banana liqueur "], ["3699","82",15,"1/2 oz Grenadine "], ["3699","200",7.5,"1/4 oz Rose's sweetened lime juice "], ["3699","261",3.7,"1 splash Pineapple juice "], ["3699","266",3.7,"1 splash Sour mix "], ["3699","85",7.5,"Float 1/4 oz 151 proof rum (optional) "], ["6151","347",240,"8 oz Strawberries in sugar sauce "], ["6151","211",120,"4 oz Sweet and sour "], ["6151","462",60,"2 oz Tequila "], ["1057","163",257,"1 cup Yoghurt "], ["1057","346",257,"1 cup Fruit juice "], ["4429","375",15,"1/2 oz Amaretto "], ["4429","297",15,"1/2 oz Blue Curacao "], ["4429","82",15,"1/2 oz Grenadine "], ["4429","259",15,"1/2 oz Milk "], ["4471","227",7.5,"1/4 oz Banana liqueur "], ["4471","274",7.5,"1/4 oz Melon liqueur "], ["4471","179",7.5,"1/4 oz Cherry brandy "], ["4471","468",7.5,"1/4 oz Coconut rum "], ["1058","353",30,"1 oz Orange liqueur "], ["1058","309",30,"1 oz Peach schnapps "], ["1058","445",60,"2 oz Orange juice "], ["1058","261",60,"2 oz Pineapple juice "], ["4345","375",29.5,"1 shot Amaretto "], ["4345","36",29.5,"1 shot Malibu rum "], ["4345","226",29.5,"1 shot Bacardi Limon "], ["4345","261",30,"1 oz Pineapple juice "], ["4345","445",30,"1 oz Orange juice "], ["4345","82",0.9,"1 dash Grenadine "], ["2178","261",90,"3 oz Pineapple juice "], ["2178","445",45,"1 1/2 oz Orange juice "], ["2178","372",30,"1 oz Cranberry juice "], ["2178","82",3.7,"1 splash Grenadine "], ["4893","240",15,"1/2 oz Coffee liqueur "], ["4893","480",15,"1/2 oz Irish cream "], ["4893","227",15,"1/2 oz Banana liqueur "], ["4244","115",15,"1/2 oz Goldschlager "], ["4244","146",15,"1/2 oz Midori melon liqueur "], ["4244","145",15,"1/2 oz Rumple Minze "], ["4244","108",15,"1/2 oz J�germeister "], ["4244","85",15,"1/2 oz 151 proof rum "], ["3025","316",45,"1 1/2 oz Vodka "], ["3025","309",45,"1 1/2 oz Peach schnapps "], ["3025","387",15,"1/2 oz Dark rum "], ["3025","375",15,"1/2 oz Amaretto "], ["3025","372",15,"1/2 oz Cranberry juice "], ["3025","261",15,"1/2 oz Pineapple juice "], ["2052","462",30,"1 oz Tequila "], ["2052","122",30,"1 oz Jack Daniels "], ["2052","232",30,"1 oz Wild Turkey "], ["2052","115",30,"1 oz Goldschlager "], ["2052","304",30,"1 oz Rum "], ["2052","243",30,"1 oz Blueberry schnapps "], ["2083","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["2083","36",30,"1 oz Malibu rum "], ["2083","445",60,"2 oz Orange juice (Dole) "], ["2083","261",60,"2 oz Pineapple juice (Dole) "], ["2083","82",5,"1 tsp Grenadine "], ["3920","462",14.75,"1/2 shot Tequila (Cuervo) "], ["3920","232",14.75,"1/2 shot Wild Turkey "], ["3736","316",22.5,"3/4 oz Vodka (Absolut) "], ["3736","274",22.5,"3/4 oz Melon liqueur (Midori) "], ["3736","247",22.5,"3/4 oz Cherry liqueur (Wild Cherry) "], ["3736","213",22.5,"3/4 oz Triple sec "], ["3736","372",60,"2 oz Cranberry juice "], ["3736","388",60,"2 oz Lemon-lime soda "], ["3736","186",44.5,"1 jigger Lime juice "], ["2249","309",8.83,"1/3 measure Peach schnapps "], ["2249","323",17.67,"2/3 measure Sprite "], ["5724","392",1200,"40 oz Beer "], ["5724","83",360,"12 oz Ginger ale "], ["5724","316",7.38,"1/4 shot Vodka (Absolut) "], ["5724","214",7.38,"1/4 shot Light rum "], ["5724","375",14.75,"1/2 shot Amaretto "], ["4794","14",60,"2 oz Peach nectar "], ["4794","445",180,"6 oz Orange juice "], ["6186","437",2.5,"1/2 tsp Tang mix, powdered "], ["6186","316",14.75,"1/2 shot Vodka "], ["6186","309",14.75,"1/2 shot Peach schnapps "], ["3136","309",22.5,"3/4 oz Peach schnapps "], ["3136","167",22.5,"3/4 oz Frangelico "], ["4170","304",45,"1 1/2 oz Rum or vodka "], ["4170","368",15,"1/2 oz Sloe gin "], ["4170","342",15,"1/2 oz Southern Comfort "], ["4170","309",15,"1/2 oz Peach schnapps "], ["4170","445",120,"Fill with 4 oz Orange juice "], ["4484","309",30,"1 oz Peach schnapps "], ["4484","274",30,"1 oz Melon liqueur "], ["4484","372",180,"6 oz Cranberry juice "], ["2343","316",22.5,"3/4 oz Vodka "], ["2343","309",22.5,"3/4 oz Peach schnapps "], ["2343","10",22.5,"3/4 oz Creme de Banane "], ["2343","445",15,"1-1/2 oz Orange juice "], ["5361","462",30,"1 oz Tequila "], ["5361","309",45,"1 1/2 oz Peach schnapps "], ["5361","445",180,"6 oz Orange juice "], ["2627","316",30,"1 oz Vodka "], ["2627","309",30,"1 oz Peach schnapps "], ["2627","445",180,"4-6 oz Orange juice "], ["4514","316",30,"1 oz Vodka "], ["4514","309",15,"1/2 oz Peach schnapps "], ["4514","213",15,"1/2 oz Triple sec "], ["5072","316",14.75,"1/2 shot Vodka (Skyy) "], ["5072","309",14.75,"1/2 shot Peach schnapps "], ["4218","115",14.75,"1/2 shot Goldschlager "], ["4218","119",14.75,"1/2 shot 100 proof Absolut Vodka "], ["3120","316",30,"1 oz Vodka "], ["3120","304",30,"1 oz Rum "], ["3120","376",30,"1 oz Gin "], ["3120","342",30,"1 oz Southern Comfort "], ["3120","445",120,"4 oz Orange juice "], ["3120","375",30,"1 oz Amaretto "], ["3120","82",30,"1 oz Grenadine "], ["2172","316",29.5,"1 shot Vodka (Absolut) "], ["2172","462",29.5,"1 shot Tequila (Jose Cuervo) "], ["2172","387",29.5,"1 shot Dark rum (Meyers) "], ["2172","131",3.7,"1 splash Tabasco sauce "], ["1100","375",15,"1/2 oz Amaretto "], ["1100","480",15,"1/2 oz Irish cream "], ["1447","119",60,"6 cl Absolut Vodka "], ["1447","323",60,"6 cl Sprite "], ["1447","424",10,"1 cl Lemon juice "], ["3196","15",30,"1 oz Green Creme de Menthe "], ["3196","108",30,"1 oz J�germeister "], ["3196","270",30,"1 oz Bailey's irish cream "], ["2154","214",45,"1 1/2 oz Light rum "], ["2154","333",15,"1/2 oz white Creme de Cacao "], ["2154","155",30,"1 oz Heavy cream "], ["2154","179",5,"1 tsp Cherry brandy "], ["5196","214",30,"1 oz Light rum "], ["5196","213",15,"1/2 oz Triple sec "], ["5196","372",60,"2 oz Cranberry juice "], ["393","199",360,"12 oz Mountain Dew "], ["393","335",29.5,"1 shot Spiced rum (Captain Morgan's) "], ["393","263",29.5,"1 shot Johnnie Walker red label "], ["2024","335",150,"1.5 oz Spiced rum (Captain Morgan's) "], ["2024","445",150,"5 oz Orange juice "], ["2024","261",90,"3 oz Pineapple juice "], ["2024","213",750,"0.25 oz Triple sec "], ["5978","304",30,"3 cl Rum (Ron Bacardi Superior) "], ["5978","10",10,"1 cl Creme de Banane "], ["5978","424",10,"1 cl fresh Lemon juice "], ["396","316",60,"2 oz Vodka (Russian) "], ["396","115",15,"1/2 oz Goldschlager "], ["396","71",15,"1/2 oz Everclear (190 proof) "], ["2324","316",30,"3 cl Vodka "], ["2324","376",30,"3 cl Gin "], ["2324","462",30,"3 cl Tequila "], ["2324","445",3.7,"1 splash Orange juice "], ["397","376",45,"1 1/2 oz Gin "], ["397","192",30,"1 oz Brandy "], ["397","383",30,"1 oz Sweet Vermouth "], ["397","130",30,"1 oz Club soda "], ["5065","342",22.5,"3/4 oz Southern Comfort "], ["5065","309",30,"1 oz Peach schnapps "], ["5065","445",120,"4 oz Orange juice "], ["5065","82",0.9,"1 dash Grenadine "], ["5550","376",30,"1 oz Gin "], ["5550","179",15,"1/2 oz Cherry brandy "], ["5550","261",120,"4 oz Pineapple juice "], ["5550","186",15,"1/2 oz Lime juice "], ["5550","359",7.5,"1/4 oz Cointreau "], ["5550","351",7.5,"1/4 oz Benedictine "], ["5550","82",10,"1/3 oz Grenadine "], ["5550","366",0.9,"1 dash Angostura bitters "], ["5887","76",60,"2 oz George Dickel "], ["5887","83",60,"2 oz Ginger ale "], ["1576","462",22.5,"3/4 oz Tequila "], ["1576","309",7.5,"1/4 oz Peach schnapps "], ["1576","269",15,"1/2 oz Strawberry liqueur "], ["1576","211",90,"3 oz Sweet and sour, mix "], ["2721","237",22.5,"3/4 oz Raspberry liqueur "], ["2721","316",30,"1 oz Vodka "], ["2721","261",180,"6 oz Pineapple juice "], ["2721","372",3.7,"1 splash Cranberry juice "], ["6044","316",120,"4 oz Vodka (Aristocrat) "], ["6044","505",600,"20 oz Malt liquor (Colt 45) "], ["399","376",45,"1 1/2 oz Gin "], ["399","424",15,"1/2 oz Lemon juice "], ["399","477",2.5,"1/2 tsp superfine Sugar "], ["399","29",120,"4 oz Tonic water "], ["400","376",60,"2 oz Gin "], ["400","383",30,"1 oz Sweet Vermouth "], ["403","376",45,"1 1/2 oz Gin "], ["403","445",30,"1 oz Orange juice "], ["403","424",30,"1 oz Lemon juice "], ["403","82",2.5,"1/2 tsp Grenadine "], ["420","186",45,"1 1/2 oz Lime juice "], ["420","477",5,"1 tsp superfine Sugar "], ["420","376",60,"2 oz Gin "], ["420","106",0.9,"1 dash Bitters "], ["420","130",90,"3 oz Club soda "], ["421","376",75,"2 1/2 oz Gin "], ["421","424",45,"1 1/2 oz Lemon juice "], ["421","477",5,"1 tsp superfine Sugar "], ["421","130",120,"4 oz Club soda "], ["421","473",15,"1/2 oz Creme de Cassis "], ["4196","115",10,"1/3 oz Goldschlager "], ["4196","114",10,"1/3 oz Butterscotch schnapps "], ["4196","270",10,"1/3 oz Bailey's irish cream "], ["2054","310",257,"1 cup Hot chocolate "], ["2054","205",30,"1 oz White Creme de Menthe "], ["4776","265",30,"1 oz Kahlua "], ["4776","115",30,"1 oz Goldschlager "], ["4776","270",30,"1 oz Bailey's irish cream "], ["5193","88",3.7,"1 splash Dry Vermouth "], ["5193","316",120,"4 oz Vodka "], ["5193","295",90,"3 oz chilled Champagne "], ["5193","176",0.9,"1 dash Maraschino liqueur "], ["4285","375",15,"1/2 oz Amaretto "], ["4285","342",15,"1/2 oz Southern Comfort "], ["4285","445",60,"2 oz Orange juice "], ["4285","22",60,"2 oz 7-Up "], ["4180","274",45,"1 1/2 oz Melon liqueur "], ["4180","342",45,"1 1/2 oz Southern Comfort "], ["4180","445",90,"3 oz Orange juice "], ["4180","261",90,"3 oz Pineapple juice "], ["4180","297",45,"Float 1 1/2 oz Blue Curacao "], ["424","316",30,"1 oz Vodka "], ["424","375",30,"1 oz Amaretto "], ["424","155",30,"1 oz Heavy cream "], ["1501","304",7.38,"1/4 shot Rum "], ["1501","316",7.38,"1/4 shot Vodka "], ["1501","237",7.38,"1/4 shot Raspberry liqueur or Creme de Cassis "], ["1501","186",0.9,"1 dash Lime juice "], ["1501","85",0.9,"1 dash 151 proof rum "], ["5767","310",128.5,"1/2 cup Hot chocolate "], ["5767","464",29.5,"1 shot Peppermint schnapps (Rumple Minze) "], ["5767","224",29.5,"1 shot Godiva liqueur "], ["3653","378",45,"1 1/2 oz Scotch "], ["3653","375",22.5,"3/4 oz Amaretto "], ["1194","316",45,"1 1/2 oz Vodka "], ["1194","375",22.5,"3/4 oz Amaretto "], ["2067","462",90,"3 oz Tequila "], ["2067","359",45,"1 1/2 oz Cointreau "], ["2067","291",30,"1 oz Cherry juice "], ["2067","424",22.5,"3/4 oz Lemon juice "], ["6068","145",22.5,"3/4 oz Rumple Minze "], ["6068","115",7.5,"1/4 oz Goldschlager "], ["5754","115",15,"1/2 oz Goldschlager "], ["5754","40",30,"1 oz Sour Apple Pucker "], ["3251","122",15,"1/2 oz Jack Daniels "], ["3251","115",15,"1/2 oz Goldschlager "], ["5743","175",360,"12 oz Coca-Cola "], ["5743","115",30,"1 oz Goldschlager "], ["427","391",45,"1 1/2 oz Vanilla vodka (Stoli Vanil) "], ["427","465",45,"1 1/2 oz White chocolate liqueur "], ["427","479",15,"1/2 oz Galliano "], ["427","333",45,"1 1/2 oz white Creme de Cacao "], ["427","422",30,"1 oz Cream "], ["427","357",3.7,"1 splash Sugar syrup "], ["3369","479",30,"1 oz Galliano "], ["3369","333",60,"2 oz white Creme de Cacao "], ["3369","41",30,"1 oz Light cream "], ["4270","324",257,"1 cup sparkling Apple cider "], ["4270","115",29.5,"1 shot Goldschlager "], ["5316","376",45,"1 1/2 oz Gin "], ["5316","92",15,"1/2 oz Peach brandy "], ["5316","445",30,"1 oz Orange juice "], ["429","115",29.5,"1 shot Goldschlager "], ["429","131",3.7,"1 splash Tabasco sauce "], ["5898","462",44.25,"1 1/2 shot Tequila "], ["5898","315",44.25,"1 1/2 shot Grand Marnier "], ["5898","200",29.5,"1 shot Rose's sweetened lime juice "], ["5898","266",29.5,"1 shot Sour mix (homemade) "], ["4696","115",30,"1 oz Goldschlager "], ["4696","2",60,"2 oz Lemonade "], ["6149","124",22.5,"3/4 oz Anisette "], ["6149","265",22.5,"3/4 oz Kahlua "], ["4873","312",37.5,"1 1/4 oz Absolut Citron "], ["4873","238",22.5,"3/4 oz Aliz� "], ["4873","2",180,"6 oz Lemonade "], ["2306","214",30,"1 oz Light rum "], ["2306","387",30,"1 oz Dark rum "], ["2306","468",30,"1 oz Coconut rum "], ["2306","261",120,"4 oz Pineapple juice "], ["2155","232",15,"1/2 oz Wild Turkey "], ["2155","85",15,"1/2 oz Bacardi 151 proof rum "], ["4582","316",30,"1 oz Vodka "], ["4582","342",30,"1 oz Southern Comfort "], ["4582","297",60,"2 oz Blue Curacao "], ["4582","445",180,"6 oz Orange juice "], ["1585","335",30,"1 oz Spiced rum "], ["1585","36",30,"1 oz Malibu rum "], ["1585","231",7.5,"1/4 oz Apricot brandy "], ["1585","261",60,"2 oz Pineapple juice "], ["1585","445",60,"2 oz Orange juice "], ["2365","85",9.83,"1/3 shot Bacardi 151 proof rum "], ["2365","342",9.83,"1/3 shot Southern Comfort "], ["2365","122",9.83,"1/3 shot Jack Daniels "], ["2565","122",30,"1 oz Jack Daniels "], ["2565","232",30,"1 oz Wild Turkey "], ["2565","182",30,"1 oz Crown Royal "], ["3455","85",30,"1 oz Bacardi 151 proof rum "], ["3455","62",30,"1 oz Yukon Jack "], ["5880","108",14.75,"1/2 shot J�germeister "], ["5880","115",14.75,"1/2 shot Goldschlager "], ["2957","274",15,"1/2 oz Melon liqueur "], ["2957","10",15,"1/2 oz Creme de Banane "], ["2957","111",6,"1/5 oz Advocaat "], ["3518","316",9.83,"1/3 shot Vodka (Absolut) "], ["3518","85",9.83,"1/3 shot Bacardi 151 proof rum "], ["3518","227",9.83,"1/3 shot Banana liqueur "], ["1606","85",29.5,"1 shot Bacardi 151 proof rum "], ["1606","108",29.5,"1 shot J�germeister "], ["2590","265",30,"1 oz Kahlua "], ["2590","62",30,"1 oz Yukon Jack "], ["2590","85",30,"1 oz Bacardi 151 proof rum "], ["2470","232",30,"1 oz Wild Turkey, 101 proof "], ["2470","85",30,"1 oz Bacardi 151 proof rum "], ["5290","36",15,"1 1/2 cl Malibu rum "], ["5290","309",15,"1 1/2 cl Peach schnapps "], ["5290","297",15,"1 1/2 cl Blue Curacao "], ["5290","211",30,"3 cl Sweet and sour "], ["2433","375",15,"1/2 oz Amaretto "], ["2433","342",45,"1 1/2 oz Southern Comfort "], ["2433","261",30,"1 oz Pineapple juice "], ["4901","270",20,"2 cl Bailey's irish cream "], ["4901","316",20,"2 cl Koskenkorva salmiac Vodka "], ["1042","445",20,"2 cl Orange juice "], ["1042","404",60,"6 cl Grapefruit juice "], ["2250","316",10,"1/3 oz Vodka "], ["2250","54",10,"1/3 oz Chambord raspberry liqueur "], ["2250","266",10,"1/3 oz Sour mix "], ["1011","404",300,"10 oz Grapefruit juice "], ["1011","36",120,"4 oz Malibu rum "], ["1011","186",3.7,"1 splash Lime juice "], ["2983","297",90,"3 oz Blue Curacao "], ["2983","316",30,"1 oz Vodka "], ["2983","372",60,"2 oz Cranberry juice "], ["2983","416",60,"2 oz Grape juice "], ["2983","175",30,"1 oz Coca-Cola "], ["2983","261",3.7,"1 splash of Pineapple juice "], ["434","15",22.5,"3/4 oz Green Creme de Menthe "], ["434","333",22.5,"3/4 oz white Creme de Cacao "], ["434","41",22.5,"3/4 oz Light cream "], ["435","416",257,"1 cup Grape juice "], ["435","324",257,"1 cup Apple cider (or apple juice) "], ["435","424",5,"1 tsp Lemon juice "], ["435","409",1.25,"1/4 tsp Cinnamon "], ["1545","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["1545","21",14.75,"1/2 shot Whiskey (James B. Beam) "], ["6138","226",40,"4 cl Bacardi Limon "], ["6138","157",20,"2 cl Passoa "], ["6138","186",10,"1 cl Lime juice "], ["6138","355",80,"8 cl Passion fruit juice "], ["6138","323",40,"4 cl Sprite "], ["1653","358",10,"1/3 oz Ouzo "], ["1653","316",10,"1/3 oz Vodka "], ["1653","54",10,"1/3 oz Chambord raspberry liqueur (Cr.de Cassis) "], ["5191","376",60,"2 oz Gin (Tanqueray Malacca) "], ["5191","354",30,"1 oz Metaxa "], ["2101","342",29.5,"1 shot Southern Comfort "], ["2101","146",3.7,"1 splash Midori melon liqueur "], ["2101","266",3.7,"1 splash Sour mix "], ["2674","449",30,"1 oz Apple schnapps "], ["2674","146",30,"1 oz Midori melon liqueur "], ["2674","316",30,"1 oz Vodka "], ["2674","266",3.7,"1 splash Sour mix "], ["2674","22",29.5,"1 shot 7-Up "], ["5004","316",14.75,"1/2 shot Vodka "], ["5004","464",14.75,"1/2 shot green Peppermint schnapps "], ["3397","333",15,"1/2 oz Creme de Cacao "], ["3397","15",15,"1/2 oz Green Creme de Menthe "], ["3397","270",15,"1/2 oz Bailey's irish cream "], ["4461","376",15,"1/2 oz Gin "], ["4461","274",7.5,"1/4 oz Melon liqueur "], ["4461","304",7.5,"1/4 oz Rum or vodka "], ["5535","119",22.5,"3/4 oz Absolut Vodka "], ["5535","146",22.5,"3/4 oz Midori melon liqueur "], ["5535","36",22.5,"3/4 oz Malibu rum "], ["2527","316",20,"2 cl Vodka (Absolut) "], ["2527","425",20,"2 cl Pisang Ambon "], ["2527","323",60,"6 cl Sprite light "], ["2527","445",60,"6 cl Orange juice "], ["436","316",30,"1 oz Vodka "], ["436","213",7.5,"1/4 oz Triple sec "], ["436","230",60,"2 oz Limeade "], ["2217","316",60,"2 oz Vodka "], ["2217","376",60,"2 oz Gin "], ["2217","304",60,"2 oz Rum "], ["2217","146",60,"2 oz Midori melon liqueur "], ["2217","213",60,"2 oz Triple sec "], ["2217","266",60,"2 oz Sour mix "], ["2217","22",60,"2 oz 7-Up "], ["2394","316",15,"1/2 oz Vodka "], ["2394","376",15,"1/2 oz Gin "], ["2394","146",15,"1/2 oz Midori melon liqueur "], ["438","462",30,"1 oz Tequila "], ["438","316",30,"1 oz Vodka "], ["438","304",30,"1 oz Rum "], ["438","146",30,"1 oz Midori melon liqueur "], ["438","2",60,"2 oz yellow Lemonade "], ["2927","146",22.5,"3/4 oz Midori melon liqueur "], ["2927","304",30,"1 oz Rum "], ["2927","200",15,"1/2 oz Rose's sweetened lime juice "], ["2927","55",15,"1/2 oz Cream of coconut "], ["2927","261",45,"1 1/2 oz Pineapple juice "], ["439","274",10,"1/3 oz Melon liqueur "], ["439","227",10,"1/3 oz Banana liqueur "], ["439","270",10,"1/3 oz Bailey's irish cream "], ["1369","32",240,"8 oz green Kool-Aid "], ["1369","71",29.5,"1 shot Everclear "], ["5847","316",30,"3 cl Vodka (Cossack) "], ["5847","46",5,"1/2 cl Green Curacao (Bols) "], ["5847","10",5,"1/2 cl Creme de Banane (Bols) "], ["5847","404",5,"1/2 cl Grapefruit juice "], ["5847","424",15,"1 1/2 cl Lemon juice "], ["2792","146",15,"1/2 oz Midori melon liqueur "], ["2792","462",30,"1 oz Tequila (Two Fingers) "], ["2792","211",60,"2 oz Sweet and sour mix "], ["6182","146",15,"1/2 oz Midori melon liqueur "], ["6182","342",15,"1/2 oz Southern Comfort "], ["6182","266",3.7,"1 splash Sour mix "], ["1273","274",30,"1 oz Melon liqueur "], ["1273","36",22.5,"3/4 oz Malibu rum "], ["1273","359",7.5,"1/4 oz Cointreau "], ["1273","261",90,"3 oz Pineapple juice "], ["3508","316",40,"4 cl Vodka "], ["3508","142",40,"4 cl White rum "], ["3508","319",20,"2 cl Black rum "], ["3508","473",10,"1 cl Creme de Cassis "], ["3508","297",10,"1 cl Blue Curacao "], ["3508","359",20,"2 cl Cointreau "], ["3508","261",260,"26 cl Pineapple juice "], ["3486","376",20,"2 cl Gin "], ["3486","425",20,"2 cl Pisang Ambon "], ["3486","266",20,"2 cl Sour mix "], ["3486","355",20,"2 cl Passion fruit juice "], ["3486","445",100,"10 cl Orange juice "], ["4004","85",15,"1/2 oz Bacardi 151 proof rum "], ["4004","15",15,"1/2 oz Green Creme de Menthe "], ["440","124",15,"1/2 oz Anisette "], ["440","376",15,"1/2 oz Gin "], ["440","170",30,"1 oz Anis "], ["1823","316",20,"2 cl Vodka "], ["1823","10",20,"2 cl Creme de Banane "], ["1823","297",30,"3 cl Blue Curacao "], ["1823","445",60,"6 cl Orange juice "], ["4041","146",14.75,"1/2 shot Midori melon liqueur "], ["4041","186",29.5,"1 shot Lime juice "], ["4041","316",29.5,"1 shot Vodka "], ["4041","211",14.75,"1/2 shot Sweet and sour "], ["4041","29",300,"10 oz Tonic water "], ["4377","425",20,"2 cl Pisang Ambon "], ["4377","21",20,"2 cl Whiskey "], ["4377","445",20,"2 cl Orange juice "], ["3907","85",29.5,"1 shot Bacardi 151 proof rum "], ["3907","15",14.75,"1/2 shot Green Creme de Menthe "], ["4583","468",15,"1/2 oz Coconut rum "], ["4583","146",15,"1/2 oz Midori melon liqueur "], ["4583","261",30,"1 oz Pineapple juice "], ["4629","146",30,"1 oz Midori melon liqueur "], ["4629","316",30,"1 oz Vodka "], ["4629","376",30,"1 oz Gin "], ["4629","213",15,"1/2 oz Triple sec "], ["5646","274",30,"1 oz Melon liqueur "], ["5646","36",30,"1 oz Malibu rum "], ["5646","213",3.7,"1 splash Triple sec "], ["5646","211",3.7,"1 splash Sweet and sour "], ["5646","323",29.5,"1 shot Sprite "], ["3788","462",120,"4 oz Tequila "], ["3788","425",120,"4 oz Pisang Ambon "], ["3788","445",240,"8 oz Orange juice "], ["2830","376",45,"1 1/2 oz Gin "], ["2830","15",30,"1 oz Green Creme de Menthe "], ["2830","424",30,"1 oz Lemon juice "], ["3111","123",7.38,"1/4 shot Kiwi liqueur "], ["3111","316",22.13,"3/4 shot Vodka "], ["441","376",60,"2 oz Gin "], ["441","192",30,"1 oz Brandy "], ["441","478",10,"2 tsp Orgeat syrup "], ["441","424",10,"2 tsp Lemon juice "], ["4450","376",45,"1 1/2 oz Gin "], ["4450","404",150,"5 oz Grapefruit juice "], ["2043","146",30,"1 oz Midori melon liqueur "], ["2043","227",30,"1 oz Banana liqueur "], ["2043","36",30,"1 oz Malibu rum "], ["2043","22",3.7,"1 splash 7-Up "], ["5953","265",30,"1 oz Kahlua "], ["5953","85",30,"1 oz Bacardi 151 proof rum "], ["5953","82",0.9,"1 dash Grenadine "], ["1102","387",60,"2 oz Dark rum "], ["1102","352",90,"3 oz Water "], ["1525","376",40,"4 cl Gin "], ["1525","259",160,"16 cl skimmed Milk "], ["1525","477",5,"1 tsp Sugar "], ["4090","272",15,"1/2 oz Razzmatazz "], ["4090","227",15,"1/2 oz Banana liqueur "], ["4090","404",15,"1/2 oz Grapefruit juice "], ["446","250",257,"1 cup strong black Tea "], ["446","387",29.5,"1 shot Dark rum (Bundaberg) "], ["445","365",15,"1-1/2 oz Absolut Kurant "], ["445","213",15,"1/2 oz Triple sec "], ["445","372",3.7,"1 splash Cranberry juice "], ["2854","392",360,"12 oz Beer "], ["2854","352",180,"6 oz Water "], ["2854","316",3.75,"1/8 oz Vodka "], ["4357","445",180,"6 oz Orange juice "], ["4357","316",60,"2 oz Vodka (Finlandia) "], ["4357","97",60,"2 oz RedRum "], ["4357","293",30,"1 oz Lemon liqueur "], ["4357","186",15,"1/2 oz Lime juice "], ["5235","359",50,"5 cl Cointreau "], ["5235","68",50,"5 cl Green Chartreuse "], ["2588","365",60,"2 oz Absolut Kurant "], ["2588","270",30,"1 oz Bailey's irish cream "], ["2588","376",60,"2 oz Gin "], ["2588","263",30,"1 oz Johnnie Walker "], ["3490","114",14.75,"1/2 shot Butterscotch schnapps "], ["3490","270",14.75,"1/2 shot Bailey's irish cream "], ["3490","62",3.7,"1 splash Yukon Jack "], ["1499","358",20,"2 cl Ouzo "], ["1499","131",20,"2 cl Tabasco sauce "], ["1764","214",30,"1 oz Light rum "], ["1764","387",60,"2 oz Dark rum "], ["1764","445",60,"2 oz Orange juice "], ["1764","261",60,"2 oz Pineapple juice "], ["1764","82",15,"1/2 oz Grenadine "], ["1764","85",15,"1/2 oz Bacardi 151 proof rum "], ["1654","359",20,"2 cl Cointreau "], ["1654","270",20,"2 cl Bailey's irish cream "], ["1654","21",20,"2 cl Whiskey "], ["1654","259",70,"7 cl Milk "], ["2584","62",14.75,"1/2 shot Yukon Jack "], ["2584","122",14.75,"1/2 shot Jack Daniels "], ["2894","376",37.5,"1 1/4 oz Gin (Bombay Sapphire) "], ["2894","68",15,"1/2 oz Green Chartreuse "], ["451","316",30,"1 oz Vodka "], ["451","479",15,"1/2 oz Galliano "], ["451","259",120,"4 oz Milk "], ["4712","462",15,"1/2 oz Tequila "], ["4712","108",15,"1/2 oz J�germeister "], ["1405","462",60,"2 oz Tequila "], ["1405","213",30,"1 oz Triple sec "], ["1405","445",90,"3 oz Orange juice "], ["1405","261",90,"3 oz Pineapple juice "], ["1405","82",10,"2 tsp Grenadine "], ["2396","316",30,"1 oz Vodka "], ["2396","479",15,"1/2 oz Galliano "], ["2396","445",120,"4 oz Orange juice "], ["453","376",45,"1 1/2 oz Gin "], ["453","88",22.5,"3/4 oz Dry Vermouth "], ["453","170",1.25,"1/4 tsp Anis "], ["453","82",5,"1 tsp Grenadine "], ["455","387",15,"1/2 oz Dark rum "], ["455","214",15,"1/2 oz Light rum "], ["455","383",15,"1/2 oz Sweet Vermouth "], ["5428","214",60,"2 oz Light rum "], ["5428","297",60,"2 oz Blue Curacao "], ["5428","211",30,"1 oz Sweet and sour "], ["5428","261",90,"3 oz Pineapple juice "], ["456","214",30,"1 oz Light rum "], ["456","261",30,"1 oz Pineapple juice "], ["456","424",5,"1 tsp Lemon juice "], ["6009","316",15,"1/2 oz Vodka "], ["6009","342",15,"1/2 oz Southern Comfort "], ["6009","375",15,"1/2 oz Amaretto "], ["6009","368",15,"1/2 oz Sloe gin "], ["6009","445",30,"1 oz Orange juice "], ["6009","261",30,"1 oz Pineapple juice "], ["5928","319",60,"2 oz Black rum (Bacardi) "], ["5928","342",60,"2 oz Southern Comfort "], ["5928","261",180,"6 oz Pineapple juice "], ["5928","82",3.7,"1 splash Grenadine to taste "], ["1589","114",9.83,"1/3 shot Butterscotch schnapps "], ["1589","375",9.83,"1/3 shot Amaretto "], ["1589","468",9.83,"1/3 shot Coconut rum "], ["2147","375",15,"1/2 oz Amaretto "], ["2147","316",15,"1/2 oz Vodka "], ["2147","304",15,"1/2 oz Rum "], ["2147","10",15,"1/2 oz Creme de Banane "], ["2147","445",60,"2 oz Orange juice "], ["2147","261",60,"2 oz Pineapple juice "], ["2147","82",45,"1 1/2 oz Grenadine "], ["6168","316",45,"1 1/2 oz Vodka "], ["6168","372",75,"2 1/2 oz Cranberry juice "], ["6168","445",75,"2 1/2 oz Orange juice "], ["6168","443",45,"1 1/2 oz Soda water "], ["3400","468",60,"2 oz Coconut rum (Parrot Bay) "], ["3400","78",15,"1/2 oz Absolut Mandrin "], ["3400","261",210,"7 oz Pineapple juice (Dole) "], ["3400","82",3.7,"1 splash Grenadine (Rose's) "], ["5702","316",15,"1/2 oz Vodka "], ["5702","342",15,"1/2 oz Southern Comfort "], ["5702","375",7.5,"1/4 oz Amaretto "], ["5702","445",3.7,"1 splash Orange juice "], ["5702","22",3.7,"1 splash 7-Up "], ["5702","82",3.7,"1 splash Grenadine "], ["1442","316",22.5,"3/4 oz Vodka "], ["1442","342",22.5,"3/4 oz Southern Comfort "], ["1442","375",22.5,"3/4 oz Amaretto "], ["1442","445",45,"1 1/2 oz Orange juice "], ["1442","261",45,"1 1/2 oz Pineapple juice "], ["1442","82",3.7,"1 splash Grenadine "], ["2703","304",37.5,"1 1/4 oz Rum (Malibu) "], ["2703","322",15,"1/2 oz Peachtree schnapps (Dekuyper) "], ["2703","297",15,"1/2 oz Blue Curacao (Dekuyper) "], ["2703","211",90,"3 oz Sweet and sour "], ["2703","388",3.7,"1 splash Lemon-lime soda "], ["1965","316",30,"1 oz Vodka (Ketel One) "], ["1965","167",15,"1/2 oz Frangelico "], ["5391","214",45,"1 1/2 oz Light rum "], ["5391","176",7.5,"1/4 oz Maraschino liqueur "], ["5391","186",22.5,"3/4 oz Lime juice "], ["5391","404",7.5,"1/4 oz Grapefruit juice "], ["459","316",20,"2 cl Vodka "], ["459","146",40,"4 cl Midori melon liqueur "], ["459","266",120,"10-12 cl Sour mix "], ["3234","21",30,"1 oz Whiskey "], ["3234","316",30,"1 oz Vodka "], ["3234","376",30,"1 oz Gin "], ["3234","214",30,"1 oz Light rum "], ["3234","297",15,"1/2 oz Blue Curacao "], ["3234","221",15,"1/2 oz Raspberry schnapps "], ["3234","274",15,"1/2 oz Melon liqueur "], ["3234","213",15,"1/2 oz Triple sec "], ["3234","372",30,"1 oz Cranberry juice "], ["3234","261",30,"1 oz Pineapple juice "], ["3234","211",30,"1 oz Sweet and sour "], ["461","376",45,"1 1/2 oz Gin "], ["461","213",15,"1/2 oz Triple sec "], ["461","296",30,"1 oz Sake "], ["1197","316",45,"1 1/2 oz Vodka (Skyy) "], ["1197","54",45,"1 1/2 oz Chambord raspberry liqueur "], ["1197","213",30,"1 oz Triple sec "], ["1197","200",3.7,"1 splash Rose's sweetened lime juice "], ["5753","378",52.5,"1 3/4 oz Scotch "], ["5753","408",22.5,"3/4 oz Vermouth "], ["5753","424",1.25,"1/4 tsp Lemon juice "], ["5753","433",0.9,"1 dash Orange bitters "], ["4619","270",37.5,"1 1/4 oz Bailey's irish cream "], ["4619","375",37.5,"1 1/4 oz Amaretto "], ["5376","146",60,"2 oz Midori melon liqueur "], ["5376","462",60,"2 oz Tequila "], ["5376","372",60,"2 oz Cranberry juice "], ["5376","108",30,"1 oz J�germeister "], ["464","376",22.5,"3/4 oz Gin "], ["464","351",22.5,"3/4 oz Benedictine "], ["464","176",22.5,"3/4 oz Maraschino liqueur "], ["4678","342",30,"1 oz Southern Comfort "], ["4678","316",30,"1 oz Vodka (Finlandia) "], ["4678","445",15,"1/2 oz Orange juice "], ["4678","186",15,"1/2 oz Lime juice "], ["4678","464",3.7,"1 splash Peppermint schnapps "], ["4678","323",3.7,"1 splash Sprite or 7-up "], ["465","378",45,"1 1/2 oz Scotch "], ["465","33",15,"1/2 oz Lillet "], ["465","383",15,"1/2 oz Sweet Vermouth "], ["4267","230",180,"6 oz frozen Limeade concentrate "], ["4267","2",180,"6 oz frozen Lemonade concentrate "], ["4267","309",180,"6 oz Peach schnapps "], ["4267","85",180,"6 oz Bacardi 151 proof rum "], ["3656","462",9.83,"1/3 shot Tequila "], ["3656","142",9.83,"1/3 shot White rum "], ["3656","316",9.83,"1/3 shot Vodka (Smirnoff) "], ["3657","462",14.75,"1/2 shot Tequila "], ["3657","304",14.75,"1/2 shot Rum "], ["4389","462",14.75,"1/2 shot Tequila "], ["4389","342",14.75,"1/2 shot Southern Comfort "], ["2636","139",45,"1 1/2 oz Tuaca "], ["2636","324",180,"6 oz Apple cider "], ["3185","270",14.75,"1/2 shot Bailey's irish cream "], ["3185","115",14.75,"1/2 shot Goldschlager "], ["3185","409",0.9,"1 dash Cinnamon (optional) "], ["2558","309",15,"1/2 oz Peach schnapps "], ["2558","265",15,"1/2 oz Kahlua "], ["3724","316",25,"2 1/2 cl Vodka "], ["3724","252",25,"2 1/2 cl Whisky "], ["3724","376",25,"2 1/2 cl Gin "], ["3724","131",0.9,"1 dash Tabasco sauce "], ["1012","132",45,"1 1/2 oz Cinnamon schnapps "], ["1012","146",45,"1 1/2 oz Midori melon liqueur "], ["1061","42",29.5,"1 shot Irish whiskey (Bushmill's) "], ["1061","270",22.13,"3/4 shot Bailey's irish cream "], ["1061","482",180,"6 oz hot Coffee "], ["1687","21",15,"1/2 oz Whiskey "], ["1687","445",60,"2 oz Orange juice "], ["1687","304",30,"1 oz Rum "], ["1687","316",30,"1 oz Vodka "], ["471","444",15,"1/2 oz Hot Damn "], ["471","309",15,"1/2 oz Peach schnapps "], ["4918","444",15,"1/2 oz Hot Damn "], ["4918","202",15,"1/2 oz Gold tequila (Cuervo) "], ["2673","85",60,"2 oz Bacardi 151 proof rum "], ["2673","131",0.9,"1 dash Tabasco sauce "], ["5470","316",15,"1/2 oz Vodka (Fris) "], ["5470","501",15,"1/2 oz Ice 101 "], ["5470","131",0.9,"1 dash Tabasco sauce "], ["5018","316",30,"1 oz Vodka (Habanero) "], ["5018","445",90,"3 oz Orange juice "], ["5018","83",90,"3 oz Ginger ale "], ["4233","309",30,"1 oz Peach schnapps "], ["4233","376",15,"1/2 oz Gin "], ["5409","312",37.5,"1 1/4 oz Absolut Citron "], ["5409","359",18.75,"5/8 oz Cointreau "], ["5409","211",30,"1 oz Sweet and sour "], ["5409","445",15,"1/2 oz Orange juice "], ["5409","372",15,"1/2 oz Cranberry juice "], ["4874","270",45,"1 1/2 oz Bailey's irish cream "], ["4874","167",22.5,"3/4 oz Frangelico "], ["4874","316",60,"2 oz Vodka (Absolute or Belvedere) "], ["1649","316",30,"1 oz Vodka "], ["1649","375",15,"1/2 oz Amaretto "], ["1649","368",15,"1/2 oz Sloe gin "], ["1649","146",3.7,"1 splash Midori melon liqueur "], ["1649","342",3.7,"1 splash Southern Comfort "], ["1649","445",30,"1 oz Orange juice "], ["1649","372",15,"1/2 oz Cranberry juice "], ["5705","387",30,"1 oz Dark rum (Bacardi) "], ["5705","355",30,"1 oz Passion fruit juice "], ["5705","82",15,"1/2 oz Grenadine "], ["5705","445",15,"1/2 oz Orange juice with pulp "], ["2157","214",7.5,"1/4 oz Light rum "], ["2157","376",7.5,"1/4 oz Gin "], ["2157","316",7.5,"1/4 oz Vodka "], ["2157","462",7.5,"1/4 oz Tequila "], ["2157","297",7.5,"1/4 oz Blue Curacao "], ["2157","179",0.9,"1 dash Cherry brandy "], ["2157","266",90,"3 oz Sour mix "], ["2157","445",90,"3 oz Orange juice "], ["4023","145",60,"2 oz Rumple Minze "], ["4023","475",60,"2 oz Sambuca "], ["4023","304",15,"1/2 oz Rum (Bacardi) "], ["4023","372",60,"2 oz Cranberry juice "], ["4023","326",90,"3 oz Orange "], ["5473","198",29.5,"1 shot Aftershock "], ["5473","115",29.5,"1 shot Goldschlager "], ["5267","122",30,"1 oz Jack Daniels "], ["5267","375",45,"1 1/2 oz Amaretto "], ["5267","476",15,"1/2 oz Pepsi Cola "], ["4255","198",18.75,"5/8 oz Aftershock "], ["4255","316",15,"4/8 oz Vodka (Absolut) "], ["4255","85",3.75,"1/8 oz 151 proof rum "], ["3147","375",20,"2/3 oz Amaretto "], ["3147","376",10,"1/3 oz Gin (Tanqueray) "], ["2270","227",20,"2 cl Banana liqueur "], ["2270","133",20,"2 cl Aquavit linie "], ["2270","186",50,"1,5 cl Lime juice "], ["2270","22",50,"2,5 cl 7-Up "], ["2469","265",30,"1 oz Kahlua "], ["2469","29",45,"1 1/2 oz Tonic water "], ["4376","375",60,"2 oz Amaretto "], ["4376","445",128.5,"1/2 cup Orange juice "], ["4376","503",128.5,"1/2 cup Vanilla ice-cream "], ["479","316",45,"1 1/2 oz Vodka "], ["479","161",105,"3 1/2 oz Iced tea, pre-sweetened "], ["2007","316",10,"1/3 oz Vodka "], ["2007","462",10,"1/3 oz Tequila "], ["2007","265",10,"1/3 oz Kahlua "], ["3489","450",90,"3 oz Rye whiskey "], ["3489","83",240,"8 oz Ginger ale "], ["3489","186",5,"1 tsp Lime juice "], ["482","214",45,"1 1/2 oz Light rum "], ["482","375",15,"1/2 oz Amaretto "], ["482","186",15,"1/2 oz Lime juice "], ["482","424",5,"1 tsp Lemon juice "], ["482","477",2.5,"1/2 tsp superfine Sugar "], ["1074","186",40,"4 cl Lime juice "], ["1074","376",20,"2 cl Gin "], ["1074","248",40,"4 cl Aperol "], ["6082","496",60,"2 oz Hpnotiq "], ["6082","3",60,"2 oz Cognac (Hennessy) "], ["3253","146",60,"2 oz Midori melon liqueur "], ["3253","316",30,"1 oz Vodka "], ["3253","199",60,"2 oz Mountain Dew "], ["3847","462",14.75,"1/2 shot Tequila "], ["3847","252",14.75,"1/2 shot Whisky "], ["3847","295",29.5,"1 shot Champagne "], ["3836","85",90,"3 oz Bacardi 151 proof rum "], ["3836","71",90,"3 oz Everclear "], ["3836","108",90,"3 oz J�germeister "], ["3836","352",150,"5 oz Water "], ["3836","51",0.9,"1 dash Salt "], ["4203","312",7.5,"1-1/4 oz Absolut Citron "], ["4203","365",7.5,"1-1/4 oz Absolut Kurant "], ["4203","315",3.7,"1 splash Grand Marnier "], ["5285","480",60,"2 oz Irish cream "], ["5285","462",30,"1 oz Tequila "], ["1274","482",240,"8 oz Coffee "], ["1274","270",60,"2 oz Bailey's irish cream "], ["1274","126",60,"2 oz Half-and-half "], ["1274","477",5,"1 tsp Sugar "], ["5264","119",30,"1 oz Absolut Vodka "], ["5264","270",45,"1 1/2 oz Bailey's irish cream "], ["5264","41",45,"1 1/2 oz Light cream "], ["4781","270",22.5,"3/4 oz Bailey's irish cream "], ["4781","249",22.5,"3/4 oz Bourbon "], ["4781","316",22.5,"3/4 oz Vodka "], ["4781","445",90,"2-3 oz Orange juice "], ["4454","270",15,"1/2 oz Bailey's irish cream "], ["4454","115",15,"1/2 oz Goldschlager "], ["5673","147",30,"1 oz Irish Mist "], ["5673","15",3.7,"1 splash Green Creme de Menthe "], ["4469","146",30,"1 oz Midori melon liqueur "], ["4469","295",90,"3 oz Champagne "], ["4469","445",30,"1 oz Orange juice "], ["3051","15",90,"3 oz Green Creme de Menthe "], ["3051","375",90,"3 oz Amaretto "], ["3051","424",60,"2 oz Lemon juice "], ["4289","316",29.5,"1 shot Vodka "], ["4289","265",29.5,"1 shot Kahlua "], ["4289","480",29.5,"1 shot Irish cream "], ["4496","173",30,"1 oz Canadian whisky "], ["4496","383",30,"1 oz Sweet Vermouth "], ["4496","375",30,"1 oz Amaretto "], ["4496","106",0.9,"1 dash Bitters "], ["1294","316",40,"4 cl Vodka "], ["1294","425",20,"2 cl Pisang Ambon "], ["1294","266",20,"2 cl Sour mix "], ["1294","443",100,"10 cl Soda water "], ["4253","3",60,"2 oz Cognac "], ["4253","54",30,"1 oz Chambord raspberry liqueur "], ["2882","316",45,"1 1/2 oz Stoli Vodka "], ["2882","65",120,"4 oz Guava juice "], ["2882","372",3.7,"1 splash Cranberry juice "], ["2882","445",0.9,"1 dash Orange juice "], ["5534","227",22.5,"3/4 oz Banana liqueur "], ["5534","36",22.5,"3/4 oz Malibu rum "], ["5534","122",15,"1/2 oz Jack Daniels "], ["5534","261",30,"1 oz Pineapple juice "], ["5534","211",30,"1 oz Sweet and sour "], ["5534","175",60,"2 oz Coca-Cola "], ["1815","316",30,"1 oz Vodka "], ["1815","297",30,"1 oz Blue Curacao "], ["1815","54",30,"1 oz Chambord raspberry liqueur "], ["1815","266",30,"1 oz Sour mix "], ["1815","22",60,"2 oz 7-Up "], ["5819","36",30,"1 oz Malibu rum "], ["5819","375",30,"1 oz Amaretto "], ["5819","445",120,"4 oz Orange juice "], ["5819","82",3.7,"1 splash Grenadine "], ["5185","375",30,"1 oz Amaretto "], ["5185","266",60,"2 oz Sour mix "], ["5185","462",15,"1/2 oz Tequila (Cuervo) "], ["5185","213",15,"1/2 oz Triple sec "], ["5573","167",15,"1/2 oz Frangelico "], ["5573","375",15,"1/2 oz Amaretto "], ["5573","139",30,"1 oz Tuaca "], ["4411","375",45,"1 1/2 oz Amaretto "], ["4411","41",90,"3 oz Light cream "], ["5187","316",37.5,"1 1/4 oz Vodka "], ["5187","327",22.5,"3/4 oz Campari "], ["5187","356",7.5,"1/4 oz Limoncello "], ["5187","445",22.5,"3/4 oz Orange juice "], ["5187","211",22.5,"3/4 oz Sweet and sour "], ["5771","375",60,"2 oz Amaretto "], ["5771","445",90,"3 oz Orange juice "], ["5771","130",90,"3 oz Club soda "], ["5771","82",0.9,"1 dash Grenadine "], ["4876","192",22.5,"3/4 oz Brandy "], ["4876","479",15,"1/2 oz Galliano "], ["1253","293",30,"1 oz Lemon liqueur "], ["1253","404",20,"2/3 oz Grapefruit juice "], ["1253","316",5,"1/6 oz Vodka "], ["1253","424",5,"1/6 oz Lemon juice "], ["1253","82",5,"1/6 oz Grenadine syrup "], ["489","249",60,"2 oz Bourbon "], ["489","375",15,"1/2 oz Amaretto "], ["489","259",30,"1 oz Milk "], ["491","249",60,"2 oz Bourbon "], ["491","375",15,"1/2 oz Amaretto "], ["2833","122",30,"1 oz Jack Daniels "], ["2833","202",30,"1 oz Gold tequila (Jose Cuervo) "], ["5301","423",60,"2 oz Applejack "], ["5301","424",30,"1 oz Lemon juice "], ["5301","82",30,"1 oz Grenadine "], ["5260","335",14.75,"1/2 shot Spiced rum (Captain Morgan's) "], ["5260","375",7.38,"1/4 shot Amaretto "], ["5260","10",7.38,"1/4 shot Creme de Banane "], ["2861","182",75,"2 1/2 oz Crown Royal "], ["2861","114",22.5,"3/4 oz Butterscotch schnapps (Buttershots) "], ["4266","122",15,"1/2 oz Jack Daniels "], ["4266","462",15,"1/2 oz Tequila "], ["1645","448",30,"1 oz Apple brandy "], ["1645","261",30,"1 oz Pineapple juice "], ["1645","106",0.9,"1 dash Bitters "], ["5203","122",30,"1 oz Jack Daniels "], ["5203","375",30,"1 oz Amaretto "], ["494","108",30,"1 oz J�germeister (ice cold) "], ["494","261",60,"2 oz Pineapple juice "], ["494","373",60,"2 oz Pina colada mix "], ["4149","198",15,"1/2 oz Aftershock "], ["4149","108",15,"1/2 oz J�germeister "], ["1205","431",30,"1 oz Coffee brandy "], ["1205","333",30,"1 oz white Creme de Cacao "], ["1205","41",30,"1 oz Light cream "], ["6016","85",60,"2 oz 151 proof rum (Bacardi) "], ["6016","494",180,"6 oz chilled Jolt Cola "], ["3644","445",120,"4 oz Orange juice "], ["3644","468",120,"4 oz Coconut rum "], ["3644","372",60,"1 - 2 oz Cranberry juice "], ["5614","214",30,"1 oz Light rum "], ["5614","36",15,"1/2 oz Malibu rum "], ["5614","261",15,"1/2 oz Pineapple juice "], ["2810","36",30,"1 oz Malibu rum "], ["2810","167",30,"1 oz Frangelico "], ["2810","270",30,"1 oz Bailey's irish cream "], ["2810","259",30,"1 oz Milk "], ["3454","304",30,"1 oz Rum (Bacardi) "], ["3454","36",30,"1 oz Malibu rum "], ["3454","227",30,"1 oz Banana liqueur "], ["3454","372",3.7,"Add 1 splash Cranberry juice "], ["3454","261",3.7,"Add 1 splash Pineapple juice "], ["3594","316",60,"2 oz Vodka "], ["3594","309",60,"2 oz Peach schnapps "], ["3594","445",135,"4 1/2 oz Orange juice "], ["3594","372",30,"1 oz Cranberry juice "], ["4878","304",37.5,"1 1/4 oz Captain Morgan's Rum "], ["4878","304",15,"1/2 oz Meyers Rum "], ["4878","445",45,"1 1/2 oz Orange juice "], ["4878","261",45,"1 1/2 oz Pineapple juice "], ["4878","211",30,"1 oz Sweet and sour "], ["5037","316",30,"1 oz Vodka (Skyy) "], ["5037","146",22.5,"3/4 oz Midori melon liqueur "], ["5037","126",15,"1/2 oz Half-and-half "], ["5037","36",7.5,"1/4 oz Malibu rum "], ["5648","59",120,"4 oz Fanta "], ["5648","323",120,"4 oz Sprite "], ["5648","226",120,"4 oz Bacardi Limon "], ["498","378",60,"2 oz Scotch "], ["498","451",15,"1/2 oz Tawny port "], ["498","88",15,"1/2 oz Dry Vermouth "], ["498","106",0.9,"1 dash Bitters "], ["6170","134",1050,"0.35 oz (small boxI) Jello, any flavor "], ["6170","352",257,"1 cup boiling Water "], ["6170","316",257,"1 cup Vodka "], ["4457","82",30,"1 oz Grenadine "], ["4457","335",90,"3 oz Spiced rum "], ["4457","342",60,"2 oz Southern Comfort "], ["4457","83",360,"12 oz Ginger ale "], ["5829","213",15,"1/2 oz Triple sec "], ["5829","316",30,"1 oz Vodka "], ["5829","106",0.9,"1 dash Bitters "], ["5829","51",0.9,"1 dash Salt "], ["6054","376",22.5,"3/4 oz Gin "], ["6054","231",22.5,"3/4 oz Apricot brandy "], ["6054","359",22.5,"3/4 oz Cointreau "], ["2437","265",14.75,"1/2 shot Kahlua "], ["2437","124",14.75,"1/2 shot Anisette "], ["2437","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["1609","174",30,"1 oz Blackberry brandy "], ["1609","170",30,"1 oz Anis "], ["1440","310",257,"1 cup Hot chocolate "], ["1440","114",29.5,"1 shot Butterscotch schnapps "], ["1440","480",3.7,"1 splash Irish cream (Bailey's) "], ["3676","316",150,"0.5 oz Vodka "], ["3676","124",150,"0.5 oz Anisette "], ["3676","445",150,"0,5 oz Orange juice "], ["5620","226",60,"6 cl Bacardi Limon "], ["5620","323",80,"8 cl Sprite "], ["5620","484",120,"12 cl Red Bull or Battery "], ["3122","290",200,"20 cl Schweppes Russchian "], ["3122","316",190,"19 cl Vodka "], ["502","335",30,"1 oz Spiced rum "], ["502","36",30,"1 oz Malibu rum "], ["502","304",30,"1 oz Rum (Bacardi) "], ["502","226",30,"1 oz Bacardi Limon "], ["502","372",60,"2 oz Cranberry juice "], ["502","445",60,"2 oz Orange juice "], ["502","261",60,"2 oz Pineapple juice "], ["502","82",5,"1 tsp Grenadine "], ["502","342",60,"2 oz Southern Comfort "], ["3070","376",45,"1 1/2 oz Gin "], ["3070","383",10,"2 tsp Sweet Vermouth "], ["3070","267",5,"1 tsp Black Sambuca "], ["504","316",29.5,"1 shot Vodka "], ["504","506",120,"4 oz White grape juice "], ["1891","316",75,"2 1/2 oz Finlandia Vodka "], ["1891","323",90,"3 oz Sprite "], ["1891","445",60,"2 oz Orange juice "], ["505","376",45,"1 1/2 oz Gin "], ["505","68",15,"1/2 oz Green Chartreuse "], ["505","207",15,"1/2 oz Yellow Chartreuse "], ["3832","122",15,"1/2 oz Jack Daniels "], ["3832","471",15,"1/2 oz Jim Beam "], ["3832","232",15,"1/2 oz Wild Turkey "], ["3832","53",15,"1/2 oz Seagram 7 "], ["4530","471",30,"1 oz Jim Beam "], ["4530","375",30,"1 oz Amaretto "], ["3678","316",45,"1 1/2 oz Vodka (Ketel One) "], ["3678","333",30,"1 oz white Creme de Cacao "], ["3678","167",15,"1/2 oz Frangelico "], ["3658","316",600,"20 oz Vodka (Absolut) "], ["3658","323",900,"30 oz Sprite "], ["3658","243",300,"10 oz Blueberry schnapps "], ["3658","270",150,"5 oz Bailey's irish cream "], ["3658","416",300,"10 oz Grape juice "], ["510","182",15,"1/2 oz Crown Royal "], ["510","122",15,"1/2 oz Jack Daniels "], ["510","232",15,"1/2 oz Wild Turkey "], ["510","85",15,"Float 1/2 oz Bacardi 151 proof rum "], ["510","211",90,"3 oz Sweet and sour "], ["510","372",3.7,"1 splash Cranberry juice "], ["511","312",10,"1 cl Absolut Citron "], ["511","169",10,"1 cl Lime vodka (Hammer) "], ["511","445",10,"1 cl Orange juice "], ["511","479",10,"1 cl Galliano "], ["512","368",45,"1 1/2 oz Sloe gin "], ["512","213",22.5,"3/4 oz Triple sec "], ["512","124",5,"1 tsp Anisette "], ["4222","449",29.5,"1 shot Apple schnapps (Apple Barrell) "], ["4222","322",29.5,"1 shot Peachtree schnapps "], ["4222","372",257,"1 cup Cranberry juice "], ["514","383",7.5,"1 1/2 tsp Sweet Vermouth "], ["514","88",7.5,"1 1/2 tsp Dry Vermouth "], ["514","376",45,"1 1/2 oz Gin "], ["514","213",2.5,"1/2 tsp Triple sec "], ["514","424",2.5,"1/2 tsp Lemon juice "], ["514","106",0.9,"1 dash Bitters "], ["4560","387",60,"2 oz Dark rum "], ["4560","487",15,"1/2 oz Dark Creme de Cacao "], ["515","317",15,"1/2 oz Jose Cuervo "], ["515","1",15,"1/2 oz Firewater "], ["517","316",29.5,"1 shot Vodka "], ["517","257",14.75,"1/2 shot Tropical fruit schnapps "], ["517","445",90,"3 oz Orange juice "], ["517","372",45,"1 1/2 oz Cranberry juice "], ["3441","349",45,"1 1/2 oz A�ejo rum "], ["3441","249",15,"1/2 oz Bourbon "], ["3441","487",15,"1/2 oz Dark Creme de Cacao "], ["2613","316",29.5,"1 shot Vodka "], ["2613","214",29.5,"1 shot Light rum "], ["2613","342",14.75,"1/2 shot Southern Comfort "], ["2613","387",3.7,"1 splash Dark rum "], ["2613","82",3.7,"1 splash Grenadine "], ["2613","261",60,"2 oz Pineapple juice "], ["2613","445",60,"2 oz Orange juice "], ["2613","404",30,"1 oz Grapefruit juice "], ["2700","316",40,"4 cl Vodka "], ["2700","266",20,"2 cl Sour mix "], ["2700","175",60,"6 cl Coca-Cola "], ["5855","316",30,"1 oz Vodka "], ["5855","468",30,"1 oz Coconut rum "], ["3340","179",30,"1 oz Cherry brandy "], ["3340","493",30,"1 oz Taboo "], ["3340","330",15,"1/2 oz Port "], ["3340","82",30,"1 oz Grenadine "], ["3340","261",90,"3 oz Pineapple juice "], ["5905","122",60,"2 oz Jack Daniels "], ["5905","174",60,"2 oz Blackberry brandy "], ["2504","36",15,"1/2 oz Malibu rum "], ["2504","333",30,"1 oz white Creme de Cacao "], ["2504","205",30,"1 oz White Creme de Menthe "], ["1065","471",10,"1/3 oz Jim Beam "], ["1065","122",10,"1/3 oz Jack Daniels "], ["1065","263",10,"1/3 oz Johnnie Walker "], ["1065","317",10,"1/3 oz Jose Cuervo "], ["1065","108",10,"1/3 oz J�germeister "], ["1065","85",10,"1/3 oz 151 proof rum "], ["2219","265",9.83,"1/3 shot Kahlua "], ["2219","479",9.83,"1/3 shot Galliano "], ["2219","270",9.83,"1/3 shot Bailey's irish cream "], ["520","108",29.5,"1 shot J�germeister "], ["520","82",29.5,"1 shot Grenadine "], ["520","445",150,"5 oz Orange juice "], ["4626","265",15,"1/2 oz Kahlua "], ["4626","316",7.5,"1/4 oz Vodka "], ["4626","29",7.5,"1/4 oz Tonic water "], ["4605","265",45,"1 1/2 oz Kahlua "], ["4605","424",30,"1 oz Lemon juice "], ["4605","477",7.5,"1 1/2 tsp Sugar "], ["5327","179",10,"1/3 oz Cherry brandy "], ["5327","231",10,"1/3 oz Apricot brandy "], ["5327","213",10,"1/3 oz Triple sec "], ["1824","301",100,"10 cl Red wine "], ["1824","175",100,"10 cl Coca-Cola "], ["3540","85",30,"1 oz 151 proof rum "], ["3540","297",15,"1/2 oz Blue Curacao "], ["3540","261",90,"3 oz Pineapple juice "], ["3540","445",60,"2 oz Orange juice "], ["3540","150",10,"1/3 oz Pimm's No. 1 "], ["1406","475",30,"1 oz Sambuca "], ["1406","270",30,"1 oz Bailey's irish cream "], ["521","462",30,"1 oz Tequila "], ["521","213",30,"1 oz Triple sec "], ["521","186",30,"1 oz Lime juice "], ["1015","316",30,"1 oz Vodka "], ["1015","213",30,"1 oz Triple sec "], ["1015","186",30,"1 oz Lime juice "], ["2174","425",30,"3 cl Pisang Ambon "], ["2174","270",30,"3 cl Bailey's irish cream "], ["2174","36",30,"3 cl Malibu rum "], ["2416","335",15,"1/2 oz Bacardi Spiced rum "], ["2416","319",15,"1/2 oz Bacardi Black rum "], ["2416","468",15,"1/2 oz Coconut rum (Parrot Bay) "], ["2416","412",15,"1/2 oz Creme de Noyaux "], ["2416","445",22.5,"3/4 oz Orange juice "], ["2416","372",22.5,"3/4 oz Cranberry juice "], ["4995","194",20,"2 cl Peach Vodka "], ["4995","323",30,"3 cl Sprite "], ["524","249",60,"2 oz Bourbon "], ["524","351",15,"1/2 oz Benedictine "], ["4313","122",15,"1/2 oz Jack Daniels "], ["4313","182",15,"1/2 oz Crown Royal "], ["4313","232",15,"1/2 oz Wild Turkey "], ["4313","471",15,"1/2 oz Jim Beam "], ["4313","175",3.7,"1 splash Coca-Cola "], ["5108","122",15,"1/2 oz Jack Daniels "], ["5108","342",15,"1/2 oz Southern Comfort "], ["5108","62",15,"1/2 oz Yukon Jack "], ["5108","471",15,"1/2 oz Jim Beam "], ["5108","266",60,"2 oz Sour mix "], ["5108","109",60,"2 oz Cola "], ["1537","450",60,"2 oz Rye whiskey (Crown Royal or Gibson's finest) "], ["1537","161",7.5,"1 1/2 tsp Iced tea mix "], ["1537","352",360,"12 oz cold Water "], ["4439","304",15,"1 1/2 cl Rum (Bacardi) "], ["4439","425",15,"1 1/2 cl Pisang Ambon "], ["4439","297",15,"1 1/2 cl Blue Curacao "], ["4439","227",15,"1 1/2 cl Banana liqueur "], ["1373","85",10,"1/3 oz Bacardi 151 proof rum "], ["1373","115",10,"1/3 oz Goldschlager "], ["1373","145",10,"1/3 oz Rumple Minze "], ["1515","271",30,"1 oz Key Largo schnapps "], ["1515","335",15,"1/2 oz Spiced rum (Captain Morgan's) "], ["1515","445",120,"4 oz Orange juice "], ["1515","261",120,"4 oz Pineapple juice "], ["1515","372",60,"2 oz Cranberry juice "], ["1515","85",15,"1/2 oz Bacardi 151 proof rum "], ["5624","223",22.5,"3/4 oz Licor 43 "], ["5624","316",3.7,"1 splash Vodka "], ["5624","200",7.5,"1/4 oz Rose's sweetened lime juice "], ["5624","259",15,"1/2 oz Milk or cream "], ["1806","223",30,"1 oz Licor 43 "], ["1806","142",15,"1/2 oz White rum (good quality) "], ["1806","211",30,"1 oz Sweet and sour "], ["1806","200",7.5,"1/4 oz Rose's sweetened lime juice (or Nellie & Joe's) "], ["1806","126",15,"1/2 oz Half-and-half "], ["5802","108",15,"1/2 oz J�germeister "], ["5802","122",15,"1/2 oz Jack Daniels "], ["5802","317",15,"1/2 oz Jose Cuervo "], ["5802","1",15,"1/2 oz Firewater "], ["6014","388",200,"20 cl Lemon-lime soda (7-up or Sprite) "], ["6014","82",30,"3 cl Grenadine syrup "], ["2112","462",90,"3 oz Tequila "], ["2112","85",90,"3 oz 151 proof rum "], ["2112","316",90,"3 oz Vodka "], ["2112","376",90,"3 oz Gin "], ["2112","375",60,"2 oz Amaretto "], ["1081","36",30,"1 oz Malibu rum "], ["1081","227",15,"1/2 oz Banana liqueur "], ["1081","237",15,"1/2 oz Raspberry liqueur "], ["1081","274",15,"1/2 oz Melon liqueur "], ["1081","297",15,"1/2 oz Blue Curacao "], ["1081","375",15,"1/2 oz Amaretto "], ["1081","213",15,"1/2 oz Triple sec "], ["1081","211",15,"1/2 oz Sweet and sour "], ["1081","445",15,"1/2 oz Orange juice "], ["1081","261",15,"1/2 oz Pineapple juice "], ["1081","372",15,"1/2 oz Cranberry juice "], ["3005","108",15,"1/2 oz J�germeister "], ["3005","340",15,"1/2 oz Barenjager "], ["1509","316",45,"1 1/2 oz Vodka "], ["1509","309",15,"1/2 oz Peach schnapps "], ["1509","375",15,"1/2 oz Amaretto "], ["1509","372",90,"3 oz Cranberry juice cocktail "], ["1752","475",40,"4 cl Sambuca "], ["1752","297",20,"2 cl Blue Curacao "], ["2406","475",30,"3 cl Sambuca "], ["2406","82",10,"1 cl Grenadine "], ["3988","270",15,"1/2 oz Bailey's irish cream "], ["3988","333",15,"1/2 oz Creme de Cacao "], ["3988","316",15,"1/2 oz Vodka "], ["3988","265",7.5,"1/4 oz Kahlua "], ["3761","179",22.5,"3/4 oz Cherry brandy "], ["3761","88",22.5,"3/4 oz Dry Vermouth "], ["3761","376",22.5,"3/4 oz Gin "], ["2367","471",10,"1/3 oz Jim Beam "], ["2367","17",10,"1/3 oz Mezcal "], ["2367","132",10,"1/3 oz Cinnamon schnapps "], ["2298","270",14.75,"1/2 shot Bailey's irish cream "], ["2298","108",14.75,"1/2 shot J�germeister "], ["2419","497",240,"8 oz Hawaiian Punch "], ["2419","462",29.5,"1 shot Tequila "], ["2419","304",29.5,"1 shot Rum "], ["3046","198",45,"1 1/2 oz Aftershock "], ["3046","32",45,"1 1/2 oz Cherry Kool-Aid "], ["1316","375",14.75,"1/2 shot Amaretto "], ["1316","342",14.75,"1/2 shot Southern Comfort "], ["1316","372",14.75,"1/2 shot Cranberry juice "], ["1316","82",3.7,"1 splash Grenadine "], ["1945","85",60,"2 oz light 151 proof rum "], ["1945","32",2.5,"1/2 tsp Tropical Kool-Aid mix "], ["3868","32",15,"1/2 oz Grape Kool-Aid "], ["3868","316",15,"1/2 oz Vodka or rum "], ["2444","316",30,"1 oz Vodka (Stolichnaya) "], ["2444","333",30,"1 oz Creme de Cacao "], ["2444","424",15,"1/2 oz Lemon juice "], ["2444","82",2.5,"1/2 tsp Grenadine "], ["4773","469",15,"1/2 oz Creme de Almond "], ["4773","276",15,"1/2 oz Root beer schnapps "], ["4773","126",7.5,"1/4 oz Half-and-half "], ["5694","323",60,"2 oz Sprite "], ["5694","445",60,"2 oz Orange juice "], ["5694","396",30,"1 oz Orange soda (Orangina) "], ["5694","424",0.9,"1 dash Lemon juice "], ["3256","146",29.5,"1 shot Midori melon liqueur "], ["3256","145",14.75,"1/2 shot Rumple Minze "], ["3256","115",14.75,"1/2 shot Goldschlager "], ["3256","85",29.5,"Layer 1 shot 151 proof rum (Bacardi) "], ["2823","304",45,"1 1/2 oz Rum (Bacardi) "], ["2823","34",90,"3 oz Maui "], ["2823","261",180,"6 oz Pineapple juice "], ["5659","376",60,"2 oz Gin "], ["5659","213",15,"1/2 oz Triple sec "], ["5659","261",15,"1/2 oz Pineapple juice "], ["5139","365",15,"1/2 oz Absolut Kurant "], ["5139","146",15,"1/2 oz Midori melon liqueur "], ["5139","309",15,"1/2 oz Peach schnapps "], ["5139","261",15,"1/2 oz Pineapple juice "], ["5139","211",15,"1/2 oz Sweet and sour "], ["4854","365",60,"2 oz Absolut Kurant "], ["4854","424",30,"1 oz Lemon juice "], ["4854","236",5,"1 tsp Powdered sugar "], ["4854","130",90,"3 oz Club soda "], ["532","378",45,"1 1/2 oz Scotch "], ["532","332",15,"1/2 oz Pernod "], ["532","261",90,"3 oz Pineapple juice "], ["3799","316",22.5,"3/4 oz Coffee Vodka (Stolichnya) "], ["3799","361",22.5,"3/4 oz Royale Chocolate liqueur (Marie Brizard) "], ["3799","126",22.5,"3/4 oz Half-and-half "], ["3799","357",7.5,"1/4 oz Sugar syrup "], ["5008","192",60,"2 oz Brandy "], ["5008","10",15,"1/2 oz Creme de Banane "], ["5008","445",5,"1 tsp Orange juice "], ["5008","424",15,"1/2 oz Lemon juice "], ["5997","376",45,"1 1/2 oz Gin "], ["5997","213",15,"1/2 oz Triple sec "], ["5997","383",15,"1/2 oz Sweet Vermouth "], ["5997","106",0.9,"1 dash Bitters "], ["6120","424",7.5,"1/4 oz Lemon juice "], ["6120","213",7.5,"1/4 oz Triple sec "], ["6120","445",30,"1 oz Orange juice "], ["6120","192",30,"1 oz Brandy "], ["536","464",15,"1/2 oz Peppermint schnapps "], ["536","309",15,"1/2 oz Peach schnapps "], ["536","316",15,"1/2 oz Vodka "], ["536","82",15,"1/2 oz Grenadine "], ["537","179",30,"1 oz Cherry brandy "], ["537","376",30,"1 oz Gin "], ["537","121",15,"1/2 oz Kirschwasser "], ["5663","192",45,"1 1/2 oz Brandy "], ["5663","205",15,"1/2 oz White Creme de Menthe "], ["5663","383",15,"1/2 oz Sweet Vermouth "], ["538","142",30,"1 oz White rum "], ["538","146",15,"1/2 oz Midori melon liqueur "], ["538","297",15,"1/2 oz Blue Curacao "], ["538","334",3.7,"1 splash Cherry syrup "], ["1207","376",20,"2 cl dry Gin (Gilbey's) "], ["1207","359",20,"2 cl Cointreau "], ["1207","88",10,"1 cl Dry Vermouth (Cinzano) "], ["1207","186",10,"1 cl Lime juice "], ["1207","509",10,"1 cl Monin bitter \"Sans Alcool\" "], ["2233","376",30,"1 oz Gin "], ["2233","359",15,"1/2 oz Cointreau "], ["2233","231",15,"1/2 oz Apricot brandy "], ["2233","355",60,"2 oz Passion fruit juice "], ["2233","261",60,"2 oz Pineapple juice "], ["5012","94",360,"12 oz Lager "], ["5012","186",60,"2 oz Lime juice "], ["5543","66",40,"4 cl Cachaca "], ["5543","55",40,"4 cl Cream of coconut "], ["5543","422",20,"2 cl Cream "], ["5543","291",100,"10 cl Cherry juice "], ["2303","387",45,"1 1/2 oz Dark rum "], ["2303","473",15,"1/2 oz Creme de Cassis "], ["2303","261",60,"2 oz Pineapple juice "], ["540","387",45,"1 1/2 oz Dark rum "], ["540","215",15,"1/2 oz Tia maria "], ["540","155",30,"1 oz Heavy cream "], ["6180","316",7.5,"1/4 oz Vodka (Absolut) "], ["6180","202",7.5,"1/4 oz Gold tequila (Cuervo) "], ["6180","304",7.5,"1/4 oz Rum (Cpt. Morgan) "], ["6180","213",7.5,"1/4 oz Triple sec "], ["6180","82",15,"1/2 oz Grenadine "], ["6180","445",128.5,"1/2 cup Orange juice "], ["6180","261",128.5,"1/2 cup Pineapple juice "], ["6007","471",50,"5 cl Jim Beam "], ["6007","205",20,"2 cl White Creme de Menthe "], ["6007","246",10,"1 cl Sirup of roses "], ["6007","213",0.9,"1 dash Triple sec "], ["4126","342",30,"1 oz Southern Comfort "], ["4126","375",15,"1/2 oz Amaretto "], ["4126","368",15,"1/2 oz Sloe gin "], ["4126","316",15,"1/2 oz Vodka "], ["4126","213",15,"1/2 oz Triple sec "], ["4126","445",210,"7 oz Orange juice "], ["2025","265",30,"1 oz Kahlua "], ["2025","270",30,"1 oz Bailey's irish cream "], ["2025","167",15,"1/2 oz Frangelico "], ["2025","316",45,"1 1/2 oz Vodka (Absolut) "], ["541","376",22.5,"3/4 oz Gin "], ["541","416",22.5,"3/4 oz Grape juice "], ["541","288",22.5,"3/4 oz Swedish Punsch "], ["1066","163",128.5,"1/2 cup plain Yoghurt "], ["1066","352",321.25,"1 1/4 cup cold Water "], ["1066","190",2.5,"1/2 tsp ground roasted Cumin seed "], ["1066","51",1.25,"1/4 tsp Salt "], ["1066","30",1.25,"1/4 tsp dried Mint "], ["1068","387",45,"1 1/2 oz Dark rum "], ["1068","383",45,"1 1/2 oz Sweet Vermouth "], ["1068","88",45,"1 1/2 oz Dry Vermouth "], ["1068","106",0.9,"1 dash Bitters "], ["3923","303",240,"8 oz White wine "], ["3923","323",90,"3 oz Sprite "], ["3923","237",60,"2 oz Raspberry liqueur "], ["4724","56",45,"1 1/2 oz Blended whiskey "], ["4724","88",22.5,"3/4 oz Dry Vermouth "], ["4724","170",1.25,"1/4 tsp Anis "], ["4724","176",1.25,"1/4 tsp Maraschino liqueur "], ["4724","106",0.9,"1 dash Bitters "], ["2906","265",60,"2 oz Kahlua "], ["2906","316",60,"2 oz Vodka "], ["2906","377",180,"6 oz Chocolate milk ( Yoo-Hoo works best) "], ["6110","108",15,"1/2 oz J�germeister "], ["6110","444",15,"1/2 oz Hot Damn "], ["6110","265",15,"1/2 oz Kahlua "], ["6110","422",3.7,"1 splash Cream "], ["4485","316",30,"1 oz Vodka "], ["4485","265",60,"2 oz Kahlua "], ["4485","375",30,"1 oz Amaretto "], ["4485","377",180,"6 oz Chocolate milk "], ["543","376",37.5,"1 1/4 oz Gin "], ["543","315",15,"1/2 oz Grand Marnier "], ["543","383",15,"1/2 oz Sweet Vermouth "], ["543","424",1.25,"1/4 tsp Lemon juice "], ["545","376",60,"2 oz Gin "], ["545","383",15,"1/2 oz Sweet Vermouth "], ["545","315",15,"1/2 oz Grand Marnier "], ["545","424",7.5,"1/4 oz Lemon juice "], ["2053","376",45,"1 1/2 oz Gin "], ["2053","292",5,"1 tsp Raspberry syrup "], ["2053","424",5,"1 tsp Lemon juice "], ["2053","176",1.25,"1/4 tsp Maraschino liqueur "], ["1785","54",30,"1 oz Chambord raspberry liqueur "], ["1785","226",30,"1 oz Bacardi Limon "], ["1785","295",90,"3 oz Champagne "], ["5306","462",30,"1 oz Tequila "], ["5306","316",30,"1 oz Vodka "], ["5306","376",30,"1 oz Gin "], ["5306","304",30,"1 oz Rum "], ["1016","445",20,"2 cl Orange juice "], ["1016","424",60,"6 cl Lemon juice "], ["2697","356",15,"1/2 oz Limoncello "], ["2697","378",30,"1 oz Scotch "], ["2697","381",15,"1/2 oz Drambuie "], ["3191","356",15,"1/2 oz Limoncello "], ["3191","253",15,"1/2 oz Grappa "], ["3850","115",14.75,"1/2 shot Goldschlager "], ["3850","480",14.75,"1/2 shot Irish cream "], ["5043","339",360,"12 oz Zima "], ["5043","468",45,"1 1/2 oz Coconut rum (Parrot bay/Malibu) "], ["4711","108",15,"1/2 oz J�germeister "], ["4711","422",15,"1/2 oz Cream "], ["4853","265",9.83,"1/3 shot Kahlua "], ["4853","259",9.83,"1/3 shot Milk "], ["4853","85",9.83,"1/3 shot Bacardi 151 proof rum "], ["4630","316",30,"1 oz Vodka "], ["4630","424",7.5,"1/4 oz Lemon juice "], ["4630","315",0.9,"1 dash Grand Marnier "], ["4630","297",0.9,"1 dash Blue Curacao "], ["6046","146",30,"1 oz Midori melon liqueur "], ["6046","214",30,"1 oz Light rum "], ["6046","261",90,"3 oz Pineapple juice "], ["2133","214",45,"1 1/2 oz Light rum (Bacardi) "], ["2133","387",45,"1 1/2 oz Dark rum (Myers) "], ["2133","427",30,"1 oz crushed Ice "], ["5416","265",10,"1/3 oz Kahlua "], ["5416","270",10,"1/3 oz Bailey's irish cream "], ["5416","85",10,"1/3 oz 151 proof rum "], ["1994","316",22.5,"3/4 oz Vodka "], ["1994","304",15,"1/2 oz Rum "], ["1994","186",15,"1/2 oz Lime juice "], ["1994","82",7.5,"1/4 oz Grenadine "], ["3853","316",60,"2 oz Vodka "], ["3853","274",30,"1 oz Melon liqueur "], ["3853","404",3.7,"1 splash Grapefruit juice "], ["4479","392",330,"33 cl Beer "], ["4479","186",50,"5 cl Lime juice "], ["4479","341",50,"5 cl Hoopers Hooch "], ["5567","56",30,"1 oz Blended whiskey "], ["5567","261",30,"1 oz Pineapple juice "], ["5567","477",2.5,"1/2 tsp Sugar "], ["5567","170",1.25,"1/4 tsp Anis "], ["5567","424",1.25,"1/4 tsp Lemon juice "], ["2397","475",22.5,"3/4 oz Sambuca, Chilled "], ["2397","108",22.5,"3/4 oz J�germeister, Chilled "], ["1351","316",90,"3 oz Vodka "], ["1351","309",90,"3 oz Peach schnapps "], ["1351","109",180,"6 oz Cola "], ["1514","315",7.38,"1/4 shot Grand Marnier "], ["1514","342",7.38,"1/4 shot Southern Comfort "], ["1514","316",7.38,"1/4 shot Vodka (Absolut) "], ["1514","375",7.38,"1/4 shot Amaretto "], ["1514","261",3.7,"1 splash Pineapple juice "], ["2803","462",15,"1/2 oz Silver Tequila "], ["2803","316",15,"1/2 oz Vodka "], ["2803","376",15,"1/2 oz Gin "], ["2803","214",15,"1/2 oz Light rum "], ["2803","71",15,"1/2 oz Everclear "], ["3551","342",14.75,"1/2 shot Southern Comfort "], ["3551","62",14.75,"1/2 shot Yukon Jack "], ["3551","122",14.75,"1/2 shot Jack Daniels "], ["3551","375",14.75,"1/2 shot Amaretto "], ["3551","445",128.5,"1/2 cup Orange juice "], ["3551","65",128.5,"1/2 cup Guava juice "], ["6004","316",7.5,"1/4 oz Vodka "], ["6004","375",7.5,"1/4 oz Amaretto "], ["6004","342",7.5,"1/4 oz Southern Comfort "], ["6004","359",7.5,"1/4 oz Cointreau "], ["6004","261",22.5,"3/4 oz Pineapple juice "], ["6004","22",3.7,"1 splash 7-Up "], ["5987","119",15,"1/2 oz Absolut Vodka "], ["5987","146",60,"2 oz Midori melon liqueur "], ["5987","352",30,"1 oz Water "], ["5987","338",60,"2 oz Mello Yello "], ["1946","145",150,"1.5 oz Rumple Minze "], ["1946","108",150,"1.5 oz J�germeister "], ["5172","490",45,"1 1/2 oz Citrus vodka "], ["5172","32",195,"6 1/2 oz Black Cherry Kool-Aid "], ["5237","333",45,"1 1/2 oz Creme de Cacao "], ["5237","167",22.5,"3/4 oz Frangelico "], ["5237","61",0.9,"1 dash Vanilla liqueur "], ["5034","487",30,"1 oz Dark Creme de Cacao "], ["5034","480",15,"1/2 oz Irish cream "], ["5034","167",15,"1/2 oz Frangelico "], ["5034","41",15,"1/2 oz Light cream "], ["5597","205",45,"1 1/2 oz White Creme de Menthe "], ["5597","387",45,"1 1/2 oz Dark rum "], ["3959","214",45,"1 1/2 oz Light rum "], ["3959","383",30,"1 oz Sweet Vermouth "], ["1676","146",10,"1/3 oz Midori melon liqueur "], ["1676","270",10,"1/3 oz Bailey's irish cream "], ["1676","108",10,"1/3 oz J�germeister "], ["550","316",150,"1.5 oz Vodka "], ["550","304",150,"1.5 oz Rum "], ["550","342",150,"1.5 oz Southern Comfort "], ["550","375",150,"1.5 oz Amaretto "], ["550","469",150,"1.5 oz Creme de Almond "], ["550","237",150,"1.5 oz Raspberry liqueur "], ["550","445",90,"3 oz Orange juice "], ["550","261",90,"3 oz Pineapple juice "], ["550","266",30,"1 oz Sour mix (optional) "], ["4343","122",20,"2/3 oz Jack Daniels "], ["4343","315",10,"1/3 oz Grand Marnier "], ["551","376",45,"1 1/2 oz Gin "], ["551","245",7.5,"1/4 oz Absinthe (Deva) "], ["553","383",22.5,"3/4 oz Sweet Vermouth "], ["553","376",45,"1 1/2 oz Gin "], ["2856","213",22.5,"3/4 oz Triple sec "], ["2856","119",22.5,"3/4 oz Absolut Vodka "], ["2856","202",22.5,"3/4 oz Gold tequila "], ["2856","85",22.5,"3/4 oz Bacardi 151 proof rum "], ["2856","376",22.5,"3/4 oz Gin (Tanqueray) "], ["2856","211",120,"4 oz Sweet and sour "], ["2856","476",60,"2 oz Pepsi Cola "], ["556","387",45,"1 1/2 oz Dark rum "], ["556","215",15,"1/2 oz Tia maria "], ["5709","214",45,"1 1/2 oz Light rum "], ["5709","192",15,"1/2 oz Brandy "], ["5709","179",15,"1/2 oz Cherry brandy "], ["5709","186",5,"1 tsp Lime juice "], ["558","342",90,"3 oz Southern Comfort "], ["558","316",30,"1 oz Vodka "], ["558","215",30,"1 oz Tia maria "], ["5557","214",60,"2 oz Light rum "], ["5557","445",75,"2 1/2 oz Orange juice "], ["5557","461",60,"2 oz Apple juice "], ["5557","380",195,"6 1/2 oz Squirt (or any other citrus soda) "], ["1372","435",30,"1 oz Orange vodka (Stoli) "], ["1372","54",15,"1/2 oz Chambord raspberry liqueur "], ["1372","372",15,"1/2 oz Cranberry juice "], ["3363","316",29.5,"1 shot Vodka "], ["3363","342",29.5,"1 shot Southern Comfort "], ["3363","291",29.5,"1 shot Cherry juice or 1 tblsp of Grenadine "], ["3363","261",420,"14 oz Pineapple juice "], ["2975","316",22.5,"3/4 oz Vodka (Absolut) "], ["2975","480",22.5,"3/4 oz Irish cream (Bailey's) "], ["1020","417",10,"1 cl Coconut liqueur (or coconut concentrate) "], ["1020","424",20,"2 cl Lemon juice "], ["1020","261",50,"5 cl Pineapple juice "], ["1020","404",50,"5 cl Grapefruit juice "], ["1020","445",50,"5 cl Orange juice "], ["1020","357",150,"15 cl Sugar syrup "], ["4823","376",60,"2 oz Gin "], ["4823","166",60,"2 oz Orange Curacao "], ["4823","372",120,"4 oz Cranberry juice "], ["3112","316",15,"1/2 oz Vodka (Skyy) "], ["3112","375",15,"1/2 oz Amaretto "], ["3112","213",15,"1/2 oz Triple sec "], ["3112","85",15,"1/2 oz 151 proof rum (Bacardi) "], ["3112","122",15,"1/2 oz Jack Daniels "], ["3112","342",15,"1/2 oz Southern Comfort "], ["3112","368",15,"1/2 oz Sloe gin "], ["3112","372",3.7,"1 splash Cranberry juice "], ["3112","186",3.7,"1 splash Lime juice "], ["3112","445",3.7,"1 splash Orange juice "], ["3968","354",15,"1/2 oz Metaxa "], ["3968","479",15,"1/2 oz Galliano "], ["559","142",20,"2 cl White rum (Bacardi) "], ["559","36",20,"2 cl Malibu rum "], ["559","333",29.5,"1 shot Creme de Cacao "], ["559","308",29.5,"1 shot Almond syrup "], ["559","397",15,"1 1/2 cl Coconut cream "], ["559","261",60,"6 cl Pineapple juice "], ["2074","365",40,"4 cl Absolut Kurant "], ["2074","324",50,"5 cl Apple cider "], ["4239","392",75,"2 1/2 oz Beer "], ["4239","445",75,"2 1/2 oz Orange juice "], ["4239","375",29.5,"Drop in 1 shot Amaretto "], ["1911","448",30,"1 oz Apple brandy "], ["1911","192",30,"1 oz Brandy "], ["1911","231",0.9,"1 dash Apricot brandy "], ["1927","304",10,"1 cl Rum "], ["1927","131",10,"2 tsp Tabasco sauce "], ["1927","462",20,"2 cl Tequila "], ["2165","146",15,"1/2 oz Midori melon liqueur "], ["2165","36",15,"1/2 oz Malibu rum "], ["2165","312",15,"1/2 oz Absolut Citron "], ["2165","309",15,"1/2 oz Peach schnapps "], ["2165","261",3.7,"1 splash Pineapple juice "], ["2165","211",3.7,"1 splash Sweet and sour "], ["2165","22",3.7,"1 splash 7-Up "], ["4951","375",45,"1 1/2 oz Amaretto "], ["4951","396",90,"3 oz Orange soda "], ["4951","211",90,"3 oz Sweet and sour "], ["1872","342",40,"4 cl Southern Comfort "], ["1872","424",20,"2 cl Lemon juice "], ["1872","109",60,"6 cl Cola "], ["5116","316",80,"8 cl Vodka "], ["5116","445",100,"10 cl Orange juice "], ["5116","290",120,"12 cl Schweppes Russchian "], ["4058","378",45,"1 1/2 oz Scotch "], ["4058","105",15,"1/2 oz cream Sherry "], ["4058","445",15,"1/2 oz Orange juice "], ["4058","424",15,"1/2 oz Lemon juice "], ["4058","82",5,"1 tsp Grenadine "], ["3523","167",15,"1/2 oz Frangelico "], ["3523","333",15,"1/2 oz Creme de Cacao "], ["561","378",45,"1 1/2 oz Scotch "], ["561","105",15,"1/2 oz dry Sherry "], ["561","445",15,"1/2 oz Orange juice "], ["561","424",15,"1/2 oz Lemon juice "], ["561","82",5,"1 tsp Grenadine "], ["1498","445",30,"1 oz Orange juice "], ["1498","316",15,"1/2 oz Vodka "], ["4697","316",30,"1 oz Vodka (Skyy) "], ["4697","309",30,"1 oz Peach schnapps "], ["4697","2",30,"1 oz Lemonade "], ["4697","175",30,"1 oz Coca-Cola "], ["564","157",20,"2 cl Passoa "], ["564","376",10,"1 cl Gin "], ["564","417",10,"1 cl Coconut liqueur "], ["564","261",120,"12 cl Pineapple juice "], ["4577","375",30,"1 oz Amaretto "], ["4577","342",30,"1 oz Southern Comfort "], ["4577","266",60,"2 oz Sour mix "], ["4993","342",40,"4 cl Southern Comfort "], ["4993","316",40,"4 cl Vodka (Absolut) "], ["4993","308",30,"3 cl Almond syrup "], ["4993","200",30,"3 cl Rose's sweetened lime juice "], ["4993","424",20,"2 cl fresh Lemon juice "], ["567","376",22.5,"3/4 oz Gin "], ["567","214",22.5,"3/4 oz Light rum "], ["567","359",22.5,"3/4 oz Cointreau "], ["567","424",22.5,"3/4 oz Lemon juice "], ["568","376",45,"1 1/2 oz Gin "], ["568","213",15,"1/2 oz Triple sec "], ["568","192",5,"1 tsp Brandy "], ["568","424",30,"1 oz Lemon juice "], ["2237","376",45,"1 1/2 oz Gin "], ["2237","213",15,"1/2 oz Triple sec "], ["2237","424",30,"1 oz Lemon juice "], ["1315","36",45,"1 1/2 oz Malibu rum "], ["1315","372",60,"2 oz Cranberry juice "], ["1315","261",60,"2 oz Pineapple juice "], ["2684","36",30,"1 oz Malibu rum "], ["2684","214",30,"1 oz Light rum "], ["2684","22",60,"2 oz 7-Up "], ["2684","261",150,"5 oz Pineapple juice "], ["1282","36",15,"1/2 oz Malibu rum "], ["1282","333",15,"1/2 oz white Creme de Cacao "], ["1282","323",60,"2 oz Sprite "], ["1282","259",30,"1 oz Milk "], ["1282","419",10,"1/3 oz Coconut syrup "], ["1282","213",7.5,"1/4 oz Triple sec "], ["3482","36",30,"1 oz Malibu rum "], ["3482","297",30,"1 oz Blue Curacao "], ["3482","261",3.7,"1 splash Pineapple juice "], ["3482","372",3.7,"1 splash Cranberry juice "], ["4261","36",30,"1 oz Malibu rum "], ["4261","316",30,"1 oz Vodka "], ["4261","445",90,"3 oz Orange juice "], ["571","214",45,"1 1/2 oz Light rum "], ["571","315",15,"1/2 oz Grand Marnier "], ["571","445",60,"2 oz Orange juice "], ["5228","316",29.5,"1 shot Vodka "], ["5228","95",0.9,"1 dash Soy sauce "], ["5609","78",45,"1 1/2 oz Absolut Mandrin "], ["5609","372",60,"2 oz Cranberry juice "], ["5609","294",15,"1/2 oz Lime juice cordial "], ["5685","378",45,"1 1/2 oz Scotch "], ["5685","315",30,"1 oz Grand Marnier "], ["5685","424",30,"1 oz Lemon juice "], ["5685","82",5,"1 tsp Grenadine "], ["574","214",30,"1 oz Light rum "], ["574","387",30,"1 oz Dark rum "], ["574","124",5,"1 tsp Anisette "], ["574","424",15,"1/2 oz Lemon juice "], ["574","82",2.5,"1/2 tsp Grenadine "], ["574","175",30,"1 oz Coca-Cola "], ["6066","375",45,"1 1/2 oz Amaretto "], ["6066","213",15,"1/2 oz Triple sec "], ["6066","266",30,"1 oz Sour mix "], ["6066","445",30,"1 oz Orange juice "], ["6066","261",30,"1 oz Pineapple juice "], ["6066","82",7.5,"1/4 oz Grenadine "], ["6066","22",7.5,"1/4 oz 7-Up "], ["3672","304",30,"1 oz Rum "], ["3672","184",45,"1 1/2 oz Mango nectar "], ["3672","205",10,"2 tsp White Creme de Menthe "], ["3672","427",90,"3 oz crushed Ice "], ["575","480",30,"1 oz Irish cream "], ["575","265",30,"1 oz Kahlua "], ["575","319",15,"1/2 oz Bacardi Black rum "], ["575","387",15,"1/2 oz Myer's Dark rum "], ["575","482",330,"11 oz Coffee "], ["3949","383",90,"3 oz Sweet Vermouth "], ["3949","249",90,"3 oz Bourbon "], ["4674","202",37.5,"1 1/4 oz Gold tequila (Cuervo 1800) "], ["4674","315",22.5,"3/4 oz Grand Marnier "], ["4674","359",22.5,"3/4 oz Cointreau "], ["4674","211",37.5,"1 1/4 oz Sweet and sour "], ["580","349",60,"2 oz A�ejo rum "], ["580","186",10,"2 tsp Lime juice "], ["580","82",5,"1 tsp Grenadine "], ["580","41",15,"1/2 oz Light cream "], ["1364","316",10,"1 cl Vodka "], ["1364","342",20,"2 cl Southern Comfort "], ["1364","385",10,"1 cl Safari "], ["1364","359",50,"0.5 cl Cointreau "], ["5888","146",30,"1 oz Midori melon liqueur "], ["5888","376",60,"2 oz Gin "], ["5076","376",90,"2 - 3 oz Gin "], ["5076","186",45,"1 - 1 1/2 oz Lime juice "], ["5076","408",0.9,"1 dash Vermouth "], ["3660","270",90,"3 oz Bailey's irish cream "], ["3660","342",30,"1 oz Southern Comfort "], ["3660","114",30,"1 oz Butterscotch schnapps "], ["1473","435",52.5,"1 3/4 oz Orange vodka (Stoli) "], ["1473","359",52.5,"1 3/4 oz Cointreau "], ["588","28",45,"1 1/2 oz Dubonnet Rouge "], ["588","88",22.5,"3/4 oz Dry Vermouth "], ["5975","462",60,"2 oz Tequila "], ["5975","327",15,"1/2 oz Campari "], ["5975","83",120,"4 oz Ginger ale "], ["2012","304",37.5,"1 1/4 oz Rum (Captain Morgan's) "], ["2012","309",22.5,"3/4 oz Peach schnapps "], ["2012","404",60,"2 oz Grapefruit juice "], ["2012","372",60,"2 oz Cranberry juice "], ["5140","376",45,"1 1/2 oz Gin "], ["5140","88",30,"1 oz Dry Vermouth "], ["5140","333",0.9,"1 dash white Creme de Cacao "], ["592","349",30,"1 oz A�ejo rum "], ["592","192",15,"1/2 oz Brandy "], ["592","423",15,"1/2 oz Applejack "], ["592","124",5,"1 tsp Anisette "], ["3780","368",45,"1 1/2 oz Sloe gin "], ["3780","213",22.5,"3/4 oz Triple sec "], ["3780","433",0.9,"1 dash Orange bitters "], ["1495","263",30,"3 cl Johnnie Walker "], ["1495","327",20,"2 cl Campari "], ["1495","445",10,"1 cl Orange juice "], ["5772","146",30,"1 oz Midori melon liqueur "], ["5772","213",30,"1 oz Triple sec "], ["5772","119",30,"1 oz Absolut Vodka "], ["5772","186",30,"1 oz Lime juice "], ["5297","378",15,"1/2 oz Scotch "], ["5297","480",7.5,"1/4 oz Irish cream "], ["5297","114",7.5,"1/4 oz Butterscotch schnapps "], ["1144","445",257,"1 cup Orange juice "], ["1144","316",30,"1 oz Vodka (Skyy) "], ["1144","146",30,"1 oz Midori melon liqueur "], ["1144","297",30,"1 oz Blue Curacao "], ["2604","146",30,"1 oz Midori melon liqueur "], ["2604","153",30,"1 oz Watermelon liqueur "], ["2604","227",15,"1/2 oz Banana liqueur (optional) "], ["2604","468",30,"1 oz Coconut rum "], ["2604","199",90,"3 oz Mountain Dew "], ["6143","122",50,"5 cl Jack Daniels "], ["6143","83",150,"15 cl Ginger ale "], ["6143","445",50,"5 cl Orange juice "], ["596","462",60,"2 oz Tequila (Juarez) "], ["596","266",60,"2 oz Sour mix "], ["596","274",60,"2 oz Melon liqueur "], ["596","186",30,"1 oz Lime juice "], ["3746","274",7.5,"1/4 oz Melon liqueur "], ["3746","71",7.5,"1/4 oz Everclear "], ["3746","211",30,"1 oz Sweet and sour "], ["5653","316",30,"1 oz Vodka "], ["5653","274",15,"1/2 oz Melon liqueur "], ["5666","316",30,"1 oz Vodka "], ["5666","146",30,"1 oz Midori melon liqueur "], ["5666","424",0.9,"1 dash Lemon juice "], ["5666","29",30,"1 oz Tonic water or club soda "], ["3751","146",30,"1 oz Midori melon liqueur "], ["3751","36",30,"1 oz Malibu rum "], ["3751","261",30,"1 oz Pineapple juice "], ["3751","445",90,"3 oz Orange juice "], ["2171","387",30,"1 oz Dark rum "], ["2171","213",30,"1 oz Triple sec "], ["2171","41",30,"1 oz Light cream "], ["4136","479",20,"2 cl Galliano "], ["4136","157",20,"2 cl Passoa "], ["4136","372",20,"2 cl Cranberry juice "], ["598","316",150,"5 oz Vodka (Vox) "], ["598","297",60,"2 oz Blue Curacao (Dekyper) "], ["598","272",30,"1 oz Razzmatazz "], ["598","463",15,"1/2 oz Cranberry vodka (Finlandia) "], ["601","383",37.5,"1 1/4 oz Sweet Vermouth "], ["601","192",37.5,"1 1/4 oz Brandy "], ["601","357",2.5,"1/2 tsp Sugar syrup "], ["601","106",0.9,"1 dash Bitters "], ["600","462",15,"1/2 oz Tequila "], ["600","247",15,"1/2 oz Cherry liqueur "], ["5651","462",14.75,"1/2 shot Tequila "], ["5651","424",14.75,"1/2 shot Lemon juice "], ["1145","82",30,"1 oz Grenadine "], ["1145","15",30,"1 oz Green Creme de Menthe "], ["1145","462",30,"1 oz Tequila "], ["2815","492",480,"16 oz Corona "], ["2815","122",29.5,"1 shot Jack Daniels "], ["5371","372",90,"3 oz Cranberry juice "], ["5371","445",15,"1/2 oz Orange juice "], ["5371","202",30,"1 oz Gold tequila "], ["5371","186",0.9,"1 dash Lime juice "], ["6064","202",22.5,"3/4 oz Gold tequila (Jose Cuervo) "], ["6064","145",22.5,"3/4 oz Rumple Minze "], ["4746","202",15,"1/2 oz Gold tequila "], ["4746","322",15,"1/2 oz Peachtree schnapps "], ["4746","200",3.7,"1 splash Rose's sweetened lime juice "], ["5791","122",20,"2/3 oz Jack Daniels "], ["5791","471",20,"2/3 oz Jim Beam "], ["5791","317",20,"2/3 oz Jose Cuervo "], ["3698","316",10,"1 cl Vodka (Finlandia) "], ["3698","462",20,"2 cl white Tequila (Jose Cuervo) "], ["3698","157",10,"1 cl Passoa "], ["3002","462",20,"2/3 oz Tequila "], ["3002","165",10,"1/3 oz Strawberry schnapps "], ["3002","259",45,"1 1/2 oz Milk "], ["3002","82",15,"1/2 oz Grenadine "], ["5680","462",60,"2 oz Tequila "], ["5680","420",90,"3 oz cherry Cider "], ["602","88",22.5,"3/4 oz Dry Vermouth "], ["602","378",22.5,"3/4 oz Scotch "], ["602","404",22.5,"3/4 oz Grapefruit juice "], ["3719","316",30,"1 oz Vodka "], ["3719","304",30,"1 oz Rum "], ["3719","376",30,"1 oz Gin "], ["3719","213",30,"1 oz Triple sec "], ["3719","388",30,"1 oz Lemon-lime soda "], ["3719","445",60,"2 oz Orange juice "], ["3719","309",15,"1/2 oz Peach schnapps "], ["1093","249",60,"2 oz Bourbon "], ["1093","387",30,"1 oz Dark rum "], ["1093","155",15,"1/2 oz Heavy cream "], ["2143","375",45,"1 1/2 oz Amaretto "], ["2143","108",15,"1/2 oz J�germeister "], ["5781","270",30,"1 oz Bailey's irish cream "], ["5781","205",22.5,"3/4 oz White Creme de Menthe "], ["5781","422",22.5,"3/4 oz double Cream "], ["2562","146",60,"2 oz Midori melon liqueur "], ["2562","312",15,"1/2 oz Absolut Citron "], ["2562","211",120,"4 oz Sweet and sour "], ["2562","261",3.7,"1 splash Pineapple juice (maybe 1/2 oz) "], ["5439","146",30,"1 oz Midori melon liqueur "], ["5439","211",10,"1/3 oz Sweet and sour "], ["5439","295",120,"4 oz Champagne "], ["1646","146",30,"1 oz Midori melon liqueur "], ["1646","211",60,"2 oz Sweet and sour "], ["5824","192",45,"1 1/2 oz Brandy "], ["5824","213",15,"1/2 oz Triple sec "], ["5824","412",5,"1 tsp Creme de Noyaux "], ["5824","82",5,"1 tsp Grenadine "], ["5824","106",0.9,"1 dash Bitters "], ["605","192",30,"1 oz Brandy "], ["605","213",0.9,"1 dash Triple sec "], ["605","82",0.9,"1 dash Grenadine "], ["605","412",0.9,"1 dash Creme de Noyaux "], ["605","106",0.9,"1 dash Bitters "], ["1434","36",15,"1/2 oz Malibu rum "], ["1434","54",15,"1/2 oz Chambord raspberry liqueur "], ["1434","213",15,"1/2 oz Triple sec (op. Triple Cognac) "], ["1434","261",75,"2 1/2 oz Pineapple juice "], ["1434","424",3.7,"1 splash sweetened Lemon juice "], ["5318","215",20,"2 cl Tia maria "], ["5318","108",20,"2 cl J�germeister "], ["5318","332",20,"2 cl Pernod "], ["2832","295",150,"4-5 oz Champagne "], ["2832","54",89,"1-2 jigger Chambord raspberry liqueur to taste "], ["5169","223",30,"1 oz Licor 43 "], ["5169","259",120,"4 oz Milk "], ["4618","391",60,"2 oz Vanilla vodka "], ["4618","361",60,"2 oz Chocolate liqueur "], ["4618","480",30,"1 oz Irish cream "], ["3983","376",30,"3 cl dry Gin (Beefeater) "], ["3983","375",30,"3 cl Amaretto di saronno (ILLVA Saronno S.p.a.) "], ["3983","269",10,"1 cl Strawberry liqueur (Greizer) "], ["3983","91",50,"1.5 cl Strawberry syrup (Monin) "], ["3983","261",30,"Fill up 3 cl fresh Pineapple juice "], ["6026","270",45,"1 1/2 oz Bailey's irish cream "], ["6026","276",30,"1 oz Root beer schnapps "], ["6026","115",15,"1/2 oz Goldschlager "], ["3473","270",14.75,"1/2 shot Bailey's irish cream "], ["3473","265",14.75,"1/2 shot Kahlua "], ["3473","167",14.75,"1/2 shot Frangelico "], ["3473","482",180,"6 oz Coffee "], ["4029","198",29.5,"1 shot Aftershock "], ["4029","108",29.5,"1 shot J�germeister "], ["4029","115",29.5,"1 shot Goldschlager "], ["1262","316",60,"2 oz Vodka "], ["1262","265",60,"2 oz Kahlua "], ["1262","29",60,"2 oz Tonic water "], ["6147","67",7.5,"1/4 oz Ricard "], ["6147","297",7.5,"1/4 oz Blue Curacao "], ["6147","259",15,"1/2 oz Milk "], ["609","15",15,"1/2 oz Green Creme de Menthe "], ["609","265",7.5,"1/4 oz Kahlua "], ["609","270",7.5,"1/4 oz Bailey's irish cream "], ["611","376",30,"1 oz mint flavored Gin "], ["611","196",30,"1 oz White port "], ["611","88",7.5,"1 1/2 tsp Dry Vermouth "], ["4987","99",60,"2 oz Melon vodka "], ["4987","261",60,"2 oz Pineapple juice "], ["4987","424",30,"1 oz Lemon juice "], ["4987","19",30,"1 oz Strawberry juice "], ["3651","36",30,"1 oz Malibu rum "], ["3651","274",30,"1 oz Melon liqueur "], ["3651","372",60,"2 oz Cranberry juice "], ["3651","261",60,"2 oz Pineapple juice "], ["614","387",45,"1 1/2 oz Dark rum "], ["614","315",15,"1/2 oz Grand Marnier "], ["614","487",10,"2 tsp Dark Creme de Cacao "], ["2634","214",45,"1 1/2 oz Light rum "], ["2634","192",15,"1/2 oz Brandy "], ["2634","445",30,"1 oz Orange juice "], ["2634","424",15,"1/2 oz Lemon juice "], ["2634","186",15,"1/2 oz Lime juice "], ["2634","82",5,"1 tsp Grenadine "], ["3915","316",30,"1 oz Vodka "], ["3915","249",60,"2 oz Bourbon "], ["3915","388",90,"3 oz Lemon-lime soda "], ["3915","445",0.9,"1 dash Orange juice "], ["3074","316",120,"4 oz Vodka "], ["3074","331",240,"8 oz Surge "], ["5894","378",45,"1 1/2 oz Scotch "], ["5894","213",15,"1/2 oz Triple sec "], ["5894","445",30,"1 oz Orange juice "], ["4240","215",60,"2 oz Tia maria "], ["4240","487",60,"2 oz Dark Creme de Cacao "], ["4240","270",60,"2 oz Bailey's irish cream "], ["4154","316",75,"2 1/2 oz Vodka (Stoli) "], ["4154","240",15,"1/2 oz Coffee liqueur (Kahlua) "], ["4154","333",30,"1 oz Creme de Cacao "], ["617","431",22.5,"3/4 oz Coffee brandy "], ["617","205",22.5,"3/4 oz White Creme de Menthe "], ["617","333",22.5,"3/4 oz white Creme de Cacao "], ["1656","182",22.5,"3/4 oz Crown Royal "], ["1656","270",22.5,"3/4 oz Bailey's irish cream "], ["1656","265",22.5,"3/4 oz Kahlua "], ["4920","316",45,"1 1/2 oz Vodka "], ["4920","85",3.7,"Float 1 splash 151 proof rum "], ["3247","270",22.13,"3/4 shot Bailey's irish cream "], ["3247","114",7.38,"1/4 shot Butterscotch schnapps "], ["619","376",60,"2 oz Gin "], ["619","351",5,"1 tsp Benedictine "], ["619","445",15,"1/2 oz Orange juice "], ["619","82",5,"1 tsp Grenadine "], ["1983","270",40,"4 cl Bailey's irish cream "], ["1983","59",150,"15 cl Fanta "], ["2786","214",37.5,"1 1/4 oz Light rum "], ["2786","211",120,"4 oz Sweet and sour "], ["2786","261",30,"1 oz Pineapple juice "], ["2786","355",30,"1 oz Passion fruit juice "], ["2786","387",22.5,"3/4 oz Dark rum (Meyers) "], ["1214","214",45,"1 1/2 oz Light rum "], ["1214","404",90,"3 oz Grapefruit juice "], ["1214","106",0.9,"1 dash Bitters "], ["621","192",45,"1 1/2 oz Brandy "], ["621","88",15,"1/2 oz Dry Vermouth "], ["621","330",30,"1 oz Port "], ["624","240",22.5,"3/4 oz Coffee liqueur (Kahlua) "], ["624","480",22.5,"3/4 oz Irish cream (Bailey's) "], ["624","227",15,"1/2 oz Banana liqueur (DeKuyper) "], ["625","376",45,"1 1/2 oz Gin "], ["625","170",15,"1/2 oz Anis "], ["2139","316",30,"1 oz Vodka "], ["2139","304",30,"1 oz Rum "], ["2139","368",30,"1 oz Sloe gin "], ["2139","36",30,"1 oz Malibu rum "], ["2139","375",15,"1/2 oz Amaretto "], ["2139","445",60,"2 oz Orange juice "], ["2139","261",90,"3 oz Pineapple juice "], ["3496","270",20,"2 cl Bailey's irish cream "], ["3496","316",20,"2 cl Vodka "], ["3496","36",20,"2 cl Malibu rum "], ["628","214",45,"1 1/2 oz Light rum "], ["628","333",15,"1/2 oz white Creme de Cacao "], ["628","155",30,"1 oz Heavy cream "], ["628","265",5,"1 tsp Kahlua "], ["630","71",240,"8 oz Everclear "], ["630","418",750,"25 oz Collins mix "], ["1348","316",60,"2 oz Vodka "], ["1348","186",60,"2 oz Lime juice "], ["1348","83",240,"8 oz Ginger ale "], ["1748","115",30,"1 oz Goldschlager "], ["1748","114",30,"1 oz Butterscotch schnapps "], ["1748","259",30,"1 oz Milk "], ["1295","108",30,"1 oz J�germeister "], ["1295","464",15,"1/2 oz Peppermint schnapps "], ["1295","115",15,"1/2 oz Goldschlager "], ["1295","36",15,"1/2 oz Malibu rum "], ["5773","462",45,"1 1/2 oz Tequila (Jose Cuervo) "], ["5773","186",15,"1/2 oz Lime juice "], ["5773","82",3.7,"1 splash Grenadine "], ["5773","199",90,"3 oz Mountain Dew "], ["633","108",30,"1 oz J�germeister "], ["633","36",30,"1 oz Malibu rum "], ["633","261",30,"1 oz Pineapple juice "], ["6123","376",30,"1 oz dry Gin "], ["6123","83",300,"10 oz Ginger ale "], ["6123","287",3.7,"1 splash Chocolate syrup "], ["5481","199",120,"4 oz Mountain Dew "], ["5481","296",120,"4 oz Sake "], ["1309","316",60,"2 oz Vodka "], ["1309","265",60,"2 oz Kahlua "], ["1309","270",60,"2 oz Bailey's irish cream "], ["3554","119",30,"1 oz Absolut Vodka "], ["3554","270",30,"1 oz Bailey's irish cream "], ["3554","265",30,"1 oz Kahlua "], ["3554","315",22.5,"3/4 oz Grand Marnier "], ["1731","215",60,"2 oz Tia maria "], ["1731","316",60,"2 oz Vodka "], ["1731","333",60,"2 oz Creme de Cacao "], ["1731","270",60,"2 oz Bailey's irish cream "], ["634","387",45,"1 1/2 oz Dark rum "], ["634","423",15,"1/2 oz Applejack "], ["634","424",15,"1/2 oz Lemon juice "], ["634","477",2.5,"1/2 tsp superfine Sugar "], ["634","409",0.63,"1/8 tsp ground Cinnamon "], ["634","20",0.63,"1/8 tsp grated Nutmeg "], ["635","173",45,"1 1/2 oz Canadian whisky "], ["635","146",30,"1 oz Midori melon liqueur "], ["635","422",45,"1 1/2 oz Cream "], ["635","445",90,"3 oz Orange juice "], ["635","424",5,"1 tsp Lemon juice "], ["635","82",5,"1 tsp Grenadine "], ["5892","108",30,"1 oz J�germeister "], ["5892","480",30,"1 oz Irish cream "], ["5892","464",15,"1/2 oz Peppermint schnapps "], ["636","375",60,"2 oz Amaretto "], ["636","333",30,"1 oz Creme de Cacao "], ["636","316",30,"1 oz Vodka "], ["636","126",60,"2 oz Half-and-half "], ["2896","405",29.5,"1 shot Tequila Rose, chilled "], ["2896","316",29.5,"1 shot Vodka (Absolut) "], ["2896","165",29.5,"1 shot Strawberry schnapps, chilled "], ["5809","274",15,"1/2 oz Melon liqueur "], ["5809","309",15,"1/2 oz Peach schnapps "], ["5809","468",15,"1/2 oz Coconut rum "], ["5809","115",15,"1/2 oz Goldschlager "], ["5809","261",90,"3 oz Pineapple juice "], ["3418","376",90,"3 oz Gin "], ["3418","314",360,"12 oz Cream soda "], ["4179","36",15,"1/2 oz Malibu rum "], ["4179","272",15,"1/2 oz Razzmatazz "], ["4179","146",15,"1/2 oz Midori melon liqueur "], ["4179","211",7.5,"1/4 oz Sweet and sour "], ["4179","372",7.5,"1/4 oz Cranberry juice "], ["2118","119",30,"1 oz Absolut Vodka "], ["2118","309",15,"1/2 oz Peach schnapps "], ["3913","214",7.5,"1/4 oz Light rum "], ["3913","387",7.5,"1/4 oz Dark rum "], ["3913","375",15,"1/2 oz Amaretto "], ["3913","309",15,"1/2 oz Peach schnapps "], ["3913","445",60,"2 oz Orange juice "], ["3913","323",3.7,"1 splash Sprite "], ["2718","482",180,"6 oz black brewed Coffee "], ["2718","270",60,"2 oz Bailey's irish cream "], ["2718","265",60,"2 oz Kahlua "], ["2718","167",3.7,"1 splash Frangelico "], ["2539","376",60,"2 oz Gin "], ["2539","436",2.5,"1/2 tsp Curacao "], ["2539","28",2.5,"1/2 tsp Dubonnet Rouge "], ["637","198",15,"1/2 oz Aftershock "], ["637","132",15,"1/2 oz Cinnamon schnapps (Fire and Ice) "], ["637","85",3.7,"1 splash 151 proof rum "], ["5891","316",60,"2 oz Vodka "], ["5891","309",45,"1 1/2 oz Peach schnapps "], ["5891","146",30,"1 oz Midori melon liqueur "], ["5891","22",90,"3 oz 7-Up "], ["4399","462",45,"1 1/2 oz Tequila "], ["4399","359",15,"1/2 oz Cointreau "], ["1317","304",15,"1/2 oz Rum "], ["1317","316",15,"1/2 oz Vodka "], ["1317","376",15,"1/2 oz Gin "], ["1317","297",15,"1/2 oz Blue Curacao "], ["1317","266",60,"2 oz Sour mix "], ["1317","388",3.7,"1 splash Lemon-lime soda "], ["5901","214",15,"1/2 oz Light rum (Bacardi) "], ["5901","25",15,"1/2 oz Gold rum (Bacardi) "], ["5901","387",15,"1/2 oz Dark rum (Meyer's) "], ["5901","315",15,"1/2 oz Grand Marnier "], ["5901","404",30,"1 oz Grapefruit juice "], ["5901","445",30,"1 oz Orange juice "], ["5901","261",30,"1 oz Pineapple juice "], ["1829","465",90,"3 oz White chocolate liqueur (Godet) "], ["1829","85",30,"1 oz 151 proof rum Bacardi "], ["3659","36",90,"3 oz Malibu rum "], ["3659","445",150,"5 oz Orange juice "], ["2309","108",14.75,"1/2 shot J�germeister "], ["2309","145",14.75,"1/2 shot Rumple Minze "], ["3116","376",30,"1 oz Gin "], ["3116","327",30,"1 oz Campari "], ["3116","383",30,"1 oz Sweet Vermouth "], ["1660","316",30,"3 cl Vodka shot, Hot n'sweet (white) "], ["1660","425",30,"3 cl Pisang Ambon "], ["5349","36",37.5,"1 1/4 oz Malibu rum "], ["5349","146",15,"1/2 oz Midori melon liqueur "], ["5349","297",7.5,"1/4 oz Blue Curacao "], ["5349","261",105,"3 1/2 oz Pineapple juice "], ["5931","249",15,"1/2 oz Bourbon (Jim Beam) "], ["5931","199",15,"1/2 oz Mountain Dew "], ["5931","132",30,"1 oz Cinnamon schnapps (Firewater) "], ["2776","463",45,"1 1/2 oz Finlandia Cranberry vodka "], ["2776","359",15,"1/2 oz Cointreau "], ["2776","54",3.7,"1 splash Chambord raspberry liqueur "], ["2776","200",0.9,"1 dash Rose's sweetened lime juice "], ["5352","212",30,"3 cl Absolut Peppar "], ["5352","146",30,"3 cl Midori melon liqueur "], ["2402","213",30,"1 oz Triple sec "], ["2402","192",30,"1 oz Brandy "], ["2402","106",0.9,"1 dash Bitters "], ["639","3",30,"1 oz Cognac "], ["639","249",30,"1 oz Bourbon "], ["639","316",30,"1 oz Vodka "], ["639","403",30,"1 oz Peach liqueur (Creme de peche) "], ["639","445",30,"1 oz Orange juice "], ["639","424",15,"1/2 oz Lemon juice "], ["639","91",0.9,"1 dash Strawberry syrup "], ["3888","21",60,"2 oz Whiskey "], ["3888","266",90,"3 oz Sour mix "], ["3888","83",90,"3 oz Ginger ale "], ["2787","114",10,"1/3 oz Butterscotch schnapps "], ["2787","270",10,"1/3 oz Bailey's irish cream "], ["2787","265",10,"1/3 oz Kahlua "], ["640","214",45,"1 1/2 oz Light rum "], ["640","404",45,"1 1/2 oz Grapefruit juice "], ["640","106",0.9,"1 dash Bitters "], ["640","186",30,"1 oz Lime juice "], ["640","477",10,"2 tsp superfine Sugar "], ["1323","312",60,"2 oz Absolut Citron "], ["1323","315",30,"1 oz Grand Marnier "], ["1323","424",60,"2 oz sweetened Lemon juice "], ["1323","130",30,"1 oz Club soda "], ["4850","192",30,"1 oz Brandy "], ["4850","359",30,"1 oz Cointreau "], ["4850","424",30,"1 oz Lemon juice "], ["4850","332",0.9,"1 dash Pernod "], ["4202","66",45,"1 1/2 oz Cachaca "], ["4202","359",15,"1/2 oz Cointreau "], ["4202","186",15,"1/2 oz Lime juice "], ["4202","277",15,"1/2 oz Batida de Coco "], ["5621","265",30,"1 oz Kahlua "], ["5621","20",0.9,"1 dash Nutmeg "], ["5621","259",180,"6 oz Milk "], ["5621","236",5,"1 tsp Powdered sugar "], ["2126","376",45,"1 1/2 oz Gin "], ["2126","179",15,"1/2 oz Cherry brandy "], ["2126","343",15,"1/2 oz Madeira "], ["2126","445",5,"1 tsp Orange juice "], ["1864","66",45,"1 1/2 oz Cachaca "], ["1864","213",15,"1/2 oz Triple sec "], ["1864","186",15,"1/2 oz Lime juice "], ["1864","277",15,"1/2 oz Batida de Coco "], ["4448","1",10,"1/3 oz Firewater "], ["4448","114",10,"1/3 oz Butterscotch schnapps "], ["4448","480",10,"1/3 oz Irish cream "], ["3155","186",15,"1/2 oz Lime juice "], ["3155","346",15,"1/2 oz Fruit juice of your choice "], ["3155","261",30,"1 oz Pineapple juice "], ["3155","404",30,"1 oz Grapefruit juice "], ["3155","445",30,"1 oz Orange juice "], ["3155","468",30,"1 oz Coconut rum "], ["3155","10",22.5,"3/4 oz Creme de Banane "], ["5703","146",30,"1 oz Midori melon liqueur "], ["5703","213",30,"1 oz Triple sec "], ["5703","214",30,"1 oz Light rum or vodka "], ["5703","261",120,"4 oz Pineapple juice "], ["2781","202",15,"1/2 oz Gold tequila "], ["2781","270",15,"1/2 oz Bailey's irish cream "], ["3588","316",30,"1 oz Vodka "], ["3588","214",30,"1 oz Light rum "], ["3588","182",30,"1 oz Crown Royal "], ["3588","261",60,"2 oz Pineapple juice "], ["3588","372",60,"2 oz Cranberry juice "], ["3588","274",3.7,"1 splash Melon liqueur (Midori) "], ["645","316",7.38,"1/4 shot Vodka "], ["645","270",14.75,"1/2 shot Bailey's irish cream "], ["645","392",3.7,"1 splash Beer "], ["2691","82",15,"1/2 oz Grenadine "], ["2691","145",15,"1/2 oz Rumple Minze "], ["2691","108",15,"1/2 oz J�germeister "], ["2691","146",15,"1/2 oz Midori melon liqueur "], ["2691","182",15,"1/2 oz Crown Royal "], ["2691","85",15,"1/2 oz Bacardi 151 proof rum "], ["2691","375",15,"1/2 oz Amaretto "], ["1094","57",10,"2 tsp Cocoa powder "], ["1094","477",5,"1 tsp Sugar "], ["1094","508",2.5,"1/2 tsp Vanilla extract "], ["1094","259",360,"12 oz Milk "], ["1216","340",22.5,"3/4 oz Barenjager "], ["1216","167",22.5,"3/4 oz Frangelico "], ["1216","422",60,"2 oz Cream "], ["6023","214",60,"2 oz Light rum "], ["6023","375",45,"1 1/2 oz Amaretto "], ["6023","167",45,"1 1/2 oz Frangelico "], ["6023","200",22.5,"3/4 oz Rose's sweetened lime juice "], ["5319","54",30,"1 oz Chambord raspberry liqueur "], ["5319","167",30,"1 oz Frangelico "], ["5319","259",90,"Add 3 oz Milk or half and half "], ["1941","54",150,"1.5 oz Chambord raspberry liqueur "], ["1941","167",150,"1.5 oz Frangelico "], ["1941","126",150,"1.5 oz Half-and-half "], ["2492","465",30,"1 oz White chocolate liqueur (Godet) "], ["2492","167",30,"1 oz Frangelico "], ["2492","316",15,"1/2 oz Vodka "], ["5474","227",30,"1 oz Banana liqueur "], ["5474","217",30,"1 oz Hazelnut liqueur "], ["5474","468",30,"1 oz Coconut rum "], ["5474","335",30,"1 oz Spiced rum "], ["5474","259",105,"3 1/2 oz Milk "], ["5474","427",150,"5 oz Ice "], ["2230","480",22.25,"1/2 jigger Irish cream "], ["2230","217",22.25,"1/2 jigger Hazelnut liqueur "], ["2230","259",257,"1 cup steamed Milk "], ["2230","204",257,"1 cup Espresso (small) "], ["1846","99",60,"6 cl Melon vodka (Artic) "], ["1846","36",40,"4 cl Malibu rum "], ["1846","425",30,"3 cl Pisang Ambon "], ["1846","424",70,"7 cl Lemon juice "], ["1846","422",3.7,"1 splash Cream "], ["3684","270",15,"1/2 oz Bailey's irish cream "], ["3684","114",15,"1/2 oz Butterscotch schnapps (Buttershots) "], ["3684","115",7.5,"1/4 oz Goldschlager "], ["3684","108",7.5,"1/4 oz J�germeister "], ["646","115",44.5,"1 jigger Goldschlager (or Hotdam) "], ["646","114",44.5,"1 jigger Butterscotch schnapps "], ["646","270",44.5,"1 jigger Bailey's irish cream "], ["1572","108",5.9,"1/5 shot J�germeister "], ["1572","115",5.9,"1/5 shot Goldschlager "], ["1572","85",5.9,"1/5 shot Bacardi 151 proof rum "], ["1572","265",5.9,"1/5 shot Kahlua "], ["1572","270",5.9,"1/5 shot Bailey's irish cream "], ["1947","115",22.13,"3/4 shot Goldschlager "], ["1947","108",7.38,"1/4 shot J�germeister "], ["4425","108",14.75,"1/2 shot J�germeister "], ["4425","145",14.75,"1/2 shot Rumple Minze "], ["4625","383",15,"1/2 oz Sweet Vermouth "], ["4625","56",37.5,"1 1/4 oz Blended whiskey "], ["4625","82",15,"1/2 oz Grenadine "], ["2403","85",30,"1 oz Bacardi 151 proof rum "], ["2403","232",30,"1 oz Wild Turkey Whiskey "], ["2317","387",75,"2 1/2 oz Dark rum "], ["2317","179",15,"1/2 oz Cherry brandy "], ["2317","186",15,"1/2 oz Lime juice "], ["650","335",37.5,"1 1/4 oz Spiced rum (Captain Morgan's) "], ["650","387",22.5,"3/4 oz Dark rum (Meyers) "], ["650","359",15,"1/2 oz Cointreau "], ["650","2",135,"4 1/2 oz Lemonade "], ["650","372",30,"1 oz Cranberry juice "], ["652","56",45,"1 1/2 oz Blended whiskey "], ["652","383",15,"1/2 oz Sweet Vermouth "], ["652","82",15,"1/2 oz Grenadine "], ["5832","445",257,"1 cup Orange juice "], ["5832","372",257,"1 cup Cranberry juice "], ["4117","435",45,"1 1/2 oz Orange vodka (Stoli) "], ["4117","315",30,"1 oz Grand Marnier "], ["4117","445",105,"3 1/2 oz Orange juice "], ["5249","400",30,"1 oz Mandarine Napoleon "], ["5249","361",15,"1/2 oz Truffles Chocolate liqueur "], ["5249","270",15,"1/2 oz Bailey's irish cream "], ["5249","126",15,"1/2 oz Half-and-half "], ["1618","424",20,"2 cl Lemon juice "], ["1618","445",60,"6 cl Orange juice "], ["1025","309",30,"1 oz Peach schnapps "], ["1025","261",60,"2 oz Pineapple juice "], ["1025","445",30,"1 oz Orange juice "], ["1025","122",15,"1/2 oz Jack Daniels "], ["2387","316",30,"1 oz Vodka "], ["2387","213",30,"1 oz Triple sec "], ["2387","445",30,"1 oz Orange juice "], ["4332","78",45,"1 1/2 oz Absolut Mandrin "], ["4332","357",22.5,"3/4 oz Sugar syrup "], ["4332","213",7.5,"1/4 oz Triple sec "], ["4332","445",3.7,"1 splash Orange juice "], ["6073","214",60,"2 oz Light rum "], ["6073","309",60,"2 oz Peach schnapps "], ["6073","213",30,"1 oz Triple sec "], ["6073","231",30,"1 oz Apricot brandy "], ["6073","422",30,"1 oz Cream "], ["6073","82",3.7,"1 splash Grenadine "], ["4494","316",40,"4 cl Vodka "], ["4494","421",40,"4 cl Cinzano Orancio "], ["4494","323",60,"5-6 cl Sprite "], ["5442","462",30,"1 oz Tequila "], ["5442","213",15,"1/2 oz Triple sec "], ["5442","445",180,"4-6 oz Orange juice "], ["5442","186",3.7,"1 splash Lime juice "], ["4526","335",150,"1.5 oz Spiced rum (Captain Morgan's) "], ["4526","82",150,"0.5 oz Grenadine "], ["4526","445",120,"4 oz Orange juice "], ["4526","266",3.7,"1 splash Sour mix "], ["656","78",29.5,"1 shot Absolut Mandrin "], ["656","322",29.5,"1 shot Peachtree schnapps "], ["656","445",44.25,"1 1/2 shot Orange juice "], ["1095","424",30,"3 cl Lemon juice "], ["1095","445",100,"10 cl Orange juice "], ["4088","422",20,"2 cl Cream "], ["4088","261",20,"2 cl Pineapple juice "], ["4088","445",50,"5 cl Orange juice "], ["3747","265",30,"1 oz Kahlua "], ["3747","333",30,"1 oz Creme de Cacao "], ["3747","270",30,"1 oz Bailey's irish cream "], ["3747","316",3.7,"1 splash Vodka "], ["2461","464",150,"0.5 oz Peppermint schnapps "], ["2461","270",150,"0.5 oz Bailey's irish cream "], ["2851","316",30,"1 oz Vodka "], ["2851","270",45,"1 1/2 oz Bailey's irish cream "], ["2851","265",15,"1/2 oz Kahlua "], ["2851","508",10,"2 tsp Vanilla extract "], ["3382","270",40,"4 cl Bailey's irish cream "], ["3382","316",20,"2 cl Vodka "], ["657","333",15,"1/2 oz white Creme de Cacao "], ["657","375",15,"1/2 oz Amaretto "], ["657","213",15,"1/2 oz Triple sec "], ["657","316",15,"1/2 oz Vodka "], ["657","41",30,"1 oz Light cream "], ["658","376",30,"1 oz Gin "], ["658","351",30,"1 oz Benedictine "], ["658","179",30,"1 oz Cherry brandy "], ["658","130",120,"4 oz Club soda "], ["2224","359",210,"0.7 oz Cointreau "], ["2224","424",1050,"0.35 oz Lemon juice "], ["2224","462",120,"1.4 oz Tequila "], ["4772","383",20,"2 cl red Sweet Vermouth "], ["4772","248",20,"2 cl Aperol "], ["4772","378",30,"3 cl Scotch "], ["3900","464",30,"1 oz Peppermint schnapps "], ["3900","482",240,"8 oz Coffee "], ["3900","477",10,"2 tsp Sugar "], ["2612","145",45,"1 1/2 oz Rumple Minze "], ["2612","267",45,"1 1/2 oz Black Sambuca (Romana) "], ["659","376",60,"2 oz Gin "], ["659","179",30,"1 oz Cherry brandy "], ["659","186",30,"1 oz Lime juice "], ["659","351",1.25,"1/4 tsp Benedictine "], ["659","192",1.25,"1/4 tsp Brandy "], ["4047","92",30,"1 oz Peach brandy "], ["4047","169",30,"1 oz Lime vodka "], ["4047","261",30,"1 oz Pineapple juice "], ["660","142",15,"1/2 oz White rum (Bacardi) "], ["660","297",15,"1/2 oz Blue Curacao "], ["660","211",7.5,"1/4 oz Sweet and sour "], ["660","22",7.5,"1/4 oz 7-Up "], ["1321","214",45,"1 1/2 oz Light rum "], ["1321","333",15,"1/2 oz white Creme de Cacao "], ["1321","155",30,"1 oz Heavy cream "], ["1321","297",5,"1 tsp Blue Curacao "], ["5033","21",360,"12 oz Whiskey "], ["5033","392",360,"12 oz Beer "], ["5033","2",360,"12 oz frozen Lemonade concentrate "], ["5033","427",257,"1 cup crushed Ice "], ["3019","85",60,"2 oz Bacardi 151 proof rum "], ["3019","227",60,"2 oz Banana liqueur "], ["3019","270",60,"2 oz Bailey's irish cream "], ["2422","376",60,"2 oz Gin "], ["2422","237",45,"1 1/2 oz Raspberry liqueur "], ["2422","61",30,"1 oz Vanilla liqueur "], ["2422","468",30,"1 oz Coconut rum (Coco Ribe) "], ["2422","424",30,"1 oz Lemon juice "], ["2422","130",90,"3 oz Club soda "], ["2422","236",5,"1 tsp Powdered sugar "], ["2142","378",60,"2 oz Scotch "], ["2142","121",15,"1/2 oz Kirschwasser "], ["2142","28",15,"1/2 oz Dubonnet Rouge "], ["2142","375",15,"1/2 oz Amaretto "], ["2142","110",5,"1 tsp Mint syrup "], ["2285","462",45,"1 1/2 oz Tequila "], ["2285","297",45,"1 1/2 oz Blue Curacao "], ["2285","266",45,"1 1/2 oz Sour mix "], ["2285","106",0.9,"1 dash Bitters "], ["4306","65",90,"3 oz pineapple Guava juice "], ["4306","316",30,"1 oz Vodka (Absolut) "], ["4306","297",30,"1 oz Blue Curacao "], ["4306","309",30,"1 oz Peach schnapps "], ["664","376",45,"1 1/2 oz Gin "], ["664","383",7.5,"1 1/2 tsp Sweet Vermouth "], ["664","404",7.5,"1 1/2 tsp Grapefruit juice "], ["666","56",60,"2 oz Blended whiskey "], ["666","424",2.5,"1/2 tsp Lemon juice "], ["666","106",0.9,"1 dash Bitters "], ["4882","304",37.5,"1 1/4 oz Bacardi silver Rum "], ["4882","231",15,"1/2 oz Apricot brandy "], ["4882","445",90,"3 oz Orange juice "], ["4882","304",7.5,"1/4 oz Meyers Rum "], ["4882","261",90,"3 oz Pineapple juice "], ["4911","462",45,"1 1/2 oz Tequila "], ["4911","211",15,"1/2 oz Sweet and sour "], ["667","462",30,"1 oz Tequila "], ["667","227",15,"1/2 oz Banana liqueur "], ["667","213",15,"1/2 oz Triple sec "], ["667","404",180,"6 oz Grapefruit juice "], ["2742","85",240,"8 oz Bacardi 151 proof rum "], ["2742","287",60,"2 oz Chocolate syrup (Hershey's) "], ["2742","270",60,"2 oz Bailey's irish cream (optional) "], ["3466","462",15,"1/2 oz Tequila "], ["3466","316",15,"1/2 oz Vodka "], ["3466","265",15,"1/2 oz Kahlua "], ["3466","41",120,"4 oz Light cream "], ["3466","175",135,"4 1/2 oz Coca-Cola "], ["6192","88",30,"1 oz Dry Vermouth "], ["6192","376",30,"1 oz Gin "], ["6192","473",7.5,"1/4 oz Creme de Cassis "], ["2042","145",7.5,"1/4 oz Rumple Minze "], ["2042","108",7.5,"1/4 oz J�germeister "], ["2042","202",7.5,"1/4 oz Gold tequila (Jose Cuervo) "], ["2042","85",7.5,"1/4 oz Bacardi 151 proof rum "], ["4423","157",30,"3 cl Passoa "], ["4423","322",20,"2 cl Peachtree schnapps "], ["4423","226",20,"2 cl Bacardi Limon "], ["4423","404",80,"8 cl Grapefruit juice "], ["4423","445",20,"2 cl Orange juice "], ["5262","201",30,"1 oz Genever "], ["5262","280",5,"1 tsp Fernet Branca "], ["5262","266",0.9,"1 dash Sour mix "], ["4167","378",30,"1 oz Scotch whiskey (Cutty Sark) "], ["4167","396",120,"4 oz Orange soda (C'Plus) "], ["1339","342",60,"2 oz Southern Comfort "], ["1339","316",60,"2 oz Vodka "], ["1339","32",60,"2 oz Kool-Aid "], ["2128","316",15,"1/2 oz Vodka "], ["2128","54",15,"1/2 oz Chambord raspberry liqueur "], ["2128","167",15,"1/2 oz Frangelico "], ["4929","167",15,"1/2 oz Frangelico "], ["4929","82",15,"1/2 oz Grenadine "], ["674","92",22.5,"3/4 oz Peach brandy "], ["674","333",22.5,"3/4 oz white Creme de Cacao "], ["674","41",22.5,"3/4 oz Light cream "], ["2550","316",22.5,"3/4 oz Vodka "], ["2550","309",22.5,"3/4 oz Peach schnapps "], ["2550","375",22.5,"3/4 oz Amaretto "], ["3661","316",22.5,"3/4 oz Vodka "], ["3661","309",22.5,"3/4 oz Peach schnapps "], ["3661","500",22.5,"3/4 oz Cheri Beri Pucker "], ["3661","266",3.7,"1 splash Sour mix "], ["3661","261",3.7,"1 splash Pineapple juice "], ["3661","22",3.7,"1 splash 7-Up "], ["5383","161",270,"9 oz Iced tea "], ["5383","309",90,"3 oz Peach schnapps "], ["4945","309",30,"1 oz Peach schnapps "], ["4945","186",30,"1 oz Lime juice "], ["3000","54",15,"1/2 oz Chambord raspberry liqueur "], ["3000","167",15,"1/2 oz Frangelico "], ["1813","316",30,"1 oz Vodka "], ["1813","146",15,"1/2 oz Midori melon liqueur "], ["1813","261",150,"5 oz Pineapple juice "], ["4897","405",15,"1/2 oz Tequila Rose "], ["4897","270",15,"1/2 oz Bailey's irish cream "], ["5715","226",45,"1 1/2 oz Bacardi Limon "], ["5715","211",3.7,"1 splash Sweet and sour "], ["5715","22",60,"2 oz 7-Up "], ["5715","130",60,"2 oz Club soda "], ["4699","376",45,"1 1/2 oz Gin "], ["4699","88",22.5,"3/4 oz Dry Vermouth "], ["4699","170",1.25,"1/4 tsp Anis "], ["4699","28",1.25,"1/4 tsp Dubonnet Rouge "], ["1363","316",20,"2 cl Koskenkorva Vodka "], ["1363","424",20,"2 cl Lemon juice "], ["677","274",10,"1/3 oz Melon liqueur "], ["677","297",10,"1/3 oz Blue Curacao "], ["677","213",10,"1/3 oz Triple sec "], ["5372","214",29.5,"1 shot Light rum "], ["5372","359",29.5,"1 shot Cointreau or triple sec "], ["5372","29",180,"6 oz Tonic water "], ["2439","249",29.5,"1 shot Bourbon "], ["2439","316",29.5,"1 shot Vodka "], ["2439","22",180,"6 oz 7-Up "], ["3480","464",150,"1.5 oz Peppermint schnapps "], ["3480","36",150,"1.5 oz Malibu rum "], ["4277","333",30,"1 oz white Creme de Cacao "], ["4277","205",30,"1 oz White Creme de Menthe "], ["2798","270",15,"1/2 oz Bailey's irish cream "], ["2798","464",15,"1/2 oz Peppermint schnapps (Dr. McGuillicudys) "], ["2091","464",30,"1 oz Peppermint schnapps "], ["2091","333",45,"1 1/2 oz white Creme de Cacao "], ["2091","41",30,"1 oz Light cream "], ["678","387",30,"1 oz Dark rum "], ["678","186",5,"1 tsp Lime juice "], ["678","10",15,"1/2 oz Creme de Banane "], ["678","342",15,"1/2 oz Southern Comfort "], ["678","424",5,"1 tsp Lemon juice "], ["680","383",7.5,"1 1/2 tsp Sweet Vermouth "], ["680","88",7.5,"1 1/2 tsp Dry Vermouth "], ["680","376",45,"1 1/2 oz Gin "], ["680","106",0.9,"1 dash Bitters "], ["2596","202",60,"2 oz Gold tequila (Cuervo 1800) "], ["2596","359",15,"1/2 oz Cointreau "], ["2596","315",15,"1/2 oz Grand Marnier "], ["2596","445",15,"1/2 oz Orange juice (Tropicana) "], ["2596","200",30,"1 oz Rose's sweetened lime juice "], ["2596","211",120,"4 oz Sweet and sour mix (Lemate's) "], ["2610","198",15,"1/2 oz Aftershock "], ["2610","316",15,"1/2 oz Vodka (Absolut) "], ["4969","316",60,"2 oz Vodka "], ["4969","222",180,"6 oz Sunny delight (to taste) "], ["684","85",15,"1/2 oz Bacardi 151 proof rum "], ["684","317",15,"1/2 oz Jose Cuervo "], ["3353","376",45,"1 1/2 oz Gin "], ["3353","88",22.5,"3/4 oz Dry Vermouth "], ["3353","170",1.25,"1/4 tsp Anis "], ["3353","82",1.25,"1/4 tsp Grenadine "], ["3758","218",50,"5 cl Amer Picon "], ["3758","392",200,"20 cl Beer "], ["5086","475",30,"1 oz Sambuca "], ["5086","270",30,"1 oz Bailey's irish cream "], ["4172","462",15,"1/2 oz Tequila (Herradura reposado) "], ["4172","280",15,"1/2 oz Fernet Branca "], ["4172","124",15,"1/2 oz Anisette (Cadenas) "], ["5036","249",30,"1 oz Bourbon "], ["5036","218",30,"1 oz Amer Picon "], ["5036","357",0.9,"1 dash Sugar syrup "], ["1356","42",60,"2 oz Irish whiskey "], ["1356","265",15,"1/2 oz Kahlua "], ["1356","464",3.7,"1 splash Peppermint schnapps "], ["4113","316",60,"2 oz Vodka (Absolut) "], ["4113","297",30,"1 oz Blue Curacao "], ["4113","309",30,"1 oz Peach schnapps "], ["4113","445",150,"5 oz Orange juice (Sunny D) "], ["4331","71",29.5,"1 shot Everclear "], ["4331","359",29.5,"1 shot Cointreau "], ["4331","445",180,"6 oz Orange juice "], ["4331","424",14.75,"1/2 shot Lemon juice "], ["3432","221",30,"1 oz Raspberry schnapps "], ["3432","365",30,"1 oz Absolut Kurant "], ["3432","323",180,"6 oz Sprite "], ["2185","387",22.5,"3/4 oz Dark rum "], ["2185","167",22.5,"3/4 oz Frangelico "], ["1733","119",30,"1 oz Absolut Vodka "], ["1733","213",15,"1/2 oz Triple sec "], ["1733","211",45,"1 1/2 oz Sweet and sour "], ["1733","261",60,"2 oz Pineapple juice "], ["1733","22",3.7,"1 splash 7-Up "], ["1651","342",135,"4 1/2 oz Southern Comfort "], ["1651","85",3.7,"1 splash Bacardi 151 proof rum "], ["1651","22",90,"3 oz 7-Up "], ["1651","445",120,"4 oz Orange juice "], ["1651","175",120,"4 oz Coca-Cola "], ["2971","10",30,"1 oz Creme de Banane "], ["2971","178",150,"5 oz Pink lemonade "], ["4204","295",120,"4 oz chilled pink Champagne "], ["4204","445",120,"4 oz chilled Orange juice "], ["4204","473",0.9,"1 dash Creme de Cassis "], ["688","376",60,"2 oz Gin "], ["688","424",30,"1 oz Lemon juice "], ["688","477",5,"1 tsp superfine Sugar "], ["688","41",30,"1 oz Light cream "], ["688","82",5,"1 tsp Grenadine "], ["688","130",120,"4 oz Club soda "], ["5669","82",3.7,"1 splash Grenadine "], ["5669","376",60,"2 oz Gin "], ["5471","376",60,"2 oz Gin "], ["5471","424",60,"2 oz Lemon juice "], ["5471","82",22.5,"3/4 oz Grenadine "], ["2078","376",45,"1 1/2 oz dry Gin "], ["2078","372",3.7,"1 splash Cranberry juice "], ["4344","312",45,"1 1/2 oz Absolut Citron "], ["4344","54",15,"1/2 oz Chambord raspberry liqueur "], ["4344","266",60,"2 oz Sour mix "], ["1575","316",45,"1 1/2 oz Vodka "], ["1575","266",90,"3 oz Sour mix "], ["1575","372",3.7,"1 splash Cranberry juice "], ["1575","186",0.9,"1 dash Lime juice "], ["4881","226",45,"1 1/2 oz Bacardi Limon "], ["4881","211",60,"2 oz Sweet and sour "], ["4881","372",15,"1/2 oz Cranberry juice "], ["1489","316",20,"2 cl Vodka (Absolut) "], ["1489","223",40,"4 cl Licor 43 "], ["1489","259",60,"6 cl Milk "], ["1489","82",5,"1/2 cl Grenadine "], ["5560","316",90,"3 oz Vodka "], ["5560","82",0.9,"1 dash Grenadine "], ["5560","211",150,"5 oz Sweet and sour "], ["5560","83",150,"5 oz Ginger ale "], ["1701","392",360,"12 oz Beer (any beer will do) "], ["1701","178",360,"12 oz frozen Pink lemonade concentrate "], ["1701","316",360,"12 oz Vodka "], ["691","316",30,"1 oz Vodka "], ["691","468",15,"1/2 oz Coconut rum "], ["691","322",15,"1/2 oz Peachtree schnapps "], ["691","372",3.7,"1 splash Cranberry juice "], ["691","261",3.7,"1 splash Pineapple juice "], ["2267","376",60,"2 oz Gin "], ["2267","261",120,"4 oz Pineapple juice "], ["2267","179",5,"1 tsp Cherry brandy "], ["5458","316",22.5,"3/4 oz Vodka "], ["5458","10",22.5,"3/4 oz Creme de Banane "], ["5458","469",22.5,"3/4 oz Creme de Almond "], ["5458","261",30,"1 oz Pineapple juice "], ["5458","266",30,"1 oz Sour mix "], ["2111","82",14.75,"1/2 shot Grenadine "], ["2111","333",14.75,"1/2 shot white Creme de Cacao "], ["2111","259",29.5,"1 shot Milk "], ["1916","145",22.13,"3/4 shot Rumple Minze "], ["1916","1",7.38,"1/4 shot Firewater "], ["693","378",45,"1 1/2 oz Scotch "], ["693","265",30,"1 oz Kahlua "], ["693","176",15,"1/2 oz Maraschino liqueur "], ["693","155",30,"1 oz Heavy cream "], ["6191","335",45,"1 1/2 oz Spiced rum (Captain Morgan's) "], ["6191","497",240,"8 oz Hawaiian Punch "], ["3820","382",30,"1 oz Pistachio liqueur "], ["3820","192",30,"1 oz Brandy "], ["3820","503",150,"5 oz Vanilla ice-cream "], ["1801","108",30,"1 oz J�germeister "], ["1801","145",30,"1 oz Rumple Minze "], ["1801","202",30,"1 oz Gold tequila (Jose Cuervo) "], ["1544","117",30,"1 oz Wildberry schnapps "], ["1544","405",3.7,"1 splash Tequila Rose "], ["5684","231",20,"2 cl Apricot brandy "], ["5684","376",20,"2 cl Gin "], ["5684","82",10,"1 cl Grenadine "], ["2001","462",40,"4 cl Tequila "], ["2001","155",20,"2 cl Heavy cream "], ["3314","238",60,"2 oz Aliz� "], ["3314","3",60,"2 oz Cognac "], ["3314","295",120,"4 oz Champagne "], ["5551","239",40,"4 cl Pear liqueur (Poire au Cognac) "], ["5551","323",100,"10 cl Sprite "], ["2415","74",30,"1 oz Apfelkorn (Berentzen's) "], ["2415","119",30,"1 oz Absolut Vodka "], ["4327","198",14.75,"1/2 shot Aftershock "], ["4327","265",14.75,"1/2 shot Kahlua "], ["3462","108",14.75,"1/2 shot J�germeister "], ["3462","270",14.75,"1/2 shot Bailey's irish cream "], ["2408","333",15,"1/2 oz Creme de Cacao "], ["2408","464",15,"1/2 oz Peppermint schnapps or creme de menthe "], ["2616","71",60,"2 oz Everclear, 190 proof "], ["2616","396",60,"2 oz Orange soda "], ["3361","480",30,"1 oz Irish cream "], ["3361","425",30,"1 oz Pisang Ambon "], ["3361","316",15,"1/2 oz Vodka (Smirnoff) "], ["3361","259",30,"1 oz Milk "], ["1535","392",120,"4 oz Beer "], ["1535","445",120,"4 oz Orange juice "], ["1257","462",14.75,"1/2 shot Tequila "], ["1257","22",14.75,"1/2 shot 7-Up or Sprite "], ["701","376",45,"1 1/2 oz Gin "], ["701","333",22.5,"3/4 oz white Creme de Cacao "], ["1431","316",60,"2 oz Vodka "], ["1431","247",60,"2 oz Cherry liqueur "], ["1431","372",120,"4 oz Cranberry juice "], ["1431","445",120,"4 oz Orange juice "], ["702","284",15,"1/2 oz Maple syrup "], ["702","316",30,"1 oz Vodka "], ["702","198",30,"1 oz Aftershock "], ["702","265",75,"2 1/2 oz Kahlua "], ["703","330",75,"2 1/2 oz Port "], ["703","192",2.5,"1/2 tsp Brandy "], ["6080","270",15,"1/2 oz Bailey's irish cream "], ["6080","309",7.5,"1/4 oz Peach schnapps "], ["6080","205",7.5,"1/4 oz White Creme de Menthe "], ["3286","477",15,"3 tsp Sugar "], ["3286","316",50,"5 cl Vodka "], ["3286","259",150,"15 cl Milk "], ["1304","202",30,"1 oz Gold tequila "], ["1304","131",0.9,"1 dash Tabasco sauce "], ["3092","462",30,"1 oz Tequila "], ["3092","131",10,"2 tsp Tabasco sauce "], ["5588","462",30,"1 oz Tequila (Cuervo) "], ["5588","192",30,"1 oz Brandy (E&J) "], ["5588","378",30,"1 oz Scotch (Scoresby) "], ["5588","464",30,"1 oz Peppermint schnapps (Phillips) "], ["1975","376",45,"1 1/2 oz Gin "], ["1975","88",30,"1 oz Dry Vermouth "], ["1975","186",30,"1 oz Lime juice "], ["708","457",30,"1 oz chilled Cactus Juice liqueur "], ["708","462",15,"1/2 oz Cuervo Tequila "], ["709","448",15,"1/2 oz Apple brandy "], ["709","231",15,"1/2 oz Apricot brandy "], ["709","376",30,"1 oz Gin "], ["709","424",1.25,"1/4 tsp Lemon juice "], ["6051","462",40,"4 cl Tequila "], ["6051","131",40,"4 cl Tabasco sauce "], ["3631","378",10,"1/3 oz Scotch "], ["3631","422",10,"1/3 oz Cream "], ["3631","321",10,"1/3 oz Clamato juice "], ["3159","304",40,"4 cl Rum (Bacardi) "], ["3159","479",20,"2 cl Galliano "], ["3159","445",80,"8 cl Orange juice "], ["3159","261",80,"8 cl Pineapple juice "], ["3159","82",20,"2 cl Grenadine "], ["710","40",15,"1/2 oz Sour Apple Pucker "], ["710","240",15,"1/2 oz Coffee liqueur (Kamora) "], ["710","445",15,"1/2 oz Orange juice "], ["1418","265",15,"1/2 oz Kahlua "], ["1418","10",15,"1/2 oz Creme de Banane "], ["1418","85",3.75,"1/8 oz Bacardi 151 proof rum "], ["6090","214",60,"2 oz Light rum "], ["6090","445",60,"2 oz Orange juice "], ["6090","404",60,"2 oz Grapefruit juice "], ["6090","82",5,"1 tsp Grenadine "], ["3208","214",45,"1 1/2 oz Light rum "], ["3208","166",30,"1 oz Orange Curacao (Bols) "], ["3208","213",15,"1/2 oz Triple sec (Bols) "], ["3208","445",30,"1 oz Orange juice "], ["3208","422",15,"1/2 oz Cream "], ["2286","462",45,"1 1/2 oz Tequila "], ["2286","297",15,"1/2 oz Blue Curacao "], ["2286","436",15,"1/2 oz red Curacao "], ["2286","372",30,"1 oz Cranberry juice "], ["2286","266",30,"1 oz Sour mix "], ["2286","186",15,"1/2 oz Lime juice "], ["2770","375",30,"1 oz Amaretto "], ["2770","276",30,"1 oz Root beer schnapps "], ["2770","259",15,"1/2 oz Milk "], ["2770","86",15,"1/2 oz Grape soda "], ["2203","34",29.5,"1 shot blue Maui "], ["2203","34",29.5,"1 shot red Maui "], ["3811","316",37.5,"1 1/4 oz Vodka "], ["3811","54",22.5,"3/4 oz Chambord raspberry liqueur "], ["3811","22",3.7,"1 splash 7-Up "], ["1521","54",15,"1/2 oz Chambord raspberry liqueur "], ["1521","22",10,"1/3 oz 7-Up "], ["1521","316",10,"1/3 oz Vodka "], ["2678","54",10,"1/3 oz Chambord raspberry liqueur "], ["2678","316",10,"1/3 oz Vodka "], ["2678","213",10,"1/3 oz Triple sec "], ["1228","316",45,"1 1/2 oz Vodka "], ["1228","200",15,"1/2 oz Rose's sweetened lime juice "], ["1228","54",0.9,"1 dash Chambord raspberry liqueur "], ["3680","54",30,"1 oz Chambord raspberry liqueur "], ["3680","36",15,"1/2 oz Malibu rum "], ["3680","261",15,"1/2 oz Pineapple juice "], ["4845","462",60,"2 oz Tequila (Hornitos) "], ["4845","266",60,"2 oz Sour mix "], ["4845","54",60,"2 oz Chambord raspberry liqueur "], ["4845","200",30,"1 oz Rose's sweetened lime juice "], ["4845","372",30,"1 oz Cranberry juice "], ["2982","316",30,"1 oz Vodka (Absolut) "], ["2982","462",30,"1 oz Tequila (Jose Cuervo) "], ["2982","315",30,"1 oz Grand Marnier "], ["5032","316",30,"1 oz Vodka "], ["5032","333",15,"1/2 oz white Creme de Cacao "], ["5032","416",30,"1 oz Grape juice "], ["5959","108",15,"1/2 oz J�germeister "], ["5959","146",45,"1 1/2 oz Midori melon liqueur "], ["5959","372",30,"1 oz Cranberry juice "], ["5959","445",3.7,"1 splash Orange juice "], ["5066","462",30,"1 oz Tequila "], ["5066","297",15,"1/2 oz Blue Curacao "], ["5066","368",15,"1/2 oz Sloe gin "], ["5066","186",60,"2 oz Lime juice "], ["5066","266",60,"2 oz Sour mix "], ["4095","54",60,"2 oz Chambord raspberry liqueur "], ["4095","174",30,"1 oz Blackberry brandy "], ["4095","179",30,"1 oz Cherry brandy "], ["4095","375",30,"1 oz Amaretto "], ["4095","312",30,"1 oz Absolut Citron "], ["4095","445",3.7,"1 splash Orange juice "], ["4095","261",3.7,"1 splash Pineapple juice "], ["4095","404",3.7,"1 splash Grapefruit juice "], ["3504","316",37.5,"1 1/4 oz Vodka "], ["3504","213",22.5,"3/4 oz Triple sec "], ["3504","416",3.7,"1 splash Grape juice "], ["3504","372",3.7,"1 splash Cranberry juice "], ["4075","316",37.5,"1 1/4 oz Vodka "], ["4075","297",22.5,"3/4 oz Blue Curacao "], ["4075","372",3.7,"1 splash Cranberry juice "], ["3168","316",30,"1 oz Vodka (Skyy) "], ["3168","368",22.5,"3/4 oz Sloe gin "], ["3168","297",22.5,"3/4 oz Blue Curacao "], ["4939","297",30,"1 oz Blue Curacao (Bols) "], ["4939","309",30,"1 oz Peach schnapps (De Kuyper) "], ["4939","214",30,"1 oz Light rum (Bacardi) "], ["4939","316",30,"1 oz Vodka (Ketel One) "], ["4939","82",30,"1 oz Grenadine (Rose's) "], ["4939","323",90,"3 oz Sprite or 7-Up "], ["4713","82",10,"1 cl Grenadine syrup "], ["4713","261",40,"4 cl Pineapple juice "], ["4713","445",40,"4 cl Orange juice "], ["4713","404",40,"4 cl Grapefruit juice "], ["1974","173",15,"1/2 oz Canadian whisky (Canadian Club) "], ["1974","480",15,"1/2 oz Bailey's Irish cream "], ["1974","377",60,"2 oz Chocolate milk "], ["1974","265",45,"1 1/2 oz Kahlua "], ["1974","443",45,"1 1/2 oz Soda water (Perrier) "], ["716","431",30,"1 oz Coffee brandy "], ["716","169",45,"1 1/2 oz Lime vodka "], ["716","105",15,"1/2 oz cream Sherry "], ["717","88",15,"1/2 oz Dry Vermouth "], ["717","376",45,"1 1/2 oz Gin "], ["717","351",7.5,"1 1/2 tsp Benedictine "], ["1320","387",45,"1 1/2 oz Dark rum "], ["1320","265",15,"1/2 oz Kahlua "], ["1320","41",30,"1 oz Light cream "], ["1320","20",0.63,"1/8 tsp grated Nutmeg "], ["4632","270",30,"1 oz Bailey's irish cream "], ["4632","146",30,"1 oz Midori melon liqueur "], ["4632","265",30,"1 oz Kahlua "], ["4309","270",10,"1 cl Bailey's irish cream "], ["4309","265",10,"1 cl Kahlua "], ["4309","146",10,"1 cl Midori melon liqueur "], ["2603","276",30,"1 oz Root beer schnapps "], ["2603","270",15,"1/2 oz Bailey's irish cream "], ["2603","22",30,"1 oz 7-Up "], ["2603","175",30,"1 oz Coca-Cola "], ["3020","304",30,"1 oz Rum "], ["3020","316",30,"1 oz Vodka "], ["3020","462",30,"1 oz Tequila "], ["3020","376",30,"1 oz Gin "], ["3020","213",30,"1 oz Triple sec "], ["3020","54",30,"1 oz Chambord raspberry liqueur "], ["3020","146",30,"1 oz Midori melon liqueur "], ["3020","36",30,"1 oz Malibu rum "], ["2738","392",360,"12 oz Beer "], ["2738","22",360,"12 oz 7-Up or Sprite "], ["5896","265",25,"2 1/2 cl Kahlua "], ["5896","475",25,"2 1/2 cl Sambuca "], ["5896","462",10,"1 cl Tequila "], ["2232","71",7.38,"1/4 shot Everclear "], ["2232","265",7.38,"1/4 shot Kahlua "], ["2232","445",7.38,"1/4 shot Orange juice "], ["2232","184",7.38,"1/4 shot Mango juice "], ["2321","85",37.5,"1 1/4 oz 151 proof rum "], ["2321","146",22.5,"3/4 oz Midori melon liqueur "], ["2321","445",120,"4 oz Orange juice "], ["2640","108",15,"1/2 oz J�germeister "], ["2640","145",15,"1/2 oz Rumple Minze "], ["2385","316",60,"2 oz Vodka "], ["2385","387",60,"2 oz Dark rum "], ["2385","303",30,"1 oz White wine "], ["2385","352",30,"1 oz Water "], ["2820","54",30,"1 oz Chambord raspberry liqueur "], ["2820","316",15,"1/2 oz Vodka "], ["2820","213",15,"1/2 oz Triple sec "], ["2820","211",30,"1 oz Sweet and sour "], ["2125","316",60,"2 oz Vodka "], ["2125","213",60,"2 oz Triple sec "], ["2125","237",60,"2 oz Raspberry liqueur "], ["3770","316",30,"1 oz Vodka "], ["3770","304",30,"1 oz Rum "], ["3770","462",30,"1 oz Tequila "], ["3770","376",30,"1 oz Gin "], ["3770","213",30,"1 oz Triple sec "], ["3770","211",45,"1 1/2 oz Sweet and sour "], ["3770","54",30,"1 oz Chambord raspberry liqueur "], ["4318","237",15,"1/2 oz Raspberry liqueur "], ["4318","333",15,"1/2 oz Creme de Cacao "], ["4318","480",15,"1/2 oz Irish cream "], ["4318","422",30,"1 oz Cream "], ["5617","488",20,"2/3 oz Raspberry vodka "], ["5617","372",10,"1/3 oz Cranberry juice "], ["5617","22",3.7,"1 splash 7-Up or sprite "], ["1230","83",90,"3 oz Ginger ale "], ["1230","54",30,"1 oz Chambord raspberry liqueur "], ["6116","339",90,"3 oz Zima "], ["6116","221",30,"1 oz Raspberry schnapps "], ["4824","97",45,"1 1/2 oz RedRum "], ["4824","297",30,"1 oz Blue Curacao "], ["4824","316",30,"1 oz Vodka "], ["4824","261",45,"1 1/2 oz Pineapple juice "], ["4824","445",45,"1 1/2 oz Orange juice "], ["4824","82",3.7,"1 splash Grenadine "], ["4590","488",30,"1 oz Raspberry vodka (Stoli) "], ["4590","213",30,"1 oz Triple sec "], ["4590","211",30,"1 oz Sweet and sour "], ["4590","82",15,"1/2 oz Grenadine "], ["2202","342",60,"2 oz Southern Comfort "], ["2202","7",60,"2 oz Fresca "], ["4446","342",45,"1 1/2 oz Southern Comfort "], ["4446","265",45,"1 1/2 oz Kahlua "], ["4446","126",90,"3 oz Half-and-half "], ["1779","375",37.5,"1 1/4 oz Amaretto "], ["1779","297",7.5,"1/4 oz Blue Curacao "], ["3287","182",37.5,"1 1/4 oz Crown Royal "], ["3287","375",22.5,"3/4 oz Amaretto "], ["3287","372",3.7,"1 splash Cranberry juice "], ["2068","145",22.5,"3/4 oz Rumple Minze "], ["2068","132",7.5,"1/4 oz Cinnamon schnapps "], ["724","342",30,"1 oz Southern Comfort "], ["724","316",30,"1 oz Vodka "], ["724","368",15,"1/2 oz Sloe gin "], ["724","213",15,"1/2 oz Triple sec "], ["724","174",15,"1/2 oz Blackberry brandy "], ["724","445",60,"2 oz Orange juice "], ["724","261",30,"1 oz Pineapple juice "], ["3808","444",29.5,"1 shot Hot Damn "], ["3808","21",29.5,"1 shot Whiskey "], ["3970","316",45,"1 1/2 oz Vodka "], ["3970","309",45,"1 1/2 oz Peach schnapps "], ["3970","342",45,"1 1/2 oz Southern Comfort "], ["3970","368",45,"1 1/2 oz Sloe gin "], ["3970","213",60,"2 oz Triple sec "], ["3970","445",60,"2 oz Orange juice "], ["3970","82",3.7,"1 splash Grenadine "], ["4785","213",15,"1/2 oz Triple sec "], ["4785","16",30,"1 oz hot and spicy V8 juice "], ["4785","316",15,"1/2 oz Vodka "], ["4785","85",15,"1/2 oz 151 proof rum "], ["5143","54",30,"1 oz Chambord raspberry liqueur "], ["5143","375",30,"1 oz Amaretto "], ["5143","182",30,"1 oz Crown Royal "], ["5143","372",60,"2 oz Cranberry juice "], ["5839","376",25,"2 1/2 cl Gin (Beefeater) "], ["5839","10",10,"1 cl Creme de Banane (Bols) "], ["5839","187",5,"1/2 cl Apricot liqueur (Marie Brizard Apry) "], ["5839","424",100,"10 cl sweetened Lemon juice "], ["5839","91",0.9,"1 dash Strawberry syrup (Monin) "], ["3386","226",30,"1 oz Bacardi Limon "], ["3386","462",30,"1 oz Tequila "], ["3386","372",90,"3 oz Cranberry juice "], ["4291","115",30,"1 oz Goldschlager "], ["4291","108",30,"1 oz J�germeister "], ["5254","251",40,"4 cl Watermelon schnapps "], ["5254","309",20,"2 cl Peach schnapps "], ["5254","316",20,"2 cl Vodka "], ["5254","323",100,"10 cl Sprite "], ["5254","82",0.9,"1 dash Grenadine "], ["5769","316",30,"1 oz Vodka "], ["5769","444",30,"1 oz Hot Damn "], ["4483","213",15,"1/2 oz Triple sec "], ["4483","249",30,"1 oz Bourbon "], ["4483","424",30,"1 oz Lemon juice "], ["4483","82",0.9,"1 dash Grenadine "], ["4234","85",37.5,"1 1/4 oz Bacardi 151 proof rum "], ["4234","412",15,"1/2 oz Creme de Noyaux "], ["4234","65",180,"6 oz Guava juice "], ["4234","82",3.7,"1 splash Grenadine "], ["3464","375",14.75,"1/2 shot Amaretto "], ["3464","342",14.75,"1/2 shot Southern Comfort "], ["3464","213",14.75,"1/2 shot Triple sec "], ["3464","82",3.7,"1 splash Grenadine "], ["3464","22",3.7,"1 splash 7-Up "], ["3464","211",29.5,"1 shot Sweet and sour "], ["4703","182",30,"1 oz Crown Royal "], ["4703","375",30,"1 oz Amaretto "], ["3098","182",37.5,"1 1/4 oz Crown Royal "], ["3098","375",15,"1/2 oz Amaretto "], ["3098","372",3.7,"1 splash Cranberry juice "], ["727","376",45,"1 1/2 oz Gin "], ["727","179",15,"1/2 oz Cherry brandy "], ["727","88",15,"1/2 oz Dry Vermouth "], ["2058","166",15,"1/2 oz Orange Curacao "], ["2058","132",22.5,"3/4 oz Cinnamon schnapps "], ["2058","316",15,"1/2 oz Vodka "], ["2058","372",180,"6 oz Cranberry juice "], ["1765","182",29.5,"1 shot Crown Royal "], ["1765","375",29.5,"1 shot Amaretto "], ["1765","372",29.5,"1 shot Cranberry juice "], ["4111","376",30,"3 cl Gin "], ["4111","425",10,"1 cl Pisang Ambon "], ["4111","323",70,"7 cl Sprite "], ["4111","186",10,"1 cl Lime juice "], ["4111","82",5,"1/2 cl Grenadine "], ["2516","198",30,"1 oz Aftershock "], ["2516","115",30,"1 oz Goldschlager "], ["2516","464",30,"1 oz Peppermint schnapps "], ["3405","214",45,"1 1/2 oz Light rum "], ["3405","316",15,"1/2 oz Vodka "], ["3405","231",15,"1/2 oz Apricot brandy "], ["3405","186",15,"1/2 oz Lime juice "], ["3405","82",5,"1 tsp Grenadine "], ["5735","256",30,"1 oz Vanilla schnapps "], ["5735","480",30,"1 oz Irish cream "], ["5866","316",30,"1 oz Vodka "], ["5866","304",30,"1 oz Rum "], ["5866","153",30,"1 oz Watermelon liqueur "], ["5866","261",150,"5 oz Pineapple juice "], ["5866","445",90,"3 oz Orange juice "], ["1797","145",30,"1 oz Rumple Minze "], ["1797","462",30,"1 oz Tequila "], ["1797","108",30,"1 oz J�germeister "], ["1797","1",30,"1 oz Firewater "], ["1039","265",20,"2 cl Kahlua "], ["1039","13",20,"2 cl Amarula Cream "], ["1039","359",20,"2 cl Cointreau "], ["3303","316",40,"4 cl Vodka "], ["3303","270",40,"4 cl Bailey's irish cream "], ["3303","21",20,"2 cl Whiskey "], ["3303","482",300,"30 cl Coffee "], ["2974","119",30,"3 cl Absolut Vodka "], ["2974","21",30,"3 cl Whiskey "], ["2974","270",30,"3 cl Bailey's irish cream "], ["2974","482",250,"25 cl strong, black Coffee "], ["2974","138",10,"2 tsp Brown sugar "], ["2046","212",30,"1 oz Absolut Peppar "], ["2046","78",30,"1 oz Absolut Mandrin "], ["2046","359",3.7,"1 splash Cointreau "], ["2046","372",3.7,"1 splash Cranberry juice "], ["2046","200",0.9,"1 dash Rose's sweetened lime juice "], ["5636","475",15,"1/2 oz Sambuca "], ["5636","445",15,"1/2 oz fresh Orange juice "], ["5087","304",30,"1 oz Rum (Mt. Gay Barbados Eclipse) "], ["5087","359",15,"1/2 oz Cointreau "], ["5087","424",15,"1/2 oz Lemon juice "], ["5087","445",15,"1/2 oz Orange juice "], ["5087","186",15,"1/2 oz Lime juice "], ["5087","473",0.9,"1 dash Creme de Cassis "], ["5087","292",0.9,"1 dash Raspberry syrup "], ["5827","78",15,"1/2 oz Absolut Mandrin "], ["5827","435",15,"1/2 oz Orange vodka (Smirnoff) "], ["5827","359",7.5,"1/4 oz Cointreau "], ["5827","146",7.5,"1/4 oz Midori melon liqueur "], ["5827","227",15,"1/2 oz Banana liqueur "], ["5827","237",7.5,"1/4 oz Raspberry liqueur "], ["5827","266",3.7,"1 splash Sour mix "], ["5827","261",3.7,"1 splash Pineapple juice "], ["733","198",10,"1/3 oz Aftershock "], ["733","62",10,"1/3 oz Yukon Jack "], ["733","445",10,"1/3 oz Orange juice "], ["3704","462",29.5,"1 shot Tequila (Cuervo) "], ["3704","444",29.5,"1 shot Hot Damn "], ["3704","173",29.5,"1 shot Canadian whisky (Crown Royal) "], ["734","275",45,"1 1/2 oz Cherry vodka "], ["734","276",45,"1 1/2 oz Root beer schnapps "], ["1506","316",30,"1 oz Vodka "], ["1506","333",15,"1/2 oz white Creme de Cacao "], ["1506","372",30,"1 oz Cranberry juice "], ["1822","68",20,"2 cl Green Chartreuse "], ["1822","280",10,"1 cl Fernet Branca "], ["1822","192",10,"1 cl Brandy "], ["736","203",30,"1 oz Rock and rye "], ["736","196",30,"1 oz White port "], ["736","88",7.5,"1 1/2 tsp Dry Vermouth "], ["3510","237",29.5,"1 shot Raspberry liqueur (Razzamatazz) "], ["3510","182",29.5,"1 shot Crown Royal "], ["3510","372",60,"2 oz Cranberry juice "], ["3638","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["3638","316",7.38,"1/4 shot Vodka "], ["3638","297",7.38,"1/4 shot Blue Curacao "], ["1870","316",29.5,"1 shot 160 proof Vodka "], ["1870","462",29.5,"1 shot Tequila "], ["1870","142",29.5,"1 shot White rum "], ["3065","462",10,"1/3 oz Tequila "], ["3065","122",10,"1/3 oz Jack Daniels "], ["3065","342",10,"1/3 oz Southern Comfort "], ["2241","159",20,"2/3 oz Tennessee whiskey (Jack Daniel's) "], ["2241","462",20,"2/3 oz Tequila "], ["2241","85",20,"2/3 oz 151 proof rum (Bacardi) "], ["1592","275",30,"1 oz Cherry vodka "], ["1592","213",15,"1/2 oz Triple sec "], ["1592","445",30,"1 oz Orange juice "], ["5124","316",60,"2 oz Vodka "], ["5124","256",30,"1 oz Vanilla schnapps "], ["5124","372",30,"1 oz Cranberry juice "], ["5124","186",3.7,"1 splash Lime juice "], ["4453","194",45,"1 1/2 oz Peach Vodka "], ["4453","297",30,"1 oz Blue Curacao "], ["4453","71",15,"1/2 oz Everclear "], ["4453","372",270,"9 oz Cranberry juice "], ["739","376",45,"1 1/2 oz Gin "], ["739","383",15,"1/2 oz Sweet Vermouth "], ["739","88",15,"1/2 oz Dry Vermouth "], ["739","351",5,"1 tsp Benedictine "], ["2946","375",10,"1/3 oz Amaretto "], ["2946","227",10,"1/3 oz Banana liqueur "], ["2946","464",10,"1/3 oz Peppermint schnapps "], ["5559","34",29.5,"1 shot blue Maui "], ["5559","457",29.5,"1 shot Cactus Juice liqueur "], ["5559","316",29.5,"1 shot Vodka "], ["1314","199",90,"3 oz Mountain Dew "], ["1314","316",30,"1 oz Vodka "], ["1928","122",15,"1/2 oz Jack Daniels "], ["1928","132",15,"1/2 oz Cinnamon schnapps "], ["1924","317",29.5,"1 shot Jose Cuervo "], ["1924","445",29.5,"1 shot Orange juice "], ["1924","379",29.5,"1 shot Tomato juice "], ["1924","51",0.9,"1 dash Salt "], ["2607","316",60,"2 oz Vodka "], ["2607","476",180,"6 oz Pepsi Cola "], ["2607","479",3.7,"1 splash Galliano "], ["3138","276",15,"1/2 oz Root beer schnapps "], ["3138","41",15,"1/2 oz Light cream "], ["742","42",45,"1 1/2 oz Irish whiskey "], ["742","383",22.5,"3/4 oz Sweet Vermouth "], ["742","433",0.9,"1 dash Orange bitters "], ["744","376",45,"1 1/2 oz Gin "], ["744","88",15,"1/2 oz Dry Vermouth "], ["744","179",15,"1/2 oz Cherry brandy "], ["2935","261",30,"3 cl Pineapple juice "], ["2935","292",10,"1-2 tsp Raspberry syrup "], ["2935","422",70,"6-7 cl Cream "], ["2288","462",30,"1 oz Tequila "], ["2288","88",15,"1/2 oz Dry Vermouth "], ["2288","383",15,"1/2 oz Sweet Vermouth "], ["2288","327",30,"1 oz Campari "], ["1580","376",60,"2 oz Gin "], ["1580","54",5,"1 tsp Chambord raspberry liqueur "], ["2736","462",30,"1 oz Tequila "], ["2736","297",30,"1 oz Blue Curacao "], ["2736","274",30,"1 oz Melon liqueur "], ["2736","45",30,"1 oz Lime liqueur (KeKe) "], ["2736","261",60,"2 oz Pineapple juice "], ["2736","445",60,"2 oz Orange juice "], ["2736","82",3.7,"Top with 1 splash Grenadine "], ["746","146",30,"1 oz Midori melon liqueur "], ["746","375",15,"1/2 oz Amaretto "], ["746","342",15,"1/2 oz Southern Comfort "], ["746","36",15,"1/2 oz Malibu rum "], ["746","266",3.7,"1 splash Sour mix "], ["746","261",3.7,"1 splash Pineapple juice "], ["3683","182",15,"1/2 oz Crown Royal "], ["3683","114",15,"1/2 oz Butterscotch schnapps (Buttershots) "], ["747","182",22.5,"3/4 oz Crown Royal "], ["747","375",22.5,"3/4 oz Amaretto "], ["747","54",22.5,"3/4 oz Chambord raspberry liqueur "], ["747","372",3.7,"1 splash Cranberry juice "], ["747","483",3.7,"1 splash Pineapple "], ["2263","182",45,"1 1/2 oz Crown Royal "], ["2263","309",30,"1 oz Peach schnapps "], ["2263","54",15,"1/2 oz Chambord raspberry liqueur "], ["2263","372",30,"1 oz Cranberry juice "], ["750","182",45,"1 1/2 oz Crown Royal "], ["750","27",15,"1/2 oz Blackcurrant cordial "], ["750","297",7.5,"1/4 oz Blue Curacao "], ["5122","182",15,"1/2 oz Crown Royal "], ["5122","309",15,"1/2 oz Peach schnapps "], ["5844","132",22.5,"3/4 oz Cinnamon schnapps "], ["5844","180",5,"1 tsp Candy, Pop Rocks, any flavor "], ["4556","376",45,"1 1/2 oz Gin "], ["4556","179",15,"1/2 oz Cherry brandy "], ["4556","383",5,"1 tsp Sweet Vermouth "], ["6089","226",15,"1/2 oz Bacardi Limon "], ["6089","146",15,"1/2 oz Midori melon liqueur "], ["6089","297",15,"1/2 oz Blue Curacao "], ["6089","221",15,"1/2 oz Raspberry schnapps "], ["6089","372",90,"3 oz Cranberry juice "], ["6089","211",3.7,"1 splash Sweet and sour "], ["4633","276",30,"1 oz Root beer schnapps "], ["4633","480",30,"1 oz Irish cream (Baileys's) "], ["3119","304",120,"4 oz Rum (Bacardi) "], ["3119","175",240,"8 oz Coca-Cola "], ["759","28",7.5,"1 1/2 tsp Dubonnet Rouge "], ["759","214",45,"1 1/2 oz Light rum "], ["759","424",5,"1 tsp Lemon juice "], ["5294","174",26.25,"7/8 oz Blackberry brandy "], ["5294","227",26.25,"7/8 oz Banana liqueur "], ["5294","319",15,"1/2 oz Black rum "], ["5294","85",15,"1/2 oz 151 proof rum "], ["5294","82",18.75,"5/8 oz Grenadine "], ["5294","186",30,"1 oz Lime juice "], ["1394","387",30,"1 oz Dark rum (Myer's) "], ["1394","214",30,"1 oz Light rum (Bacardi) "], ["1394","174",15,"1/2 oz Blackberry brandy "], ["1394","227",7.5,"1/4 oz Banana liqueur "], ["1394","82",3.7,"1 splash Grenadine "], ["1394","200",3.7,"1 splash Rose's sweetened lime juice "], ["2848","36",45,"1 1/2 oz Malibu rum "], ["2848","174",30,"1 oz Blackberry brandy "], ["2848","445",120,"3-4 oz Orange juice "], ["2848","261",120,"3-4 oz Pineapple juice "], ["2848","372",120,"3-4 oz Cranberry juice "], ["3349","214",45,"1 1/2 oz Light rum "], ["3349","445",150,"5 oz Orange juice "], ["3335","70",70,"2 1/3 oz Kiwi-Strawberry Snapple "], ["3335","304",10,"1/3 oz Rum "], ["770","316",30,"1 oz Vodka (Absolut) "], ["770","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["5452","304",60,"2 oz Rum "], ["5452","213",45,"1 1/2 oz Triple sec "], ["5452","198",0.9,"1 dash Aftershock "], ["5452","130",120,"4 oz Club soda "], ["4247","145",30,"1 oz Rumple Minze "], ["4247","198",30,"1 oz Aftershock "], ["1598","316",22.5,"3/4 oz Vodka "], ["1598","376",22.5,"3/4 oz Gin "], ["1598","333",22.5,"3/4 oz white Creme de Cacao "], ["1554","316",14.75,"1/2 shot Vodka "], ["1554","309",14.75,"1/2 shot Peach schnapps "], ["1554","82",0.9,"1 dash Grenadine "], ["5346","392",360,"12 oz Beer "], ["5346","316",30,"1 oz Vodka "], ["3655","316",29.5,"1 shot Vodka "], ["3655","480",29.5,"1 shot Irish cream "], ["3655","240",22.13,"3/4 shot Coffee liqueur "], ["3655","375",22.13,"3/4 shot Amaretto "], ["1767","316",29.5,"1 shot Vodka "], ["1767","265",29.5,"1 shot Kahlua "], ["1767","480",29.5,"1 shot Irish cream "], ["1767","167",29.5,"1 shot Frangelico "], ["1767","422",30,"Top off 1 oz Cream or Milk "], ["1284","240",30,"1 oz Coffee liqueur (Kaluha) "], ["1284","480",30,"1 oz Irish cream (Bailey's) "], ["1284","353",30,"1 oz Orange liqueur (Grand Marnier) "], ["1284","217",30,"1 oz Hazelnut liqueur (Frangelico) "], ["1284","316",30,"1 oz Vodka (Stoli) "], ["5507","316",14.75,"1/2 shot Vodka "], ["5507","15",14.75,"1/2 shot Green Creme de Menthe "], ["1110","316",60,"2 oz Vodka "], ["1110","213",60,"2 oz Triple sec "], ["1110","266",120,"4 oz Sour mix "], ["1110","82",0.9,"1 dash Grenadine "], ["5321","122",15,"1/2 oz Jack Daniels "], ["5321","243",15,"1/2 oz Blueberry schnapps "], ["5521","146",30,"1 oz Midori melon liqueur "], ["5521","36",30,"1 oz Malibu rum "], ["5521","309",30,"1 oz Peach schnapps "], ["5521","445",120,"3 - 4 oz Orange juice "], ["5521","82",10,"2 tsp Grenadine "], ["5632","142",30,"1 oz White rum "], ["5632","284",30,"1 oz Maple syrup "], ["5529","78",22.5,"3/4 oz Absolut Mandrin "], ["5529","224",22.5,"3/4 oz Godiva liqueur "], ["5229","78",120,"4 oz Absolut Mandrin "], ["5229","83",210,"7 oz Ginger ale "], ["5229","372",90,"3 oz Cranberry juice "], ["5229","82",3.7,"1 splash Grenadine "], ["5229","200",3.7,"1 splash Rose's sweetened lime juice "], ["1915","226",10,"1/3 oz Bacardi Limon "], ["1915","146",10,"1/3 oz Midori melon liqueur "], ["1915","186",10,"1/3 oz Lime juice "], ["4611","428",480,"16 oz Genny 12 horse Ale "], ["4611","81",480,"16 oz Mad Dog 20/20 (any flavor) "], ["2938","408",3.75,"1/8 oz Vermouth "], ["2938","212",60,"2 oz Absolut Peppar "], ["775","342",30,"1 oz Southern Comfort "], ["775","61",15,"1/2 oz Vanilla liqueur "], ["775","309",7.5,"1/4 oz Peach schnapps "], ["1044","404",150,"5 oz Grapefruit juice "], ["1044","376",45,"1 1/2 oz Gin "], ["1044","51",1.25,"1/4 tsp Salt "], ["776","316",60,"2 oz Vodka (Absolut) "], ["776","475",60,"2 oz Sambuca "], ["1781","274",15,"1/2 oz Melon liqueur "], ["1781","297",15,"1/2 oz Blue Curacao "], ["1781","261",120,"4 oz Pineapple juice "], ["1781","316",7.5,"1/4 oz Vodka (Smirnoff) "], ["1781","427",180,"6 oz Ice "], ["2065","105",60,"2 oz cream Sherry "], ["2065","327",22.5,"3/4 oz Campari "], ["2065","366",0.9,"1 dash Angostura bitters "], ["777","387",45,"1 1/2 oz Dark rum "], ["777","383",15,"1/2 oz Sweet Vermouth "], ["777","179",15,"1/2 oz Cherry brandy "], ["777","424",15,"1/2 oz Lemon juice "], ["777","477",2.5,"1/2 tsp superfine Sugar "], ["779","383",45,"1 1/2 oz Sweet Vermouth "], ["779","376",45,"1 1/2 oz Gin "], ["779","68",5,"1 tsp Green Chartreuse "], ["1231","387",30,"1 oz Dark rum "], ["1231","349",30,"1 oz A�ejo rum "], ["1231","372",90,"3 oz Cranberry juice "], ["1231","445",30,"1 oz Orange juice "], ["1231","106",0.9,"1 dash Bitters "], ["1366","238",180,"6 oz Aliz� "], ["1366","213",60,"2 oz Triple sec "], ["780","378",30,"3 cl Scotch "], ["780","3",30,"3 cl Cognac "], ["780","330",30,"3 cl Port "], ["1235","448",60,"2 oz Apple brandy "], ["1235","231",2.5,"1/2 tsp Apricot brandy "], ["1235","332",2.5,"1/2 tsp Pernod "], ["6114","312",15,"1/2 oz Absolut Citron "], ["6114","78",15,"1/2 oz Absolut Mandrin "], ["6114","359",7.5,"1/4 oz Cointreau "], ["6114","445",30,"1 oz Orange juice (fresh) "], ["6114","443",15,"1/2 oz Soda water "], ["6114","424",3.7,"1 splash Lemon juice (fresh) "], ["2040","119",420,"12-14 oz Absolut Vodka "], ["2040","142",420,"12-14 oz White rum "], ["2040","376",240,"6-8 oz dry Gin (London's) "], ["2040","372",180,"6 oz Cranberry juice "], ["2741","316",20,"2 cl Vodka (Wyborowa) "], ["2741","140",20,"2 cl Cranberry liqueur (Chymos) "], ["2741","424",20,"2 cl Lemon juice "], ["2741","82",10,"1 cl Grenadine "], ["2741","477",10,"1 cl Sugar "], ["4449","342",45,"1 1/2 oz Southern Comfort "], ["4449","372",45,"1 1/2 oz Cranberry juice "], ["4449","186",30,"1 oz Lime juice "], ["2359","251",180,"6 oz Watermelon schnapps "], ["2359","380",360,"12 oz Squirt "], ["2538","475",15,"1/2 oz Sambuca "], ["2538","265",7.5,"1/4 oz Kahlua "], ["2538","270",7.5,"1/4 oz Bailey's irish cream "], ["2538","114",3.75,"1/8 oz Butterscotch schnapps "], ["2538","108",3.75,"1/8 oz J�germeister "], ["2347","192",30,"1 oz Brandy "], ["2347","375",30,"1 oz Amaretto "], ["2347","41",30,"1 oz Light cream "], ["2676","36",22.5,"3/4 oz Malibu rum "], ["2676","146",22.5,"3/4 oz Midori melon liqueur "], ["2676","261",30,"1 oz Pineapple juice "], ["2676","126",15,"1/2 oz Half-and-half "], ["786","316",22.5,"3/4 oz Vodka (Stoli) "], ["786","146",22.5,"3/4 oz Midori melon liqueur "], ["786","211",3.7,"1 splash Sweet and sour "], ["786","22",3.7,"1 splash 7-Up "], ["2695","146",15,"1/2 oz Midori melon liqueur "], ["2695","145",15,"1/2 oz Rumple Minze "], ["1530","378",60,"2 oz Scotch "], ["1530","352",150,"5 oz Water "], ["5500","378",45,"1 1/2 oz Scotch "], ["5500","375",30,"1 oz Amaretto "], ["5500","213",30,"1 oz Triple sec "], ["5500","424",30,"1 oz Lemon juice "], ["5500","445",60,"2 oz Orange juice "], ["5500","82",5,"1 tsp Grenadine "], ["1417","115",45,"1 1/2 oz Goldschlager "], ["1417","297",7.5,"1/4 oz Blue Curacao "], ["3630","375",45,"1 1/2 oz Amaretto "], ["3630","213",15,"1/2 oz Triple sec "], ["3630","146",30,"1 oz Midori melon liqueur "], ["3630","36",30,"1 oz Malibu rum "], ["3630","322",30,"1 oz Peachtree schnapps "], ["3630","130",60,"2 oz Club soda "], ["3905","108",45,"1 - 1 1/2 oz J�germeister "], ["3905","115",45,"1 - 1 1/2 oz Goldschlager "], ["1762","270",30,"1 oz Bailey's irish cream "], ["1762","213",30,"1 oz Triple sec or other Orange Liquer "], ["1762","3",150,"0.5 oz Cognac "], ["1715","316",30,"1 oz Vodka "], ["1715","270",45,"1 1/2 oz Bailey's irish cream "], ["1715","265",15,"1/2 oz Kahlua "], ["4028","375",29.5,"1 shot Amaretto "], ["4028","270",29.5,"1 shot Bailey's irish cream "], ["4028","316",29.5,"1 shot Vodka "], ["2005","445",90,"3 oz Orange juice "], ["2005","316",60,"2 oz Vodka "], ["2005","461",90,"3 oz Apple juice "], ["803","316",45,"1 1/2 oz Vodka "], ["803","372",120,"4 oz Cranberry juice "], ["803","404",30,"1 oz Grapefruit juice "], ["4916","146",15,"1/2 oz Midori melon liqueur "], ["4916","36",15,"1/2 oz Malibu rum "], ["4916","297",15,"1/2 oz Blue Curacao "], ["4916","211",15,"1/2 oz Sweet and sour "], ["4916","445",15,"1/2 oz Orange juice "], ["4916","323",15,"1/2 oz Sprite "], ["804","445",30,"1 oz Orange juice "], ["804","114",15,"1/2 oz Butterscotch schnapps "], ["804","388",15,"1/2 oz Lemon-lime soda "], ["2708","115",22.5,"3/4 oz Goldschlager "], ["2708","82",7.5,"1/4 oz Grenadine "], ["807","36",30,"1 oz Malibu rum "], ["807","335",30,"1 oz Spiced rum (Captain Morgan's) "], ["807","214",30,"1 oz Light rum "], ["807","445",75,"2 1/2 oz Orange juice "], ["807","261",75,"2 1/2 oz Pineapple juice "], ["807","82",22.5,"3/4 oz Grenadine "], ["810","375",22.5,"3/4 oz Amaretto Di Saronno "], ["810","54",22.5,"3/4 oz Chambord raspberry liqueur "], ["810","261",60,"2 oz Pineapple juice "], ["4868","462",30,"1 oz Tequila (Herradura) "], ["4868","213",30,"1 oz Triple sec (Bandolero) "], ["4868","291",30,"1 oz Cherry juice "], ["4868","399",15,"1/2 oz Margarita mix "], ["4868","372",15,"1/2 oz Cranberry juice "], ["4990","108",30,"1 oz J�germeister "], ["4990","146",15,"1/2 oz Midori melon liqueur "], ["4990","237",15,"1/2 oz Raspberry liqueur, black "], ["4990","261",15,"1/2 oz Pineapple juice "], ["4990","372",7.5,"1/4 oz Cranberry juice "], ["1503","316",30,"1 oz Vodka "], ["1503","146",15,"1/2 oz Midori melon liqueur "], ["1503","54",15,"1/2 oz Chambord raspberry liqueur "], ["1503","261",60,"2 oz Pineapple juice "], ["1503","372",128.5,"1/2 cup Cranberry juice "], ["2333","316",15,"1/2 oz Vodka "], ["2333","146",15,"1/2 oz Midori melon liqueur "], ["2333","54",15,"1/2 oz Chambord raspberry liqueur "], ["2333","261",30,"3 cl Pineapple juice "], ["2405","312",37.5,"1 1/4 oz Absolut Citron "], ["2405","165",30,"1 oz Strawberry schnapps "], ["2405","445",180,"5-6 oz Orange juice "], ["2405","422",7.5,"1/4 oz Cream "], ["5859","309",30,"1 oz Peach schnapps "], ["5859","54",30,"1 oz Chambord raspberry liqueur "], ["5859","146",30,"1 oz Midori melon liqueur "], ["4358","182",15,"1/2 oz Crown Royal "], ["4358","375",15,"1/2 oz Amaretto "], ["4358","368",15,"1/2 oz Sloe gin "], ["4358","445",22.5,"3/4 oz Orange juice "], ["4358","261",22.5,"3/4 oz Pineapple juice (optional) "], ["4315","312",30,"1 oz Absolut Citron "], ["4315","146",15,"1/2 oz Midori melon liqueur "], ["4315","54",15,"1/2 oz Chambord raspberry liqueur "], ["4315","445",15,"1/2 oz Orange juice "], ["4315","261",15,"1/2 oz Pineapple juice "], ["4315","211",3.7,"1 splash Sweet and sour "], ["5919","127",300,"10 oz Mango juice (Fresh Samantha) "], ["5919","316",90,"3 oz Vodka "], ["5919","213",90,"3 oz Triple sec "], ["4490","297",22.5,"3/4 oz Blue Curacao "], ["4490","227",22.5,"3/4 oz Banana liqueur "], ["4490","266",22.5,"3/4 oz Sour mix "], ["4490","326",22.5,"3/4 oz Orange "], ["5526","42",45,"1 1/2 oz Irish whiskey (Jameson's) "], ["5526","265",15,"1/2 oz Kahlua "], ["5526","270",15,"1/2 oz Bailey's irish cream "], ["814","85",60,"2 oz Bacardi 151 proof rum "], ["814","352",360,"12 oz Water "], ["3626","387",45,"1 1/2 oz Dark rum (Myers) "], ["3626","445",90,"3 oz Orange juice "], ["3626","266",15,"1/2 oz Sour mix "], ["3626","82",22.5,"3/4 oz Grenadine "], ["3626","427",90,"3 oz Ice "], ["2818","316",180,"6 oz Vodka "], ["2818","2",180,"6 oz Lemonade "], ["2818","82",90,"3 oz Grenadine "], ["1389","387",150,"1.5 oz Dark rum "], ["1389","186",750,"0.25 oz Lime juice "], ["1389","424",750,"0.25 oz Lemon juice "], ["1389","82",750,"0.25 oz Grenadine "], ["1389","443",3.7,"1 splash Soda water "], ["4458","243",45,"1 1/2 oz Blueberry schnapps "], ["4458","22",3.7,"1 splash 7-Up "], ["4458","82",5,"1 tsp Grenadine "], ["4458","416",180,"6 oz Grape juice "], ["4458","316",30,"1 oz Vodka (optional) "], ["3514","359",30,"1 oz Cointreau "], ["3514","421",30,"1 oz Cinzano Orancio "], ["1353","133",40,"4 cl Aquavit, Simer's "], ["1353","255",40,"4 cl St. Hallvard "], ["1040","15",14.75,"1/2 shot Green Creme de Menthe "], ["1040","270",14.75,"1/2 shot Bailey's irish cream "], ["3407","387",45,"1 1/2 oz Dark rum (Myer's) "], ["3407","36",45,"1 1/2 oz Malibu rum "], ["3407","309",7.5,"1/4 oz Peach schnapps "], ["3407","136",7.5,"1/4 oz Blackberry schnapps "], ["3407","445",15,"1/2 oz Orange juice "], ["3407","372",15,"1/2 oz Cranberry juice "], ["3407","261",7.5,"1/4 oz Pineapple juice "], ["2929","83",200,"20 cl Ginger ale "], ["2929","82",30,"3 cl Grenadine syrup "], ["2253","146",14.75,"1/2 shot Midori melon liqueur "], ["2253","265",14.75,"1/2 shot Kahlua "], ["1897","316",45,"1 1/2 oz Vodka "], ["1897","82",15,"1/2 oz Grenadine "], ["1897","445",60,"2 oz Orange juice "], ["3737","105",30,"1 oz dry Sherry "], ["3737","378",30,"1 oz Scotch "], ["3737","424",5,"1 tsp Lemon juice "], ["3737","445",5,"1 tsp Orange juice "], ["3737","236",2.5,"1/2 tsp Powdered sugar "], ["2725","105",30,"1 oz dry Sherry "], ["2725","378",30,"1 oz Scotch "], ["2725","424",5,"1 tsp Lemon juice "], ["2725","445",5,"1 tsp Orange juice "], ["2725","236",2.5,"1/2 tsp Powdered sugar "], ["912","132",30,"1 oz Cinnamon schnapps (Aftershock) "], ["912","310",257,"1 cup Hot chocolate "], ["2801","83",15,"1/2 oz Ginger ale "], ["2801","131",15,"1/2 oz Tabasco sauce "], ["3021","115",30,"1 oz Goldschlager "], ["3021","272",30,"1 oz Razzmatazz "], ["3021","261",3.7,"1 splash Pineapple juice "], ["3021","211",3.7,"1 splash Sweet and sour "], ["3021","22",3.7,"1 splash 7-Up "], ["2226","342",15,"1/2 oz Southern Comfort "], ["2226","322",15,"1/2 oz Peachtree schnapps "], ["2226","324",22.5,"3/4 oz Apple cider "], ["4061","132",90,"3 oz Cinnamon schnapps "], ["4061","316",60,"2 oz Vodka "], ["4061","219",30,"1 oz Carbonated water "], ["4474","316",45,"1 1/2 oz Vodka (Stolichnaya) "], ["4474","404",120,"4 oz Grapefruit juice "], ["4474","213",15,"1/2 oz Triple sec "], ["6034","375",15,"1/2 oz Amaretto "], ["6034","342",15,"1/2 oz Southern Comfort "], ["1334","205",30,"1 oz White Creme de Menthe "], ["1334","316",30,"1 oz Vodka "], ["1334","142",30,"1 oz White rum "], ["5516","21",60,"2 oz Whiskey "], ["5516","376",60,"2 oz Gin "], ["5516","383",15,"1/2 oz Sweet Vermouth "], ["5516","106",0.9,"1 dash Bitters "], ["5516","258",0.9,"1 dash Worcestershire sauce "], ["5131","3",60,"2 oz Cognac "], ["5131","359",15,"1/2 oz Cointreau "], ["5131","424",30,"1 oz Lemon juice "], ["821","214",45,"1 1/2 oz Light rum "], ["821","124",15,"1/2 oz Anisette "], ["821","424",15,"1/2 oz Lemon juice "], ["821","82",2.5,"1/2 tsp Grenadine "], ["823","309",15,"1/2 oz Peach schnapps "], ["823","316",45,"1 1/2 oz Vodka (Absolut) "], ["4205","316",45,"1 1/2 oz Vodka "], ["4205","327",45,"1 1/2 oz Campari "], ["4205","445",30,"1 oz Orange juice "], ["5533","475",30,"1 oz Sambuca "], ["5533","82",7.5,"1/4 oz Grenadine "], ["5533","445",7.5,"1/4 oz Orange juice "], ["3710","376",257,"1 cup Gin "], ["3710","2",360,"12 oz Lemonade concentrate "], ["3710","392",720,"24 oz Beer "], ["3710","352",720,"24 oz Water "], ["1354","376",30,"1 oz Gin "], ["1354","392",90,"3 oz Beer "], ["1354","82",15,"1/2 oz Grenadine "], ["1354","22",15,"1/2 oz 7-Up "], ["5857","488",15,"1/2 oz Raspberry vodka (Stoli) "], ["5857","194",15,"1/2 oz Peach Vodka (Stoli) "], ["5857","391",15,"1/2 oz Vanilla vodka (Stoli) "], ["5857","2",120,"4 oz Lemonade "], ["5857","82",15,"1/2 oz Grenadine "], ["5089","259",30,"3 cl Milk (2.7-3.8% ) "], ["5089","270",20,"2 cl Bailey's irish cream "], ["5089","265",10,"1 cl Kahlua "], ["5089","375",2.5,"1/2 tsp Amaretto "], ["829","192",22.5,"3/4 oz Brandy "], ["829","304",22.5,"3/4 oz Rum "], ["829","213",5,"1 tsp Triple sec "], ["829","82",5,"1 tsp Grenadine "], ["829","424",5,"1 tsp Lemon juice "], ["830","3",60,"2 oz Cognac "], ["830","359",15,"1/2 oz Cointreau "], ["830","207",15,"1/2 oz Yellow Chartreuse "], ["830","366",0.9,"1 dash Angostura bitters "], ["3010","387",45,"1 1/2 oz Dark rum "], ["3010","186",15,"1/2 oz Lime juice "], ["3010","424",5,"1 tsp Lemon juice "], ["3010","404",60,"2 oz Grapefruit juice "], ["3010","477",5,"1 tsp superfine Sugar "], ["2895","316",30,"1 oz Vodka "], ["2895","122",30,"1 oz Jack Daniels "], ["2895","2",30,"1 oz Lemonade "], ["2895","392",30,"1 oz Beer (Red Dog) "], ["1487","265",10,"1/3 oz Kahlua "], ["1487","167",10,"1/3 oz Frangelico "], ["1487","270",10,"1/3 oz Bailey's irish cream "], ["3561","146",60,"2 oz Midori melon liqueur "], ["3561","372",180,"6 oz Cranberry juice "], ["2782","240",9.83,"1/3 shot Coffee liqueur (kahlua) "], ["2782","480",9.83,"1/3 shot Irish cream (bailey's) "], ["2782","249",9.83,"1/3 shot Bourbon (Old Grandad) "], ["2950","316",15,"1/2 oz Vodka (Absolut) "], ["2950","85",15,"1/2 oz Bacardi 151 proof rum "], ["2950","202",15,"1/2 oz Gold tequila (Cuervo) "], ["2950","376",15,"1/2 oz Gin "], ["2950","71",15,"1/2 oz Everclear "], ["2950","297",15,"1/2 oz Blue Curacao "], ["2950","261",15,"1/2 oz Pineapple juice "], ["2458","315",120,"4 oz Grand Marnier "], ["2458","166",120,"4 oz Orange Curacao "], ["2458","82",0.9,"1 dash Grenadine "], ["2458","424",30,"1 oz Lemon juice "], ["6037","82",29.5,"1 shot Grenadine "], ["6037","68",29.5,"1 shot Green Chartreuse "], ["6037","462",29.5,"1 shot silver Tequila "], ["4503","335",96,"3 1/5 oz Spiced rum (Captain Morgan's) "], ["4503","331",600,"20 oz Surge "], ["3180","114",45,"1 1/2 oz Butterscotch schnapps "], ["3180","270",60,"2 oz Bailey's irish cream "], ["3180","126",120,"3-4 oz Half-and-half "], ["1608","316",60,"2 oz Vodka "], ["1608","274",30,"1 oz Melon liqueur "], ["1608","126",30,"1 oz Half-and-half "], ["1502","270",150,"0.5 oz Bailey's irish cream "], ["1502","114",150,"0.5 oz Butterscotch schnapps "], ["2486","480",10,"1/3 oz Irish cream (Bailey's) "], ["2486","114",10,"1/3 oz Butterscotch schnapps "], ["2486","265",10,"1/3 oz Kahlua (Coffee) "], ["2240","368",90,"3 oz Sloe gin "], ["2240","342",90,"3 oz Southern Comfort "], ["2240","445",90,"3 oz Orange juice "], ["2240","316",90,"3 oz Vodka "], ["2299","270",30,"1 oz Bailey's irish cream "], ["2299","475",30,"1 oz Sambuca "], ["833","368",60,"2 oz Sloe gin "], ["833","88",1.25,"1/4 tsp Dry Vermouth "], ["833","433",0.9,"1 dash Orange bitters "], ["835","368",60,"2 oz Sloe gin "], ["835","106",0.9,"1 dash Bitters "], ["840","445",90,"3 oz Orange juice "], ["840","372",90,"3 oz Cranberry juice "], ["840","323",90,"3 oz Sprite "], ["840","335",120,"4 oz Spiced rum (Capt. Morgan) "], ["5513","192",22.5,"3/4 oz Brandy "], ["5513","213",1.25,"1/4 tsp Triple sec "], ["5513","330",22.5,"3/4 oz Port "], ["5513","261",22.5,"3/4 oz Pineapple juice "], ["5513","82",1.25,"1/4 tsp Grenadine "], ["6130","97",29.5,"1 shot RedRum "], ["6130","479",14.75,"1/2 shot Galliano "], ["6130","368",14.75,"1/2 shot Sloe gin "], ["6130","445",180,"6 oz Orange juice "], ["842","85",29.5,"1 shot 151 proof rum "], ["842","203",360,"12 oz Rock and rye "], ["5224","142",60,"2 oz White rum (Bacardi) "], ["5224","297",45,"1 1/2 oz Blue Curacao "], ["5224","272",30,"1 oz Razzmatazz "], ["5224","261",120,"4 oz Pineapple juice "], ["1383","316",30,"1 oz Vodka "], ["1383","213",22.5,"3/4 oz Triple sec "], ["1383","82",22.5,"3/4 oz Grenadine "], ["3230","160",15,"1/2 oz Grape schnapps "], ["3230","274",15,"1/2 oz Melon liqueur "], ["1925","375",30,"1 oz Amaretto "], ["1925","342",30,"1 oz Southern Comfort "], ["1925","174",30,"1 oz Blackberry brandy "], ["1925","266",15,"1/2 oz Sour mix "], ["2085","88",15,"1/2 oz Dry Vermouth "], ["2085","383",15,"1/2 oz Sweet Vermouth "], ["2085","376",30,"1 oz Gin "], ["2085","445",1.25,"1/4 tsp Orange juice "], ["2085","106",0.9,"1 dash Bitters "], ["1910","376",300,"3/10 oz dry Gin "], ["1910","346",300,"3/10 oz tropical Fruit juice "], ["1910","297",300,"2/10 oz Blue Curacao "], ["1910","359",300,"1/10 oz Cointreau "], ["1910","14",300,"1/10 oz Peach nectar "], ["845","265",10,"1/3 oz Kahlua "], ["845","270",10,"1/3 oz Bailey's irish cream "], ["845","115",10,"1/3 oz Goldschlager "], ["846","376",30,"1 oz Gin "], ["846","82",30,"1 oz Grenadine "], ["846","424",2.5,"1/2 tsp Lemon juice "], ["3055","316",29.5,"1 shot Vodka "], ["3055","265",29.5,"1 shot Kahlua "], ["3055","175",0.9,"1 dash Coca-Cola "], ["3055","442",0.9,"1 dash Guinness stout "], ["1543","375",22.13,"3/4 shot Amaretto "], ["1543","22",7.38,"1/4 shot 7-Up or Sprite "], ["1782","372",960,"32 oz Cranberry juice cocktail "], ["1782","83",840,"28 oz Ginger ale "], ["1782","2",360,"12 oz Lemonade "], ["1782","249",128.5,"1-1/2 cup Bourbon "], ["3802","316",45,"1 1/2 oz Vodka "], ["3802","213",45,"1 1/2 oz Triple sec "], ["3802","445",60,"2 oz Orange juice "], ["3802","372",60,"2 oz Cranberry juice "], ["3802","179",15,"1/2 oz Cherry brandy "], ["2606","34",45,"1 1/2 oz blue Maui "], ["2606","316",15,"1/2 oz Vodka "], ["2606","261",240,"8 oz Pineapple juice "], ["1416","259",60,"2 oz Milk "], ["1416","372",60,"2 oz Cranberry juice "], ["1416","309",120,"3-4 oz Peach schnapps or crantasha "], ["2837","265",30,"1 oz Kahlua "], ["2837","450",30,"1 oz Rye whiskey "], ["2837","259",120,"4 oz Milk "], ["1560","122",30,"1 oz Jack Daniels "], ["1560","145",30,"1 oz Rumple Minze "], ["3759","464",15,"1/2 oz Peppermint schnapps "], ["3759","232",15,"1/2 oz Wild Turkey "], ["3895","192",45,"1 1/2 oz Brandy "], ["3895","124",45,"1 1/2 oz Anisette "], ["4762","431",45,"1 1/2 oz Coffee brandy "], ["4762","41",30,"1 oz Light cream "], ["2457","316",22.5,"3/4 oz Vodka or rum "], ["2457","309",22.5,"3/4 oz Peach schnapps "], ["2457","213",22.5,"3/4 oz Triple sec "], ["2457","261",90,"3 oz Pineapple juice "], ["2457","445",90,"3 oz Orange juice "], ["848","316",22.5,"3/4 oz Vodka or light rum "], ["848","309",22.5,"3/4 oz Peach schnapps "], ["848","213",22.5,"3/4 oz Triple sec "], ["848","261",90,"3 oz Pineapple juice "], ["848","445",90,"3 oz Orange juice "], ["3220","214",45,"1 1/2 oz Light rum "], ["3220","231",15,"1/2 oz Apricot brandy "], ["3220","424",15,"1/2 oz Lemon juice "], ["3220","477",2.5,"1/2 tsp superfine Sugar "], ["3220","82",5,"1 tsp Grenadine "], ["1964","214",45,"1 1/2 oz Light rum "], ["1964","231",15,"1/2 oz Apricot brandy "], ["1964","186",10,"2 tsp Lime juice "], ["1964","424",10,"2 tsp Lemon juice "], ["1964","477",2.5,"1/2 tsp superfine Sugar "], ["849","316",90,"3 oz Vodka "], ["849","199",150,"5 oz Mountain Dew "], ["849","416",60,"2 oz Grape juice "], ["2438","182",22.5,"3/4 oz Crown Royal "], ["2438","274",7.5,"1/4 oz Melon liqueur "], ["2438","266",15,"1/2 oz Sour mix "], ["1833","88",22.5,"3/4 oz Dry Vermouth "], ["1833","249",22.5,"3/4 oz Bourbon "], ["1833","28",7.5,"1 1/2 tsp Dubonnet Rouge "], ["1833","445",7.5,"1 1/2 tsp Orange juice "], ["1494","514",20,"2 cl Sour apple liqueur "], ["1494","316",20,"2 cl Vodka "], ["1494","186",20,"2 cl Lime juice "], ["1494","357",20,"2 cl Sugar syrup "], ["853","404",60,"2 oz Grapefruit juice "], ["853","186",15,"1/2 oz Lime juice "], ["853","71",45,"1 1/2 oz Everclear "], ["5096","226",15,"1/2 oz Bacardi Limon "], ["5096","500",15,"1/2 oz Cheri Beri Pucker "], ["5096","208",15,"1/2 oz Grape Pucker "], ["5096","357",7.5,"1/4 oz Sugar syrup "], ["5096","266",15,"1/2 oz Sour mix "], ["5096","130",3.7,"1 splash Club soda "], ["6050","15",15,"1/2 oz Green Creme de Menthe "], ["6050","124",15,"1/2 oz Anisette "], ["5725","342",7.5,"1/4 oz Southern Comfort "], ["5725","375",7.5,"1/4 oz Amaretto "], ["5725","309",7.5,"1/4 oz Peach schnapps "], ["5725","213",7.5,"1/4 oz Triple sec "], ["5725","372",3.7,"1 splash Cranberry juice "], ["5725","266",3.7,"1 splash Sour mix "], ["1326","342",60,"2 oz Southern Comfort "], ["1326","309",45,"1 1/2 oz Peach schnapps "], ["1326","213",15,"1/2 oz Triple sec "], ["1326","312",30,"1 oz Absolut Citron "], ["6204","342",37.5,"1 1/4 oz Southern Comfort "], ["6204","404",37.5,"1 1/4 oz Grapefruit juice "], ["6204","261",37.5,"1 1/4 oz Pineapple juice "], ["6204","219",37.5,"1 1/4 oz Carbonated water "], ["856","122",22.5,"3/4 oz Jack Daniels "], ["856","342",22.5,"3/4 oz Southern Comfort "], ["856","445",15,"1/2 oz Orange juice "], ["856","22",7.5,"1/4 oz 7-Up "], ["856","82",7.5,"1/4 oz Grenadine "], ["4367","342",20,"2 cl Southern Comfort "], ["4367","82",10,"1 cl Grenadine "], ["4367","424",10,"1 cl Lemon juice (fresh) "], ["4367","445",20,"2 cl Orange juice "], ["2429","407",30,"1 oz Lemon vodka (Stoli Limonnaya) "], ["2429","213",30,"1 oz Triple sec "], ["2429","200",30,"1 oz Rose's sweetened lime juice "], ["2429","130",90,"3 oz Club soda "], ["4369","375",30,"1 oz Amaretto "], ["4369","480",30,"1 oz Irish cream (Bailey's) "], ["5485","342",30,"1 oz Southern Comfort "], ["5485","309",30,"1 oz Peach schnapps "], ["5485","36",30,"1 oz Malibu rum "], ["5485","261",30,"Appx. 1 oz Pineapple juice "], ["2769","448",7.5,"1/4 oz Apple brandy "], ["2769","115",7.5,"1/4 oz Goldschlager "], ["2769","335",15,"1/2 oz Spiced rum (Captain Morgan's) "], ["2931","335",44.25,"1 1/2 shot Spiced rum (Captain Morgan's) "], ["2931","364",180,"6 oz Cherry Cola (Pepsi) "], ["5282","462",15,"1/2 oz Tequila "], ["5282","323",60,"2 oz Sprite "], ["5282","82",5,"1 tsp Grenadine "], ["858","444",10,"1/3 oz Hot Damn "], ["858","114",10,"1/3 oz Butterscotch schnapps "], ["858","270",10,"1/3 oz Bailey's irish cream "], ["2182","376",90,"3 oz Gin "], ["2182","291",45,"1 1/2 oz Cherry juice "], ["2182","22",180,"6 oz 7-Up "], ["3458","265",30,"1 oz Kahlua "], ["3458","36",30,"1 oz Malibu rum "], ["3458","422",30,"1 oz Cream "], ["3801","205",22.5,"3/4 oz White Creme de Menthe "], ["3801","13",7.5,"1/4 oz Amarula Cream "], ["3801","422",0.9,"1 dash Cream "], ["2213","365",40,"4 cl Absolut Kurant "], ["2213","186",10,"1 cl Lime juice "], ["2213","372",100,"10 cl Cranberry juice "], ["2213","112",30,"3 cl Bitter lemon "], ["4717","445",120,"4 oz Orange juice (Britvic) "], ["4717","112",120,"4 oz Bitter lemon "], ["1096","15",22.5,"3/4 oz Green Creme de Menthe "], ["1096","68",22.5,"3/4 oz Green Chartreuse "], ["1096","42",22.5,"3/4 oz Irish whiskey "], ["1096","106",0.9,"1 dash Bitters "], ["3332","85",22.5,"3/4 oz Bacardi 151 proof rum "], ["3332","145",22.5,"3/4 oz Rumple Minze "], ["4836","333",15,"1/2 oz oz white Creme de Cacao "], ["4836","224",15,"1/2 oz Godiva liqueur "], ["4836","10",15,"1/2 oz Creme de Banane "], ["4836","126",45,"1 1/2 oz Half-and-half "], ["4524","214",60,"2 oz Light rum "], ["4524","404",30,"1 oz Grapefruit juice "], ["4524","140",15,"1/2 oz Cranberry liqueur "], ["862","214",60,"2 oz Light rum "], ["862","445",30,"1 oz Orange juice "], ["862","82",5,"1 tsp Grenadine "], ["862","29",120,"4 oz Tonic water "], ["6176","316",30,"3 cl Vodka (Absolut) "], ["6176","462",10,"1 cl Tequila "], ["6176","365",10,"1 cl Absolut Kurant "], ["6176","387",10,"1 cl Dark rum (Bacardi) "], ["2341","312",15,"1/2 oz Absolut Citron "], ["2341","322",15,"1/2 oz Peachtree schnapps "], ["2341","297",15,"1/2 oz Blue Curacao "], ["2341","211",30,"1 oz Sweet and sour "], ["2341","261",30,"1 oz Pineapple juice "], ["2341","82",3.7,"1 splash Grenadine "], ["4165","240",15,"1/2 oz Coffee liqueur "], ["4165","487",15,"1/2 oz Dark Creme de Cacao "], ["4165","375",15,"1/2 oz Amaretto "], ["4165","479",15,"1/2 oz Galliano "], ["4832","108",29.5,"1 shot J�germeister "], ["4832","392",360,"12 oz Beer "], ["2108","122",30,"1 oz Jack Daniels "], ["2108","342",30,"1 oz Southern Comfort "], ["2108","213",30,"1 oz Triple sec "], ["2108","211",30,"1 oz Sweet and sour "], ["2108","445",150,"5 oz Orange juice "], ["4317","376",100,"10 cl dry Gin (Gordon's) "], ["4317","200",50,"5 cl Rose's sweetened lime juice "], ["4317","116",40,"4 cl Cherry Heering "], ["4317","461",200,"20 cl Apple juice "], ["4317","29",50,"5 cl Tonic water "], ["4316","316",30,"3 cl Vodka "], ["4316","205",20,"2 cl White Creme de Menthe "], ["4316","131",5,"1/2 cl Tabasco sauce "], ["1237","192",45,"1 1/2 oz Brandy "], ["1237","205",15,"1/2 oz White Creme de Menthe "], ["1237","316",15,"1/2 oz Vodka "], ["1718","192",45,"1 1/2 oz Brandy "], ["1718","205",15,"1/2 oz White Creme de Menthe "], ["1111","383",15,"1/2 oz Sweet Vermouth "], ["1111","105",30,"1 oz dry Sherry "], ["1111","214",15,"1/2 oz Light rum "], ["4355","316",60,"2 oz Vodka "], ["4355","468",60,"2 oz Coconut rum "], ["4355","259",180,"6 oz Milk "], ["5422","378",300,"10 oz Scotch "], ["5422","316",150,"5 oz Vodka "], ["5422","284",120,"4 oz Maple syrup "], ["3964","480",30,"1 oz Irish cream "], ["3964","333",15,"1/2 oz white Creme de Cacao "], ["3964","269",15,"1/2 oz Strawberry liqueur (Baja Rosa) "], ["2183","165",15,"1/2 oz Strawberry schnapps "], ["2183","214",30,"1 oz Light rum "], ["2183","186",30,"1 oz Lime juice "], ["2183","236",5,"1 tsp Powdered sugar "], ["2183","347",30,"1 oz Strawberries "], ["867","165",60,"2 oz Strawberry schnapps "], ["867","251",60,"2 oz Watermelon schnapps "], ["867","2",240,"8 oz Lemonade "], ["6060","270",30,"1 oz Bailey's irish cream "], ["6060","269",30,"1 oz Strawberry liqueur "], ["1887","108",10,"1/3 oz J�germeister "], ["1887","145",10,"1/3 oz Rumple Minze "], ["1887","198",10,"1/3 oz Aftershock "], ["1313","387",45,"1 1/2 oz Dark rum "], ["1313","487",15,"1/2 oz Dark Creme de Cacao "], ["1313","310",60,"2 oz Hot chocolate "], ["1313","155",5,"1 tsp Heavy cream "], ["5388","214",45,"1 1/2 oz Light rum "], ["5388","315",15,"1/2 oz Grand Marnier "], ["5388","186",15,"1/2 oz Lime juice "], ["5388","82",2.5,"1/2 tsp Grenadine "], ["5932","376",60,"2 oz Gin "], ["5932","176",10,"2 tsp Maraschino liqueur "], ["5932","261",30,"1 oz Pineapple juice "], ["5932","106",0.9,"1 dash Bitters "], ["4356","332",20,"2 cl Pernod / Ricard "], ["4356","327",60,"6 cl Campari "], ["871","381",10,"1 cl Drambuie "], ["871","353",10,"1 cl Orange liqueur "], ["871","270",10,"1 cl Bailey's irish cream "], ["871","259",6.67,"2/3 cl Milk "], ["872","146",45,"1 1/2 oz Midori melon liqueur "], ["872","119",45,"1 1/2 oz Absolut Vodka "], ["872","198",45,"1 1/2 oz Aftershock "], ["872","445",3.7,"1 splash Orange juice "], ["3404","85",15,"11/2 oz 151 proof rum "], ["3404","131",7.5,"1/4 oz Tabasco sauce "], ["875","345",30,"1 oz Lemon gin "], ["875","274",30,"1 oz Melon liqueur "], ["875","213",30,"1 oz Triple sec "], ["875","441",90,"3 oz Fruit punch "], ["4402","316",40,"4 cl Vodka (Absolut) "], ["4402","323",50,"5 cl Sprite light "], ["4402","445",50,"5 cl Orange juice "], ["5494","146",30,"1 oz Midori melon liqueur "], ["5494","376",30,"1 oz Gin (Beefeater) "], ["5494","445",180,"6 oz Orange juice "], ["877","226",60,"6 cl Bacardi Limon "], ["877","22",50,"5 cl 7-Up "], ["877","266",30,"3 cl Sour mix "], ["877","290",20,"2 cl Schweppes Russchian "], ["878","36",30,"3 cl Malibu rum "], ["878","445",30,"3 cl Orange juice "], ["878","316",10,"1 cl Vodka "], ["878","1",20,"2 cl Firewater "], ["878","301",10,"1 cl Red wine "], ["3668","85",14.75,"1/2 shot 151 proof rum "], ["3668","316",14.75,"1/2 shot 100 proof Vodka "], ["3668","68",0.9,"1 dash Green Chartreuse "], ["6163","435",37.5,"1 1/4 oz Orange vodka (Stoli Ohranj) "], ["6163","359",15,"1/2 oz Cointreau "], ["6163","211",30,"1 oz Sweet and sour "], ["6163","445",45,"1 1/2 oz Orange juice "], ["6163","372",45,"1 1/2 oz Cranberry juice "], ["880","71",29.5,"1 shot Everclear "], ["880","222",75,"2 1/2 oz Sunny delight "], ["880","257",30,"1 oz Tropical fruit schnapps "], ["3324","108",15,"1/2 oz J�germeister "], ["3324","342",15,"1/2 oz Southern Comfort "], ["3324","375",15,"1/2 oz Amaretto "], ["3324","54",30,"1 oz Chambord raspberry liqueur "], ["3324","483",60,"2 oz Pineapple "], ["1240","331",120,"4 oz Surge "], ["1240","316",60,"2 oz Vodka "], ["1082","392",180,"6 oz Beer "], ["1082","462",37.5,"1 1/4 oz Tequila "], ["1082","85",3.7,"1 splash Bacardi 151 proof rum "], ["2310","265",30,"1 oz Kahlua "], ["2310","432",0.9,"1 dash Whipped cream "], ["2310","314",15,"1/2 oz Cream soda "], ["1555","39",20,"2 cl Parfait d'Amour (Bols) "], ["1555","375",50,"1.5 cl Amaretto di Saronno (ILLVA Saronno) "], ["1555","158",50,"1.5 cl Vanilla syrup (Monin) "], ["1555","422",50,"1.5 cl fresh Cream "], ["1555","436",50,"0.5 cl red Curacao (Marie Brizard) "], ["3440","480",30,"1 oz Irish cream "], ["3440","375",30,"1 oz Amaretto "], ["3440","114",30,"1 oz Butterscotch schnapps "], ["3440","468",30,"1 oz Coconut rum "], ["883","214",45,"1 1/2 oz Light rum "], ["883","454",75,"2 1/2 oz Passion fruit syrup "], ["883","211",60,"2 oz Sweet and sour "], ["883","347",30,"1 oz pureed frozen Strawberries "], ["3564","297",180,"6 oz Blue Curacao "], ["3564","227",120,"4 oz Banana liqueur "], ["3564","424",60,"2 oz Lemon juice "], ["3564","372",50,"1 2/3 oz Cranberry juice "], ["3564","375",10,"1/3 oz Amaretto "], ["3985","316",22.5,"3/4 oz Vodka (Stoli) "], ["3985","146",22.5,"3/4 oz Midori melon liqueur "], ["3985","211",3.7,"1 splash Sweet and sour "], ["3985","22",3.7,"1 splash 7-Up "], ["3139","142",30,"3 cl White rum "], ["3139","316",20,"2 cl Vodka "], ["3139","297",20,"2 cl Blue Curacao "], ["3139","375",10,"1 cl Amaretto "], ["3139","422",20,"2 cl Cream "], ["3139","261",20,"2 cl Pineapple juice "], ["4681","444",7.5,"1/4 oz Hot Damn "], ["4681","86",22.5,"Almost 3/4 oz Grape soda "], ["4681","513",7.4,"1-2 splash Maraschino cherry juice "], ["2428","265",15,"1/2 oz Kahlua "], ["2428","405",15,"1/2 oz Tequila Rose "], ["2428","315",15,"1/2 oz Grand Marnier "], ["2442","462",10,"1/3 oz Tequila "], ["2442","358",10,"1/3 oz Ouzo "], ["2442","265",10,"1/3 oz Kahlua "], ["4585","198",14.75,"1/2 shot Aftershock "], ["4585","361",14.75,"1/2 shot Chocolate liqueur "], ["4898","316",60,"2 oz Vodka "], ["4898","437",120,"4 oz Tang "], ["4898","238",60,"2 oz Aliz� "], ["3474","250",128.5,"1/2 cup Tea (Earl Grey or Yellow Label) "], ["3474","270",128.5,"1/2 cup Bailey's irish cream "], ["3474","252",3.7,"1 splash Whisky "], ["5652","376",45,"1 1/2 oz Gin "], ["5652","213",30,"1 oz Triple sec "], ["5652","106",0.9,"1 dash Bitters "], ["5652","297",5,"1 tsp Blue Curacao "], ["4063","231",30,"1 oz Apricot brandy "], ["4063","330",30,"1 oz Port "], ["888","462",45,"1 1/2 oz Tequila "], ["888","213",3.75,"1/8 oz Triple sec "], ["888","372",120,"4 oz Cranberry juice "], ["888","261",7.5,"1/4 oz Pineapple juice "], ["888","445",7.5,"1/4 oz Orange juice "], ["1612","424",30,"1 oz Lemon juice "], ["1612","294",7.5,"1/4 oz Lime juice cordial (Rose's) "], ["1612","462",60,"2 oz white Tequila "], ["3814","462",45,"1 1/2 oz Tequila "], ["3814","88",30,"1 oz Dry Vermouth "], ["3814","82",0.9,"1 dash Grenadine "], ["5825","462",45,"1 1/2 oz Tequila "], ["5825","213",15,"1/2 oz Triple sec "], ["5825","297",15,"1/2 oz Blue Curacao "], ["5825","445",60,"2 oz Orange juice "], ["5825","372",30,"1 oz Cranberry juice "], ["4444","462",30,"1 oz Tequila "], ["4444","199",15,"1/2 oz Mountain Dew "], ["2552","462",60,"2 oz Tequila "], ["2552","372",60,"2 oz Cranberry juice "], ["4431","462",30,"1 oz Tequila "], ["4431","142",30,"1 oz White rum "], ["4431","316",30,"1 oz Vodka "], ["4431","399",90,"3 oz Margarita mix "], ["4588","108",15,"1/2 oz J�germeister "], ["4588","342",15,"1/2 oz Southern Comfort "], ["5741","85",15,"1/2 oz Bacardi 151 proof rum "], ["5741","145",15,"1/2 oz Rumple Minze "], ["1233","444",40,"4 cl Hot Damn "], ["1233","344",40,"4 cl Dr. Pepper "], ["5599","316",30,"1 oz Vodka "], ["5599","146",30,"1 oz Midori melon liqueur "], ["5599","412",30,"1 oz Creme de Noyaux "], ["5599","372",3.7,"1 splash Cranberry juice "], ["3153","182",30,"1 oz Crown Royal "], ["3153","265",30,"1 oz Kahlua "], ["3153","270",30,"1 oz Bailey's irish cream "], ["4001","265",15,"1/2 oz Kahlua "], ["4001","480",15,"1/2 oz Irish cream "], ["4001","375",15,"1/2 oz Amaretto "], ["4001","85",15,"1/2 oz Bacardi 151 proof rum "], ["4001","422",30,"1 oz Cream "], ["1741","31",29.5,"1 shot Grain alcohol "], ["1741","82",0.9,"1 dash Grenadine syrup "], ["1741","316",29.5,"1 shot Vodka "], ["1741","304",29.5,"1 shot Rum "], ["1741","376",29.5,"1 shot Gin "], ["1741","462",29.5,"1 shot Tequila "], ["6076","462",10,"1 cl Tequila "], ["6076","376",10,"1 cl Gin (Bombay Sapphire) "], ["6076","316",10,"1 cl Vodka "], ["6076","297",0.9,"1 dash Blue Curacao (10 drops) "], ["892","232",45,"1 1/2 oz Wild Turkey "], ["892","423",15,"1/2 oz Applejack "], ["892","200",5,"1 tsp Rose's sweetened lime juice "], ["892","372",120,"4 oz Cranberry juice "], ["2680","214",22.5,"3/4 oz Light rum "], ["2680","192",22.5,"3/4 oz Brandy "], ["2680","448",22.5,"3/4 oz Apple brandy "], ["2680","170",1.25,"1/4 tsp Anis "], ["5190","54",15,"1/2 oz Chambord raspberry liqueur "], ["5190","375",15,"1/2 oz Amaretto "], ["5190","10",15,"1/2 oz Creme de Banane "], ["5190","316",15,"1/2 oz Vodka "], ["5190","261",90,"3 oz Pineapple juice "], ["5190","445",90,"3 oz Orange juice "], ["5190","372",90,"3 oz Cranberry juice "], ["5756","108",15,"1/2 oz J�germeister "], ["5756","145",15,"1/2 oz Rumple Minze "], ["5756","85",15,"1/2 oz Bacardi 151 proof rum "], ["4265","214",45,"1 1/2 oz Light rum "], ["4265","192",22.5,"3/4 oz Brandy "], ["4265","424",1.25,"1/4 tsp Lemon juice "], ["4265","82",5,"1 tsp Grenadine "], ["3354","122",10,"1/3 oz Jack Daniels "], ["3354","462",10,"1/3 oz Tequila "], ["3354","85",10,"1/3 oz 151 proof rum "], ["5453","108",45,"1 1/2 oz J�germeister "], ["5453","115",45,"1 1/2 oz Goldschlager "], ["5453","145",45,"1 1/2 oz Rumple Minze "], ["894","122",15,"1/2 oz Jack Daniels "], ["894","471",15,"1/2 oz Jim Beam "], ["894","263",15,"1/2 oz Johnnie Walker "], ["894","232",15,"1/2 oz Wild Turkey "], ["4326","122",29.5,"1 shot Jack Daniels "], ["4326","471",29.5,"1 shot Jim Beam "], ["4326","62",29.5,"1 shot Yukon Jack "], ["4326","232",29.5,"1 shot Wild Turkey "], ["4025","122",9.83,"1/3 shot Jack Daniels "], ["4025","471",9.83,"1/3 shot Jim Beam "], ["4025","263",9.83,"1/3 shot Johnnie Walker "], ["2152","108",20,"2/3 oz J�germeister "], ["2152","119",20,"2/3 oz Absolut Vodka "], ["2152","145",20,"2/3 oz Rumple Minze "], ["5457","108",9.83,"1/3 shot J�germeister "], ["5457","115",9.83,"1/3 shot Goldschlager "], ["5457","464",9.83,"1/3 shot Peppermint schnapps (Rumple Minze) "], ["5693","182",30,"1 oz Crown Royal "], ["5693","375",30,"1 oz Amaretto "], ["5693","261",30,"1 oz Pineapple juice "], ["4382","378",45,"1 1/2 oz Scotch "], ["4382","181",30,"1 oz Green Ginger Wine "], ["4382","445",30,"1 oz Orange juice "], ["5591","238",60,"2 oz Aliz� "], ["5591","316",60,"2 oz Skyy Vodka "], ["5069","145",15,"1/2 oz Rumple Minze "], ["5069","85",15,"1/2 oz Bacardi 151 proof rum "], ["2916","56",22.5,"3/4 oz Blended whiskey "], ["2916","192",22.5,"3/4 oz Brandy "], ["2916","376",22.5,"3/4 oz Gin "], ["1244","352",257,"1 cup Water "], ["1244","138",257,"3/4-1 cup Brown sugar "], ["1244","482",20,"4 tsp Coffee powder "], ["1244","304",257,"1 cup Rum (Bundy) "], ["1244","508",20,"4 tsp Vanilla extract "], ["898","342",30,"1 oz Southern Comfort "], ["898","375",30,"1 oz Amaretto "], ["898","316",30,"1 oz Vodka "], ["898","445",60,"2 oz Orange juice "], ["898","82",60,"2 oz Grenadine "], ["899","312",30,"1 oz Absolut Citron "], ["899","468",30,"1 oz Coconut rum (Parrot Bay) "], ["899","146",30,"1 oz Midori melon liqueur "], ["899","211",3.7,"1 splash Sweet and sour "], ["899","22",3.7,"1 splash 7-Up "], ["4921","387",30,"1 oz Dark rum "], ["4921","192",30,"1 oz Brandy "], ["4921","259",120,"4 oz Milk "], ["4921","477",10,"2 tsp Sugar "], ["3346","316",30,"1 oz Vodka "], ["3346","424",60,"2 oz Lemon juice "], ["3346","372",60,"2 oz Cranberry juice "], ["901","214",45,"1 1/2 oz Light rum "], ["901","462",45,"1 1/2 oz Tequila "], ["901","376",45,"1 1/2 oz Gin "], ["901","316",45,"1 1/2 oz Vodka "], ["901","31",45,"1 1/2 oz pure Grain alcohol "], ["901","412",45,"1 1/2 oz Creme de Noyaux "], ["902","383",22.5,"3/4 oz Sweet Vermouth "], ["902","42",22.5,"3/4 oz Irish whiskey "], ["902","68",22.5,"3/4 oz Green Chartreuse "], ["4499","316",37.5,"1 1/4 oz Vodka (Absolut) "], ["4499","359",7.5,"1/4 oz Cointreau "], ["4499","315",7.5,"1/4 oz Grand Marnier "], ["4499","200",3.7,"1 splash Rose's sweetened lime juice "], ["4499","266",3.7,"1 splash Sour mix "], ["1272","213",30,"1 oz Triple sec "], ["1272","462",15,"1/2 oz Tequila "], ["1272","335",15,"1/2 oz Spiced rum "], ["2870","378",45,"1 1/2 oz Scotch "], ["2870","88",30,"1 oz Dry Vermouth "], ["2870","261",45,"1 1/2 oz Pineapple juice "], ["5536","462",15,"1/2 oz Tequila "], ["5536","375",15,"1/2 oz Amaretto "], ["5536","186",3.7,"1 splash Lime juice "], ["3114","182",29.5,"1 shot Crown Royal "], ["3114","375",29.5,"1 shot Amaretto "], ["3114","211",29.5,"1 shot Sweet and sour "], ["3114","22",3.7,"1 splash 7-Up "], ["1532","375",60,"2 oz Amaretto "], ["1532","265",60,"2 oz Kahlua "], ["1532","41",60,"2 oz Light cream "], ["5261","316",30,"1 oz Vodka "], ["5261","376",30,"1 oz Gin "], ["5261","304",30,"1 oz Rum "], ["5261","462",30,"1 oz Tequila "], ["5261","123",60,"2 oz Kiwi liqueur "], ["1722","316",40,"4 cl Vodka (Absolut) "], ["1722","418",20,"2 cl Collins mix "], ["1722","323",80,"8 cl Sprite light "], ["1780","270",30,"1 oz Bailey's irish cream "], ["1780","192",15,"1/2 oz Brandy "], ["1780","155",90,"3 oz Heavy cream "], ["2791","265",60,"2 oz Kahlua "], ["2791","445",90,"3 oz Orange juice "], ["2311","215",10,"1/3 oz Tia maria "], ["2311","487",10,"1/3 oz Dark Creme de Cacao "], ["2311","167",10,"1/3 oz Frangelico "], ["4742","359",15,"1/2 oz Cointreau "], ["4742","315",15,"1/2 oz Grand Marnier "], ["4742","211",75,"2 1/2 oz Sweet and sour "], ["4742","186",30,"1 oz Lime juice "], ["4742","462",45,"1 1/2 oz Tequila "], ["4855","297",15,"1/2 oz Blue Curacao "], ["4855","270",15,"1/2 oz Bailey's irish cream "], ["4359","214",45,"1 1/2 oz Light rum "], ["4359","85",5,"1 tsp 151 proof rum "], ["4359","431",15,"1/2 oz Coffee brandy "], ["4359","422",7.5,"1 1/2 tsp Cream "], ["913","146",22.5,"3/4 oz Midori melon liqueur "], ["913","202",30,"1 oz Gold tequila "], ["913","266",3.7,"1 splash Sour mix "], ["913","445",60,"2 oz Orange juice "], ["913","368",15,"1/2 oz Sloe gin "], ["5912","82",9.83,"1/3 shot Grenadine "], ["5912","479",9.83,"1/3 shot Galliano "], ["5912","146",9.83,"1/3 shot Midori melon liqueur "], ["4728","316",30,"1 oz Vodka "], ["4728","213",30,"1 oz Triple sec "], ["4728","146",30,"1 oz Midori melon liqueur "], ["4728","2",180,"6 oz Lemonade "], ["1445","108",15,"1/2 oz J�germeister "], ["1445","115",15,"1/2 oz Goldschlager "], ["1445","82",7.5,"1/4 oz Grenadine "], ["1623","88",22.5,"3/4 oz Dry Vermouth "], ["1623","383",22.5,"3/4 oz Sweet Vermouth "], ["1623","376",22.5,"3/4 oz Gin "], ["2928","316",9.83,"1/3 shot Vodka (Absolut) "], ["2928","108",14.75,"1/2 shot J�germeister "], ["2928","115",14.75,"1/2 shot Goldschlager "], ["4886","316",30,"1 oz Vodka "], ["4886","462",30,"1 oz Tequila "], ["4886","62",30,"1 oz Yukon Jack "], ["4886","372",60,"2 oz Cranberry juice "], ["4886","445",60,"2 oz Orange juice "], ["4886","261",60,"2 oz Pineapple juice "], ["4543","88",22.5,"3/4 oz Dry Vermouth "], ["4543","333",22.5,"3/4 oz white Creme de Cacao "], ["4543","176",22.5,"3/4 oz Maraschino liqueur "], ["4543","106",0.9,"1 dash Bitters "], ["4259","54",15,"1/2 oz Chambord raspberry liqueur "], ["4259","22",10,"1/3 oz 7-Up or Sprite "], ["4259","312",10,"1/3 oz Absolut Citron "], ["4259","251",10,"1/3 oz Watermelon schnapps "], ["917","376",20,"2 cl Gin "], ["917","421",20,"2 cl Cinzano Orancio "], ["917","36",0.9,"1 dash Malibu rum "], ["1149","142",20,"2 cl White rum "], ["1149","387",20,"2 cl Dark rum "], ["1149","316",20,"2 cl Vodka "], ["1149","315",20,"2 cl Grand Marnier "], ["1149","424",10,"1 cl Lemon juice "], ["1149","127",120,"12 cl Mango juice "], ["3043","146",22.5,"3/4 oz Midori melon liqueur "], ["3043","36",22.5,"3/4 oz Malibu rum "], ["3043","312",15,"1/2 oz Absolut Citron "], ["3043","261",60,"2 oz Pineapple juice "], ["3043","266",30,"1 oz Sour mix "], ["3043","22",3.7,"1 splash 7-Up "], ["919","270",15,"1/2 oz Bailey's irish cream "], ["919","114",22.5,"3/4 oz Butterscotch schnapps "], ["919","36",22.5,"3/4 oz Malibu rum "], ["919","261",22.5,"3/4 oz Pineapple juice "], ["3787","375",60,"2 oz Amaretto "], ["3787","36",60,"2 oz Malibu rum "], ["5017","239",60,"2 oz Pear liqueur "], ["5017","97",30,"1 oz RedRum "], ["5017","448",15,"1/2 oz Apple brandy "], ["5017","227",15,"1/2 oz Banana liqueur "], ["5017","22",120,"4 oz 7-Up "], ["3971","36",60,"2 oz Malibu rum "], ["3971","194",60,"2 oz Peach Vodka "], ["3971","83",60,"2 oz Ginger ale "], ["5974","387",30,"1 oz Dark rum "], ["5974","375",15,"1/2 oz Amaretto "], ["5974","404",120,"4 oz Grapefruit juice "], ["1728","82",20,"2 cl Grenadine syrup "], ["1728","110",20,"2 cl Mint syrup "], ["1728","259",100,"10 cl cold Milk "], ["3248","227",14.75,"1/2 shot Banana liqueur "], ["3248","468",14.75,"1/2 shot Coconut rum (Parrot bay, Malibu) "], ["3248","435",3.7,"1 splash Orange vodka (Stoli Ohranj) "], ["3248","488",3.7,"1 splash Raspberry vodka (Stoli Razberi) "], ["3248","372",14.75,"1/2 shot Cranberry juice "], ["3248","443",3.7,"1 splash Soda water "], ["3248","261",44.25,"1 1/2 shot Pineapple juice "], ["4336","122",30,"1 oz Jack Daniels "], ["4336","375",30,"1 oz Amaretto "], ["4336","368",30,"1 oz Sloe gin "], ["4336","342",30,"1 oz Southern Comfort "], ["4336","445",30,"1 oz Orange juice "], ["5501","139",30,"1 oz Tuaca "], ["5501","167",30,"1 oz Frangelico "], ["5501","265",30,"1 oz Kahlua "], ["5501","422",60,"2 oz Cream "], ["4966","375",15,"1/2 oz Amaretto "], ["4966","272",15,"1/2 oz Razzmatazz "], ["4966","259",15,"1/2 oz Milk "], ["3182","479",30,"1 oz Galliano "], ["3182","475",15,"1/2 oz Sambuca "], ["3182","232",15,"1/2 oz Wild Turkey "], ["1574","375",30,"1 oz Amaretto "], ["1574","333",30,"1 oz white Creme de Cacao "], ["1574","422",60,"2 oz Cream "], ["1574","427",60,"2 oz Ice "], ["921","36",30,"1 oz Malibu rum "], ["921","362",15,"1/2 oz Pi�a Colada "], ["921","157",15,"1/2 oz Passoa "], ["921","425",15,"1/2 oz Pisang Ambon "], ["921","261",90,"3 oz Pineapple juice "], ["6010","270",45,"1 1/2 oz Bailey's irish cream "], ["6010","265",45,"1 1/2 oz Kahlua "], ["6010","439",180,"6 oz Root beer "], ["1245","232",30,"1 oz Wild Turkey "], ["1245","375",22.5,"3/4 oz Amaretto "], ["1245","261",3.7,"1 splash Pineapple juice "], ["2441","309",20,"2 cl Peach schnapps "], ["2441","270",10,"1 cl Bailey's irish cream "], ["1041","214",45,"1 1/2 oz Light rum "], ["1041","186",30,"1 oz Lime juice "], ["1041","479",15,"1/2 oz Galliano "], ["1041","315",15,"1/2 oz Grand Marnier "], ["4774","214",15,"1/2 oz Light rum (Bacardi) "], ["4774","335",15,"1/2 oz Spiced rum (Bacardi) "], ["4774","175",0.9,"1 dash Coca-Cola "], ["4774","200",0.9,"1 dash Rose's sweetened lime juice "], ["2455","54",22.5,"3/4 oz Chambord raspberry liqueur "], ["2455","375",30,"1 oz Amaretto "], ["2455","22",30,"1 oz 7-Up "], ["4135","316",10,"1/3 oz Vodka "], ["4135","445",30,"1 oz Orange juice "], ["4135","291",30,"1 oz Cherry juice "], ["923","376",45,"1 1/2 oz Gin "], ["923","170",1.25,"1/4 tsp Anis "], ["923","213",22.5,"3/4 oz Triple sec "], ["1889","146",30,"1 oz Midori melon liqueur "], ["1889","36",22.5,"3/4 oz Malibu rum "], ["1889","227",22.5,"3/4 oz Banana liqueur "], ["1889","211",30,"1 oz Sweet and sour "], ["1889","261",30,"1 oz Pineapple juice "], ["4767","462",90,"3 oz Tequila "], ["4767","297",30,"1 oz Blue Curacao "], ["4767","186",60,"2 oz Lime juice "], ["4767","427",257,"1 cup Ice "], ["3391","379",60,"2 oz Tomato juice "], ["3391","392",180,"6 oz Beer "], ["2169","376",7.38,"1/4 shot Gin "], ["2169","316",7.38,"1/4 shot Vodka "], ["2169","213",7.38,"1/4 shot Triple sec "], ["2169","186",7.38,"1/4 shot Lime juice "], ["5013","316",60,"6 cl Vodka (Absolut) "], ["5013","265",60,"6 cl Kahlua "], ["5013","270",60,"6 cl Bailey's irish cream "], ["5013","315",60,"6 cl Grand Marnier "], ["5013","381",60,"6 cl Drambuie "], ["2805","365",30,"1 oz Absolut Kurant "], ["2805","297",45,"1 1/2 oz Blue Curacao "], ["2805","261",30,"1 oz Pineapple juice "], ["2805","54",15,"1/2 oz Chambord raspberry liqueur "], ["924","365",30,"1 oz Absolut Kurant "], ["924","297",15,"1/2 oz Blue Curacao "], ["924","266",15,"1/2 oz Sour mix "], ["924","357",7.5,"1/4 oz Sugar syrup "], ["924","323",3.7,"1 splash Sprite "], ["924","54",7.5,"1/4 oz Chambord raspberry liqueur "], ["2671","297",14.75,"1/2 shot Blue Curacao "], ["2671","221",14.75,"1/2 shot Raspberry schnapps "], ["925","198",10,"1/3 oz Aftershock "], ["925","464",10,"1/3 oz Avalanche Peppermint schnapps "], ["925","145",10,"1/3 oz Rumple Minze "], ["4096","376",45,"1 1/2 oz Gin "], ["4096","368",22.5,"3/4 oz Sloe gin "], ["4096","82",2.5,"1/2 tsp Grenadine "], ["4308","42",40,"4 cl Irish whiskey "], ["4308","204",40,"4 cl Espresso "], ["4308","482",40,"4 cl Coffee "], ["4308","138",20,"4 tsp Brown sugar "], ["3242","376",60,"2 oz Gin "], ["3242","186",30,"1 oz Lime juice "], ["3242","130",90,"3 oz Club soda "], ["926","479",15,"1/2 oz Galliano "], ["926","475",15,"1/2 oz Sambuca "], ["4158","316",30,"1 oz Stoli Vodka "], ["4158","309",150,"1.5 oz Peach schnapps "], ["1821","316",15,"1/2 oz Vodka "], ["1821","54",10,"1/3 oz Chambord raspberry liqueur "], ["1821","224",10,"1/3 oz Godiva liqueur "], ["1821","265",10,"1/3 oz Kahlua "], ["5814","54",30,"1 oz Chambord raspberry liqueur "], ["5814","316",30,"1 oz Vodka "], ["5814","372",30,"1 oz Cranberry juice "], ["4085","214",90,"3 oz Light rum "], ["4085","284",30,"1 oz Maple syrup "], ["4085","424",30,"1 oz Lemon juice "], ["2345","378",45,"1 1/2 oz Scotch "], ["2345","114",30,"1 oz Butterscotch schnapps "], ["2765","304",60,"2 oz Rum "], ["2765","284",60,"2 oz Maple syrup "], ["2765","352",60,"2 oz Water "], ["6033","330",60,"2 oz Port "], ["6033","315",30,"1 oz Grand Marnier "], ["6033","213",15,"1/2 oz Triple sec "], ["5822","376",90,"3 oz dry Gin (Gordon's) "], ["5822","316",30,"1 oz Vodka "], ["5822","33",15,"1/2 oz Kina Lillet "], ["3390","387",60,"2 oz Dark rum "], ["3390","179",15,"1/2 oz Cherry brandy "], ["4375","15",10,"1/3 oz Green Creme de Menthe "], ["4375","333",10,"1/3 oz white Creme de Cacao "], ["4375","270",15,"1/2 oz Bailey's irish cream "], ["4375","375",15,"1/2 oz Amaretto "], ["5178","214",45,"1 1/2 oz Light rum "], ["5178","342",15,"1/2 oz Southern Comfort "], ["5178","213",15,"1/2 oz Triple sec "], ["5178","424",30,"1 oz Lemon juice "], ["5178","106",0.9,"1 dash Bitters "], ["4153","161",360,"12 oz Iced tea, lemon flavor (Nestea) "], ["4153","36",150,"4.5 oz Malibu rum "], ["1901","376",45,"1 1/2 oz Gin "], ["1901","383",15,"1/2 oz Sweet Vermouth "], ["1901","192",15,"1/2 oz Brandy "], ["6099","372",64.25,"1/4 cup Cranberry juice "], ["6099","445",64.25,"1/4 cup Orange juice "], ["6099","513",2.5,"1/2 tsp Maraschino cherry juice "], ["6099","424",1.25,"1/4 tsp Lemon juice "], ["6099","433",1.8,"1-2 dash Orange bitters "], ["930","249",90,"3 oz Bourbon "], ["930","261",30,"1 oz Pineapple juice "], ["930","445",30,"1 oz Orange juice "], ["933","316",40,"4 cl Vodka "], ["933","265",20,"2 cl Kahlua "], ["933","259",140,"14 cl Milk "], ["3945","15",22.5,"3/4 oz Green Creme de Menthe "], ["3945","333",22.5,"3/4 oz white Creme de Cacao "], ["3945","316",22.5,"3/4 oz Vodka "], ["935","294",30,"1 oz Lime juice cordial "], ["935","316",45,"1 1/2 oz Vodka "], ["935","236",5,"1 tsp Powdered sugar "], ["4394","404",150,"5 oz Grapefruit juice "], ["4394","316",45,"1 1/2 oz Vodka "], ["4394","51",1.25,"1/4 tsp Salt "], ["5344","205",30,"1 oz White Creme de Menthe "], ["5344","316",30,"1 oz Vodka "], ["3828","316",30,"1 oz Vodka "], ["3828","445",150,"5 oz Orange juice "], ["3828","82",29.5,"1 shot Grenadine "], ["5860","359",10,"1 cl Cointreau "], ["5860","315",10,"1 cl Grand Marnier "], ["5860","316",10,"1 cl Vodka "], ["5860","3",10,"1 cl Cognac "], ["5860","231",10,"1 cl Apricot brandy "], ["5495","213",30,"1 oz Triple sec "], ["5495","3",30,"1 oz Cognac "], ["5495","424",15,"1/2 oz Lemon juice "], ["1456","23",30,"1 oz Orange rum (Cruzan) "], ["1456","495",30,"1 oz Banana rum (Cruzan) "], ["1456","468",30,"1 oz Coconut rum (Cruzan) "], ["1456","300",30,"1 oz Pineapple rum (Cruzan) "], ["1456","372",45,"1 1/2 oz Cranberry juice "], ["1456","445",45,"1 1/2 oz Orange juice "], ["1456","261",45,"1 1/2 oz Pineapple juice "], ["1456","387",15,"1/2 oz Dark rum (Cruzan) "], ["2338","36",30,"1 oz Malibu rum "], ["2338","265",30,"1 oz Kahlua "], ["2338","114",30,"1 oz Butterscotch schnapps "], ["2338","259",60,"2 oz Milk "], ["4238","358",15,"1/2 oz Ouzo "], ["4238","85",15,"1/2 oz 151 proof rum "], ["3546","85",29.5,"1 shot 151 proof rum "], ["3546","375",29.5,"1 shot Amaretto "], ["1871","304",29.5,"1 shot Rum "], ["1871","21",29.5,"1 shot Whiskey "], ["1871","344",360,"12 oz Dr. Pepper "], ["5363","376",45,"1 1/2 oz Gin "], ["5363","88",45,"1 1/2 oz Dry Vermouth "], ["5363","213",5,"1 tsp Triple sec "], ["5320","213",10,"1/3 oz Triple sec "], ["5320","342",10,"1/3 oz Southern Comfort "], ["5320","179",10,"1/3 oz Cherry brandy "], ["3773","316",45,"1 1/2 oz Vodka "], ["3773","88",15,"1/2 oz Dry Vermouth "], ["3773","174",15,"1/2 oz Blackberry brandy "], ["3773","424",5,"1 tsp Lemon juice "], ["1151","115",15,"1/2 oz Goldschlager "], ["1151","462",15,"1/2 oz Tequila "], ["1151","122",15,"1/2 oz Jack Daniels "], ["1150","182",30,"1 oz Crown Royal "], ["1150","514",30,"1 oz Sour apple liqueur "], ["1150","372",30,"1 oz Cranberry juice "], ["5245","182",30,"1 oz Crown Royal "], ["5245","40",30,"1 oz Sour Apple Pucker "], ["5245","372",3.7,"1 splash Cranberry juice "], ["3969","182",15,"1/2 oz Crown Royal "], ["3969","309",15,"1/2 oz Peach schnapps "], ["3969","211",15,"1/2 oz Sweet and sour "], ["4519","342",45,"1 1/2 oz Southern Comfort "], ["4519","375",15,"1/2 oz Amaretto "], ["4519","261",3.7,"1 splash Pineapple juice "], ["4416","342",15,"1/2 oz Southern Comfort "], ["4416","375",15,"1/2 oz Amaretto "], ["4416","412",15,"1/2 oz Creme de Noyaux "], ["4416","211",15,"1/2 oz Sweet and sour "], ["5524","82",15,"1/2 oz Grenadine "], ["5524","304",15,"1/2 oz Rum "], ["5524","376",15,"1/2 oz Gin "], ["5524","213",15,"1/2 oz Triple sec "], ["5524","316",15,"1/2 oz Vodka "], ["5524","445",120,"4 oz Orange juice "], ["5524","372",120,"4 oz Cranberry juice "], ["5524","146",30,"1 oz Midori melon liqueur "], ["4120","342",60,"2 oz Southern Comfort "], ["4120","261",60,"2 oz Pineapple juice "], ["4120","372",30,"1 oz Cranberry juice "], ["4120","211",7.5,"1/4 oz Sweet and sour "], ["5594","115",30,"1 oz Goldschlager "], ["5594","145",30,"1 oz Rumple Minze "], ["5594","85",30,"1 oz Bacardi 151 proof rum "], ["5594","108",30,"1 oz J�germeister "], ["944","108",30,"1 oz J�germeister "], ["944","475",15,"1/2 oz Sambuca "], ["1461","269",30,"1 oz Strawberry liqueur "], ["1461","316",30,"1 oz Vodka "], ["1461","211",30,"1 oz Sweet and sour "], ["1461","445",30,"1 oz Orange juice "], ["3088","28",22.5,"3/4 oz Dubonnet Rouge "], ["3088","376",22.5,"3/4 oz Gin "], ["3088","179",7.5,"1 1/2 tsp Cherry brandy "], ["3088","445",7.5,"1 1/2 tsp Orange juice "], ["5608","316",30,"3 cl Vodka "], ["5608","479",30,"3 cl Galliano "], ["5608","327",15,"1 1/2 cl Campari "], ["5608","445",120,"12 cl Orange juice "], ["945","173",15,"1/2 oz Canadian whisky (Crown Royal) "], ["945","309",15,"1/2 oz Peach schnapps "], ["945","211",7.5,"1/4 oz Sweet and sour mix "], ["945","449",7.5,"1/4 oz Apple schnapps "], ["947","376",45,"1 1/2 oz Gin "], ["947","88",22.5,"3/4 oz Dry Vermouth "], ["947","231",1.25,"1/4 tsp Apricot brandy "], ["947","448",2.5,"1/2 tsp Apple brandy "], ["946","231",15,"1/2 oz Apricot brandy "], ["946","88",15,"1/2 oz Dry Vermouth "], ["946","376",30,"1 oz Gin "], ["946","424",1.25,"1/4 tsp Lemon juice "], ["2577","333",20,"2/3 oz Creme de Cacao "], ["2577","475",20,"2/3 oz Sambuca "], ["2577","480",20,"2/3 oz Irish cream (Bailey's) "], ["1742","265",15,"1/2 oz Kahlua "], ["1742","462",15,"1/2 oz Tequila "], ["5845","213",30,"1 oz Triple sec "], ["5845","270",30,"1 oz Bailey's irish cream "], ["5845","54",30,"1 oz Chambord raspberry liqueur "], ["2100","375",15,"1/2 oz Amaretto "], ["2100","297",7.5,"1/4 oz Blue Curacao "], ["2100","10",7.5,"1/4 oz Creme de Banane "], ["2100","211",7.5,"1/4 oz Sweet and sour "], ["2100","261",3.7,"1 splash Pineapple juice "], ["2100","54",7.5,"1/4 oz Chambord raspberry liqueur "], ["3689","54",30,"1 oz Chambord raspberry liqueur "], ["3689","480",60,"2 oz Irish cream "], ["3689","259",180,"6 oz Milk "], ["2862","383",15,"1/2 oz Sweet Vermouth "], ["2862","88",15,"1/2 oz Dry Vermouth "], ["2862","192",45,"1 1/2 oz Brandy "], ["2862","213",5,"1 tsp Triple sec "], ["2862","170",1.25,"1/4 tsp Anis "], ["1657","88",30,"1 oz Dry Vermouth "], ["1657","376",30,"1 oz Gin "], ["1657","231",30,"1 oz Apricot brandy "], ["1657","424",0.9,"1 dash Lemon juice "], ["953","21",150,"1.5 oz Whiskey "], ["953","383",150,"1.5 oz Sweet Vermouth "], ["2071","378",45,"1 1/2 oz Scotch "], ["2071","181",30,"1 oz Green Ginger Wine "], ["3795","173",45,"1 1/2 oz Canadian whisky (Canadian Club) "], ["3795","408",45,"1 1/2 oz Vermouth "], ["3942","490",60,"2 oz Citrus vodka "], ["3942","507",120,"4 oz White cranberry juice (Ocean Spray) "], ["3942","186",30,"1 oz fresh Lime juice "], ["3942","357",30,"1 oz Sugar syrup "], ["5775","215",30,"1 oz Tia maria "], ["5775","270",30,"1 oz Bailey's irish cream "], ["5775","316",30,"1 oz Vodka (Stolichnaya) "], ["2134","475",15,"1/2 oz Sambuca "], ["2134","333",15,"1/2 oz white Creme de Cacao "], ["2134","422",60,"2 oz Cream "], ["4311","214",22.5,"3/4 oz Light rum "], ["4311","376",22.5,"3/4 oz Gin "], ["4311","213",22.5,"3/4 oz Triple sec "], ["4311","124",1.25,"1/4 tsp Anisette "], ["2380","316",44.5,"1 jigger Vodka "], ["2380","333",30,"1 oz white Creme de Cacao "], ["2380","422",30,"1 oz Cream or milk "], ["5084","266",30,"1 oz Sour mix "], ["5084","376",30,"1 oz Gin "], ["5084","359",15,"1/2 oz Cointreau (or triple sec) "], ["958","316",30,"1 oz Vodka "], ["958","205",30,"1 oz White Creme de Menthe "], ["2694","475",22.5,"3/4 oz Sambuca "], ["2694","405",7.5,"1/4 oz Tequila Rose "], ["3145","139",22.5,"3/4 oz Tuaca "], ["3145","480",22.5,"3/4 oz Irish cream "], ["5622","376",45,"1 1/2 oz Gin "], ["5622","205",22.5,"3/4 oz White Creme de Menthe "], ["959","316",60,"2 oz Vodka "], ["959","462",30,"1 oz Tequila "], ["959","445",180,"6 oz Orange juice "], ["959","82",0.9,"1 dash Grenadine "], ["961","231",30,"1 oz Apricot brandy "], ["961","376",30,"1 oz Gin "], ["961","88",15,"1/2 oz Dry Vermouth "], ["961","424",0.9,"1 dash Lemon juice "], ["5492","378",60,"2 oz Scotch "], ["5492","487",15,"1/2 oz Dark Creme de Cacao "], ["5492","259",120,"4 oz Milk "], ["4723","316",30,"1 oz Cinnamon Vodka (Stoli) "], ["4723","375",30,"1 oz Amaretto "], ["4723","265",30,"1 oz Kahlua "], ["4723","270",30,"1 oz Bailey's irish cream "], ["4723","422",30,"1 oz Cream "], ["962","192",30,"1 oz Brandy "], ["962","207",15,"1/2 oz Yellow Chartreuse "], ["962","351",15,"1/2 oz Benedictine "], ["962","106",0.9,"1 dash Bitters "], ["4803","232",15,"1/2 oz Wild Turkey "], ["4803","464",15,"1/2 oz Peppermint schnapps "], ["3593","122",45,"1 1/2 oz Jack Daniels "], ["3593","309",30,"1 oz Peach schnapps "], ["3593","372",60,"2 oz Cranberry juice "], ["2018","316",45,"1 1/2 oz Vodka (Smirnoff) "], ["2018","468",15,"1/2 oz Coconut rum (Parrot Bay) "], ["2018","261",45,"1 1/2 oz Pineapple juice "], ["2018","372",45,"1 1/2 oz Cranberry juice "], ["2018","445",45,"1 1/2 oz Orange juice "], ["1998","462",45,"1 1/2 oz Tequila "], ["1998","372",30,"1 oz Cranberry juice "], ["1998","130",30,"1 oz Club soda "], ["1998","186",15,"1/2 oz Lime juice "], ["4258","387",22.5,"3/4 oz Dark rum "], ["4258","227",22.5,"3/4 oz Banana liqueur "], ["4258","174",22.5,"3/4 oz Blackberry brandy "], ["4258","261",60,"2 oz Pineapple juice "], ["4258","372",60,"2 oz Cranberry juice "], ["4505","316",75,"2 1/2 oz Vodka (Absolut or Stoli) "], ["4505","213",15,"1/2 oz Triple sec "], ["4505","297",15,"1/2 oz Blue Curacao "], ["4173","316",30,"3 cl Vodka "], ["4173","297",10,"1 cl Blue Curacao "], ["4173","82",10,"1 cl Grenadine "], ["965","376",45,"1 1/2 oz Gin (Beefeater) "], ["965","137",300,"Add 10 oz Grapefruit-lemon soda (Wink) "], ["3328","316",45,"1 1/2 oz Vodka "], ["3328","372",45,"1 1/2 oz Cranberry juice "], ["3328","399",45,"1 1/2 oz strawberry Margarita mix "], ["968","207",60,"2 oz Yellow Chartreuse "], ["968","297",45,"1 1/2 oz Blue Curacao "], ["968","192",15,"1/2 oz Brandy, spiced "], ["968","129",1.25,"1/4 tsp ground Cloves "], ["968","20",0.9,"1 dash Nutmeg "], ["968","336",0.9,"1 dash Allspice "], ["2669","146",60,"2 oz Midori melon liqueur "], ["2669","309",60,"2 oz Peach schnapps "], ["2669","445",90,"3 oz Orange juice "], ["2669","261",30,"1 oz Pineapple juice "], ["2669","372",60,"2 oz Cranberry juice "], ["4922","309",30,"1 oz Peach schnapps "], ["4922","316",30,"1 oz Vodka "], ["4922","468",30,"1 oz Coconut rum "], ["4922","372",90,"3 oz Cranberry juice "], ["3166","309",45,"1 1/2 oz Peach schnapps "], ["3166","316",45,"1 1/2 oz Vodka "], ["3166","372",105,"3 1/2 oz Cranberry juice "], ["972","114",15,"1-1/2 oz Butterscotch schnapps "], ["972","422",15,"1/2 oz Cream "], ["975","179",22.5,"3/4 oz Cherry brandy "], ["975","376",22.5,"3/4 oz Gin "], ["975","207",22.5,"3/4 oz Yellow Chartreuse "], ["2404","368",29.5,"1 shot Sloe gin "], ["2404","445",120,"4 oz Orange juice "], ["2404","328",60,"2 oz strawberry Daiquiri mix "], ["3708","214",45,"1 1/2 oz Light rum "], ["3708","359",22.5,"3/4 oz Cointreau "], ["3708","424",22.5,"3/4 oz Lemon juice "], ["978","105",60,"2 oz dry Sherry "], ["978","433",0.9,"1 dash Orange bitters "], ["1723","375",22.5,"3/4 oz Amaretto "], ["1723","117",22.5,"3/4 oz Wildberry schnapps "], ["1723","266",3.7,"1 splash Sour mix "], ["1723","175",3.7,"1 splash Coca-Cola "], ["980","119",30,"1 oz Absolut Vodka "], ["980","146",30,"1 oz Midori melon liqueur "], ["980","54",30,"1 oz Chambord raspberry liqueur "], ["5841","88",15,"1/2 oz Dry Vermouth "], ["5841","376",45,"1 1/2 oz Gin "], ["5841","297",5,"1 tsp Blue Curacao "], ["5841","106",0.9,"1 dash Bitters "], ["4846","391",10,"1/3 oz Vanilla vodka (Stoli) "], ["4846","213",10,"1/3 oz Triple sec "], ["4846","261",10,"1/3 oz Pineapple juice "], ["6209","85",30,"1 oz Bacardi 151 proof rum "], ["6209","479",150,"0.5 oz Galliano "], ["6209","316",150,"0.5 oz Vodka "], ["6209","266",120,"4 oz Sour mix "], ["4843","316",30,"1 oz Vodka or light rum "], ["4843","10",30,"1 oz Creme de Banane "], ["4843","323",180,"6 oz Sprite or 7-up "], ["2589","465",15,"1/2 oz White chocolate liqueur (Godet) "], ["2589","240",15,"1/2 oz Coffee liqueur (Kahlua) "], ["983","207",22.5,"3/4 oz Yellow Chartreuse "], ["983","231",22.5,"3/4 oz Apricot brandy "], ["983","124",7.5,"1/4 oz Anisette "], ["985","62",60,"2 oz Yukon Jack "], ["985","115",7.5,"1/4 oz Goldschlager "], ["3484","108",15,"1/2 oz J�germeister "], ["3484","439",15,"1/2 oz Root beer "], ["986","480",30,"1 oz Irish cream "], ["986","265",30,"1 oz Kahlua "], ["986","479",30,"1 oz Galliano "], ["986","61",30,"1 oz Vanilla liqueur "], ["986","126",0.9,"1 dash Half-and-half "], ["4751","376",45,"1 1/2 oz Gin "], ["4751","28",45,"1 1/2 oz Dubonnet Rouge "], ["4751","366",0.9,"1 dash Angostura bitters "], ["5514","408",40,"4 cl Vermouth "], ["5514","461",160,"16 cl Apple juice "], ["4438","146",150,"1.5 oz Midori melon liqueur "], ["4438","339",360,"12 oz Zima "], ["4983","339",360,"12 oz Zima "], ["4983","54",90,"3 oz Chambord raspberry liqueur "], ["2785","375",60,"2 oz Amaretto "], ["2785","339",360,"12 oz Zima "], ["4521","462",15,"1/2 oz Tequila "], ["4521","315",7.5,"1/4 oz Grand Marnier "], ["4521","422",7.5,"1/4 oz Cream "], ["988","375",60,"2 oz Amaretto "], ["988","304",60,"2 oz Rum "], ["988","32",120,"4 oz Grape Kool-Aid "], ["1599","214",30,"1 oz Light rum "], ["1599","469",15,"1/2 oz Creme de Almond "], ["1599","211",45,"1 1/2 oz Sweet and sour "], ["1599","213",15,"1/2 oz Triple sec "], ["1599","445",45,"1 1/2 oz Orange juice "], ["1599","85",15,"1/2 oz 151 proof rum "], ["3791","214",30,"1 oz Light rum "], ["3791","412",15,"1/2 oz Creme de Noyaux "], ["3791","213",15,"1/2 oz Triple sec "], ["3791","266",45,"1 1/2 oz Sour mix "], ["3791","445",45,"1 1/2 oz Orange juice "], ["3791","85",15,"1/2 oz 151 proof rum "], ["2625","375",15,"1/2 oz Amaretto "], ["2625","240",15,"1/2 oz Coffee liqueur "], ["2625","480",15,"1/2 oz Irish cream "], ["2625","227",15,"1/2 oz Banana liqueur "], ["2625","422",30,"1 oz Cream "], ["2131","424",40,"4 cl Lemon juice "], ["2131","82",0.9,"1 dash Grenadine "], ["2131","445",20,"2 cl Orange juice "], ["2131","116",20,"2 cl Cherry Heering "], ["2131","142",20,"2 cl White rum (Bacardi) "], ["2131","319",60,"6 cl Bacardi Black rum "], ["2131","85",20,"2 cl 151 proof rum "], ["2364","309",30,"1 oz Peach schnapps "], ["2364","119",30,"1 oz Absolut Vodka "], ["2364","375",30,"1 oz Amaretto "], ["3826","357",10,"Layer 1/3 oz Sugar syrup "], ["3826","82",10,"1/3 oz Grenadine "], ["3826","265",10,"1/3 oz Kahlua "], ["3826","146",10,"1/3 oz Midori melon liqueur "], ["3826","479",10,"1/3 oz Galliano "], ["3826","270",10,"1/3 oz Bailey's irish cream "], ["2637","316",37.5,"1 1/4 oz Stoli Vodka "], ["2637","358",7.5,"1/4 oz Ouzo "], ["3715","475",20,"2 cl Sambuca "], ["3715","270",20,"2 cl Bailey's irish cream "], ["3715","205",20,"2 cl White Creme de Menthe "], ["2514","62",60,"2 oz Yukon Jack liqueur "], ["2514","186",0.9,"1 dash Lime juice "], ["4472","342",45,"1 1/2 oz Southern Comfort "], ["4472","211",60,"2 oz Sweet and sour "], ["4472","424",3.7,"1 splash Lemon juice "], ["1249","68",26.5,"1 measure Green Chartreuse "], ["1249","131",0.9,"1 dash Tabasco sauce "], ["2688","266",30,"1 oz Sour mix "], ["2688","316",30,"1 oz Vodka "], ["2688","309",22.5,"3/4 oz Peach schnapps "], ["2688","372",120,"4 oz Cranberry juice "], ["2688","445",3.7,"1 splash Orange juice "], ["2688","261",3.7,"1 splash Pineapple juice "], ["1638","342",15,"1/2 oz Southern Comfort "], ["1638","243",15,"1/2 oz Blueberry schnapps "], ["1358","376",45,"1 1/2 oz Gin "], ["1358","404",30,"1 oz Grapefruit juice "], ["1358","176",0.9,"1 dash Maraschino liqueur "], ["3053","342",37.5,"1 1/4 oz Southern Comfort "], ["3053","213",22.5,"3/4 oz Triple sec "], ["3053","186",30,"1 oz Lime juice "], ["4732","122",60,"2 oz Jack Daniels "], ["4732","342",60,"2 oz Southern Comfort "], ["4732","232",60,"2 oz Wild Turkey "], ["4732","175",90,"3 oz Coca-Cola "], ["4732","22",90,"3 oz 7-Up "], ["991","342",30,"1 oz Southern Comfort "], ["991","266",60,"2 oz Sour mix "], ["1956","342",30,"1 oz Southern Comfort "], ["1956","309",15,"1/2 oz Peach schnapps "], ["1799","342",15,"1/2 oz Southern Comfort "], ["1799","122",15,"1/2 oz Jack Daniels "], ["4374","270",30,"1 oz Bailey's irish cream "], ["4374","342",30,"1 oz Southern Comfort "], ["4817","342",15,"1/2 oz Southern Comfort "], ["4817","36",15,"1/2 oz Malibu rum "], ["4817","261",3.7,"1 splash Pineapple juice "], ["4817","82",0.9,"1 dash Grenadine "], ["4817","424",0.9,"1 dash Lemon juice "], ["5697","342",30,"1 oz Southern Comfort "], ["5697","54",30,"1 oz Chambord raspberry liqueur "], ["5697","375",30,"1 oz Amaretto "], ["5697","266",30,"1 oz Sour mix "], ["3890","372",22.25,"1/2 jigger Cranberry juice "], ["3890","342",29.5,"1 shot Southern Comfort "], ["3890","375",29.5,"1 shot Amaretto "], ["5088","387",45,"1 1/2 oz Dark rum "], ["5088","265",15,"1/2 oz Kahlua "], ["5088","186",10,"2 tsp Lime juice "], ["5137","85",14.75,"1/2 shot Bacardi 151 proof rum "], ["5137","145",14.75,"1/2 shot Rumple Minze "], ["2245","192",45,"1 1/2 oz Brandy "], ["2245","448",45,"1 1/2 oz Apple brandy "], ["2245","124",2.5,"1/2 tsp Anisette "], ["3862","108",20,"2 cl J�germeister "], ["3862","239",20,"2 cl Pear liqueur (Xant� Poire au Cognac) "], ["3862","459",60,"6 cl Lemon-lime mix "], ["3862","485",60,"6 cl Battery "], ["3998","231",30,"1 oz Apricot brandy "], ["3998","445",30,"1 oz Orange juice "], ["3998","211",30,"1 oz Sweet and sour "], ["997","36",30,"1 oz Malibu rum "], ["997","238",30,"1 oz Aliz� "], ["997","108",30,"1 oz J�germeister "], ["4231","105",45,"1 1/2 oz dry Sherry "], ["4231","376",22.5,"3/4 oz Gin "], ["1289","165",22.5,"3/4 oz Strawberry schnapps "], ["1289","71",22.5,"3/4 oz Everclear "], ["1973","347",385.5,"1 1/2 cup Strawberries, fresh "], ["1973","398",20,"4 tsp Honey "], ["1973","352",128.5,"1/2 cup Water "], ["1490","475",29.5,"1 shot Sambuca "], ["1490","479",3.7,"1 splash Galliano "], ["4100","479",14.75,"1/2 shot Galliano "], ["4100","462",14.75,"1/2 shot Tequila "], ["1800","251",15,"1/2 oz Watermelon schnapps "], ["1800","36",15,"1/2 oz Malibu rum "], ["1800","261",30,"1 oz Pineapple juice "], ["1800","82",3.7,"1 splash Grenadine "], ["3063","21",45,"1 1/2 oz Whiskey "], ["3063","266",90,"3 oz Sour mix "], ["3063","82",5,"1 tsp Grenadine "], ["5075","316",200,"20 cl Vodka "], ["5075","252",200,"20 cl Whisky "], ["5075","344",200,"20 cl Dr. Pepper "], ["5075","377",200,"20 cl Chocolate milk "], ["4748","119",30,"1 oz Absolut Vodka "], ["4748","359",30,"1 oz Cointreau "], ["4748","424",7.5,"1/4 oz Lemon juice "], ["4748","186",7.5,"1/4 oz fresh Lime juice "], ["2166","387",30,"1 oz Dark rum "], ["2166","249",15,"1/2 oz Bourbon "], ["2166","479",5,"1 tsp Galliano "], ["2166","445",60,"2 oz Orange juice "], ["1754","387",45,"1 1/2 oz Dark rum "], ["1754","297",7.5,"1/4 oz Blue Curacao "], ["1754","445",45,"1 1/2 oz Orange juice "], ["1754","424",15,"1/2 oz Lemon juice "], ["2019","316",15,"1/2 oz Vodka (Stoli) "], ["2019","146",15,"1/2 oz Midori melon liqueur "], ["2019","36",15,"1/2 oz Malibu rum "], ["2019","297",15,"1/2 oz Blue Curacao "], ["2019","261",15,"1/2 oz Pineapple juice "], ["2019","211",15,"1/2 oz Sweet and sour "], ["3297","42",15,"1/2 oz Irish whiskey (Jameson's) "], ["3297","132",15,"1/2 oz Cinnamon schnapps (Hot Damn) "], ["3297","131",0.9,"1 dash Tabasco sauce "], ["2386","243",60,"2 oz Blueberry schnapps (Blue Tattoo) "], ["2386","323",300,"10 oz Sprite "] ],[],onSuccess,onFailed); } module.exports.down=function(onSuccess,onFailed){ //TODO:delete all the data var dbo=new entity.Base("recipe_drink"); dbo.delete("1=1",true); onSuccess(); }
stelee/barobotic
js/migration/db5.js
JavaScript
mit
331,574
import Ember from 'ember'; export default Ember.Component.extend({ tagName: 'img', attributeBindings: ['src'], height: 100, width: 100, backgroundColor: 'aaa', textColor: '555', format: undefined, // gif, jpg, jpeg, png text: undefined, src: Ember.computed('height', 'width', 'backgroundColor', 'textColor', 'format', function() { // build url for placeholder image var base = 'http://placehold.it/'; var src = base + this.get('width') + 'x' + this.get('height') + '/'; src += this.get('backgroundColor') + '/' + this.get('textColor'); // check for image format if (this.get('format')) { src += '.' + this.get('format'); } // check for custom placeholder text if (this.get('text')) { src += '&text=' + this.get('text'); } return src; }) });
adamsrog/ember-cli-placeholdit
app/components/placehold-it.js
JavaScript
mit
791
import database from "../api/database"; import * as types from "../actions/ActionTypes" const receiveAspects = aspects => ({ type: types.GET_COMMON_ASPECTS, aspects }); export const getCommonAspects = () => dispatch => { database.getCommonAspects(aspects => { dispatch(receiveAspects(aspects)) }) }; export const loadAll = () => ({ type: types.LOAD_ALL_ASPECTS });
ievgenen/workingstats
admin/app/assets/javascripts/actions/index.js
JavaScript
mit
382
var https = require('https'), q = require('q'), cache = require('./cache').cache; var API_KEY = process.env.TF_MEETUP_API_KEY; var fetch_events = function () { var deferred = q.defer(); var options = { host: 'api.meetup.com', path: '/2/events?&sign=true&photo-host=public&group_urlname=GOTO-Night-Stockholm&page=20&key=' + API_KEY }; var callback = function (response) { var str = ''; response.on('data', function (chunk) { str += chunk; }); response.on('end', function () { var json = JSON.parse(str); deferred.resolve(json.results); }); }; var req = https.request(options, callback); req.on('error', function (e) { deferred.reject(e); }); req.end(); return deferred.promise; }; module.exports.fetch_events = cache(fetch_events, 10000, true, []);
triforkse/trifork.se
lib/meetup.js
JavaScript
mit
834
using System; namespace monomart.Models.Domain { public class MM_GetBrand { public virtual int id { get; set; } public virtual string name { get; set; } } }
darkoverlordofdata/monomart
monomart/Models/Domain/MM_GetBrand.cs
C#
mit
179
// <copyright file="DataTypeDefinitionMappingRegistrar.cs" company="Logikfabrik"> // Copyright (c) 2016 anton(at)logikfabrik.se. Licensed under the MIT license. // </copyright> namespace Logikfabrik.Umbraco.Jet.Mappings { using System; /// <summary> /// The <see cref="DataTypeDefinitionMappingRegistrar" /> class. Utility class for registering data type definition mappings. /// </summary> public static class DataTypeDefinitionMappingRegistrar { /// <summary> /// Registers the specified data type definition mapping. /// </summary> /// <typeparam name="T">The type to register the specified data type definition mapping for.</typeparam> /// <param name="dataTypeDefinitionMapping">The data type definition mapping.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="dataTypeDefinitionMapping" /> is <c>null</c>.</exception> public static void Register<T>(IDataTypeDefinitionMapping dataTypeDefinitionMapping) { if (dataTypeDefinitionMapping == null) { throw new ArgumentNullException(nameof(dataTypeDefinitionMapping)); } var type = typeof(T); var registry = DataTypeDefinitionMappings.Mappings; if (registry.ContainsKey(type)) { if (registry[type].GetType() == dataTypeDefinitionMapping.GetType()) { return; } registry.Remove(type); } registry.Add(type, dataTypeDefinitionMapping); } } }
aarym/uJet
src/Logikfabrik.Umbraco.Jet/Mappings/DataTypeDefinitionMappingRegistrar.cs
C#
mit
1,637
import java.util.Scanner; public class BinarySearch { public static int binarySearch(int arr[], int num, int startIndex, int endIndex) { if (startIndex > endIndex) { return -1; } int mid = startIndex + (endIndex - startIndex) / 2; if (num == arr[mid]) { return mid; } else if (num > arr[mid]) { return binarySearch(arr, num, mid + 1, endIndex); } else { return binarySearch(arr, num, startIndex, mid - 1); } } public static void main(String[] args) { Scanner s = new Scanner(System.in); int size = s.nextInt(); int[] arr = new int[size]; for (int i = 0; i < arr.length; i++) { arr[i] = s.nextInt(); } int num = s.nextInt(); int position = binarySearch(arr, num, 0, size - 1); if (position == -1) { System.out.println("The number is not present in the array"); } else { System.out.println("The position of number in array is : " + position); } s.close(); } }
CodersForLife/Data-Structures-Algorithms
Searching/BinarySearch.java
Java
mit
932
package com.docuware.dev.schema._public.services.platform; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; @XmlType(name = "SortDirection") @XmlEnum public enum SortDirection { @XmlEnumValue("Default") DEFAULT("Default"), @XmlEnumValue("Asc") ASC("Asc"), @XmlEnumValue("Desc") DESC("Desc"); private final String value; SortDirection(String v) { value = v; } public String value() { return value; } public static SortDirection fromValue(String v) { for (SortDirection c: SortDirection.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }
dgautier/PlatformJavaClient
src/main/java/com/docuware/dev/schema/_public/services/platform/SortDirection.java
Java
mit
808
/* globals Ember, require */ (function() { var _Ember; var id = 0; var dateKey = new Date().getTime(); if (typeof Ember !== 'undefined') { _Ember = Ember; } else { _Ember = require('ember').default; } function symbol() { return '__ember' + dateKey + id++; } function UNDEFINED() {} function FakeWeakMap(iterable) { this._id = symbol(); if (iterable === null || iterable === undefined) { return; } else if (Array.isArray(iterable)) { for (var i = 0; i < iterable.length; i++) { var key = iterable[i][0]; var value = iterable[i][1]; this.set(key, value); } } else { throw new TypeError('The weak map constructor polyfill only supports an array argument'); } } if (!_Ember.WeakMap) { var meta = _Ember.meta; var metaKey = symbol(); /* * @method get * @param key {Object} * @return {*} stored value */ FakeWeakMap.prototype.get = function(obj) { var metaInfo = meta(obj); var metaObject = metaInfo[metaKey]; if (metaInfo && metaObject) { if (metaObject[this._id] === UNDEFINED) { return undefined; } return metaObject[this._id]; } } /* * @method set * @param key {Object} * @param value {Any} * @return {Any} stored value */ FakeWeakMap.prototype.set = function(obj, value) { var type = typeof obj; if (!obj || (type !== 'object' && type !== 'function')) { throw new TypeError('Invalid value used as weak map key'); } var metaInfo = meta(obj); if (value === undefined) { value = UNDEFINED; } if (!metaInfo[metaKey]) { metaInfo[metaKey] = {}; } metaInfo[metaKey][this._id] = value; return this; } /* * @method has * @param key {Object} * @return {Boolean} if the key exists */ FakeWeakMap.prototype.has = function(obj) { var metaInfo = meta(obj); var metaObject = metaInfo[metaKey]; return (metaObject && metaObject[this._id] !== undefined); } /* * @method delete * @param key {Object} */ FakeWeakMap.prototype.delete = function(obj) { var metaInfo = meta(obj); if (this.has(obj)) { delete metaInfo[metaKey][this._id]; return true; } return false; } if (typeof WeakMap === 'function' && typeof window !== 'undefined' && window.OVERRIDE_WEAKMAP !== true) { _Ember.WeakMap = WeakMap; } else { _Ember.WeakMap = FakeWeakMap; } } })();
thoov/ember-weakmap
vendor/ember-weakmap-polyfill.js
JavaScript
mit
2,616
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VaiFundos { class Program { static void Main(string[] args) { GerenciadorCliente gerenciador = new GerenciadorCliente(); FundosEmDolar fundo_dolar1 = new FundosEmDolar("Fundos USA", "FSA"); FundosEmDolar fundo_dolar2 = new FundosEmDolar("Cambio USA", "CSA"); FundosEmReal fundo_real1 = new FundosEmReal("Fundo Deposito Interbancario", "DI"); FundosEmReal fundo_real2 = new FundosEmReal("Atmos Master", "FIA"); int opcao = 0; Console.WriteLine("*==============Vai Fundos===================*"); Console.WriteLine("*-------------------------------------------*"); Console.WriteLine("*1------Cadastro Cliente--------------------*"); Console.WriteLine("*2------Fazer Aplicacao---------------------*"); Console.WriteLine("*3------Listar Clientes---------------------*"); Console.WriteLine("*4------Relatorio Do Cliente----------------*"); Console.WriteLine("*5------Relatorio Do Fundo------------------*"); Console.WriteLine("*6------Transferir Aplicacao De Fundo-------*"); Console.WriteLine("*7------Resgatar Aplicacao------------------*"); Console.WriteLine("*8------Sair Do Sistema --------------------*"); Console.WriteLine("*===========================================*"); Console.WriteLine("Informe a opcao Desejada:"); opcao = int.Parse(Console.ReadLine()); while(opcao >= 1 && opcao < 8) { if (opcao == 1) { Console.WriteLine("Informe o nome do Cliente Que deseja Cadastrar"); gerenciador.cadastrarCliente(Console.ReadLine()); Console.WriteLine("Toque uma tecla para voltar ao menu principal:"); Console.ReadKey(); Console.Clear(); } else if (opcao == 2) { int codFundo = 0; Console.WriteLine("Cod: 1-{0}", fundo_dolar1.getInfFundo()); Console.WriteLine("Cod: 2-{0}", fundo_dolar2.getInfFundo()); Console.WriteLine("Cod: 3-{0}", fundo_real1.getInfFundo()); Console.WriteLine("Cod: 4-{0}", fundo_real2.getInfFundo()); Console.WriteLine("Informe o Codigo Do Fundo que Deseja Aplicar"); codFundo = int.Parse(Console.ReadLine()); if (codFundo == 1) { double valorAplicacao = 0; int codCliente = 0; gerenciador.listarClientes(); Console.WriteLine("Informe o Codigo do Cliente que Deseja Aplicar:"); codCliente = int.Parse(Console.ReadLine()); Console.WriteLine("Informe o valor da Aplicacao"); valorAplicacao = double.Parse(Console.ReadLine()); fundo_dolar1.Aplicar(valorAplicacao, codCliente, gerenciador); Console.WriteLine("Toque uma tecla para voltar ao menu principal:"); Console.ReadKey(); Console.Clear(); } else if (codFundo == 2) { double valorAplicacao = 0; int codCliente = 0; gerenciador.listarClientes(); Console.WriteLine("Informe o Codigo do Cliente que Deseja Aplicar:"); codCliente = int.Parse(Console.ReadLine()); Console.WriteLine("Informe o valor da Aplicacao"); valorAplicacao = double.Parse(Console.ReadLine()); fundo_dolar2.Aplicar(valorAplicacao, codCliente, gerenciador); Console.WriteLine("Toque uma tecla para voltar ao menu principal:"); Console.ReadKey(); Console.Clear(); } else if (codFundo == 3) { double valorAplicacao = 0; int codCliente = 0; gerenciador.listarClientes(); Console.WriteLine("Informe o Codigo do Cliente que Deseja Aplicar:"); codCliente = int.Parse(Console.ReadLine()); Console.WriteLine("Informe o valor da Aplicacao"); valorAplicacao = double.Parse(Console.ReadLine()); fundo_real1.Aplicar(valorAplicacao, codCliente, gerenciador); Console.WriteLine("Toque uma tecla para voltar ao menu principal:"); Console.ReadKey(); Console.Clear(); } else if (codFundo == 4) { double valorAplicacao = 0; int codCliente = 0; gerenciador.listarClientes(); Console.WriteLine("Informe o Codigo do Cliente que Deseja Aplicar:"); codCliente = int.Parse(Console.ReadLine()); Console.WriteLine("Informe o valor da Aplicacao"); valorAplicacao = double.Parse(Console.ReadLine()); fundo_real2.Aplicar(valorAplicacao, codCliente, gerenciador); Console.WriteLine("Toque uma tecla para voltar ao menu principal:"); Console.ReadKey(); Console.Clear(); } } else if (opcao == 3) { Console.Clear(); Console.WriteLine("Clientes Cadastrados:"); gerenciador.listarClientes(); Console.WriteLine("Toque uma tecla para voltar ao menu principal:"); Console.ReadKey(); } else if (opcao == 4) { int codCliente = 0; Console.WriteLine("Clientes Cadastrados"); gerenciador.listarClientes(); codCliente = int.Parse(Console.ReadLine()); gerenciador.relatorioCliente(gerenciador.buscaCliente(codCliente)); Console.WriteLine("Toque uma tecla para voltar ao menu principal:"); Console.ReadKey(); } else if (opcao == 5) { int codFundo = 0; Console.WriteLine("1-{0}", fundo_dolar1.getInfFundo()); Console.WriteLine("2-{0}", fundo_dolar2.getInfFundo()); Console.WriteLine("3-{0}", fundo_real1.getInfFundo()); Console.WriteLine("4-{0}", fundo_real2.getInfFundo()); Console.WriteLine("Informe o Codigo Do Fundo que Deseja o Relatorio"); codFundo = int.Parse(Console.ReadLine()); if (codFundo == 1) { fundo_dolar1.relatorioFundo(); Console.WriteLine("Toque uma tecla para voltar ao menu principal:"); Console.ReadKey(); Console.Clear(); } else if (codFundo == 2) { fundo_dolar2.relatorioFundo(); Console.WriteLine("Toque uma tecla para voltar ao menu principal:"); Console.ReadKey(); Console.Clear(); } else if (codFundo == 3) { fundo_real1.relatorioFundo(); Console.WriteLine("Toque uma tecla para voltar ao menu principal:"); Console.ReadKey(); Console.Clear(); } else if (codFundo == 4) { fundo_real2.relatorioFundo(); Console.WriteLine("Toque uma tecla para voltar ao menu principal:"); Console.ReadKey(); Console.Clear(); } } else if (opcao == 6) { Console.WriteLine("Fundos De Investimentos Disponiveis"); Console.WriteLine("1-{0}", fundo_dolar1.getInfFundo()); Console.WriteLine("2-{0}", fundo_dolar2.getInfFundo()); Console.WriteLine("3-{0}", fundo_real1.getInfFundo()); Console.WriteLine("4-{0}", fundo_real2.getInfFundo()); int codFundoOrigem = 0; int codDestino = 0; int codCliente = 0; double valor = 0; Console.WriteLine("Informe o Codigo do fundo que deseja transferir"); codFundoOrigem = int.Parse(Console.ReadLine()); gerenciador.listarClientes(); Console.WriteLine("Informe o codigo do cliente que deseja realizar a transferencia"); codCliente = int.Parse(Console.ReadLine()); Console.WriteLine("Informe o valor da aplicacao que deseja transferir"); valor = double.Parse(Console.ReadLine()); if(codFundoOrigem == 1) { Console.WriteLine("Fundos De Investimentos Disponiveis Para Troca"); Console.WriteLine("2-{0}", fundo_dolar2.getInfFundo()); Console.WriteLine("Informe o Codigo do fundo que recebera a aplicacao"); codDestino = int.Parse(Console.ReadLine()); if (codDestino == 2) { fundo_dolar1.TrocarFundo(codCliente,valor,fundo_dolar2,'D'); } } else if(codFundoOrigem == 2) { Console.WriteLine("Fundos De Investimentos Disponiveis Para Troca"); Console.WriteLine("1-{0}", fundo_dolar1.getInfFundo()); Console.WriteLine("Informe o Codigo do fundo que recebera a aplicacao"); codDestino = int.Parse(Console.ReadLine()); if (codDestino == 1) { fundo_dolar2.TrocarFundo(codCliente, valor, fundo_dolar1,'D'); } } else if(codFundoOrigem == 3) { Console.WriteLine("Fundos De Investimentos Disponiveis Para Troca"); Console.WriteLine("4-{0}", fundo_real2.getInfFundo()); Console.WriteLine("Informe o Codigo do fundo que recebera a aplicacao"); codDestino = int.Parse(Console.ReadLine()); if (codDestino == 4) { fundo_real1.TrocarFundo(codCliente, valor, fundo_real2,'R'); } } else if(codFundoOrigem == 4) { Console.WriteLine("Fundos De Investimentos Disponiveis Para Troca"); Console.WriteLine("3-{0}", fundo_real1.getInfFundo()); Console.WriteLine("Informe o Codigo do fundo que recebera a aplicacao"); codDestino = int.Parse(Console.ReadLine()); if (codDestino == 3) { fundo_real2.TrocarFundo(codCliente, valor, fundo_real1,'R'); } } Console.WriteLine("Troca Efetuada"); Console.WriteLine("Toque uma tecla para voltar ao menu principal:"); Console.ReadKey(); Console.Clear(); } else if(opcao == 7) { Console.WriteLine("Fundos De Investimentos Disponiveis"); Console.WriteLine("1-{0}", fundo_dolar1.getInfFundo()); Console.WriteLine("2-{0}", fundo_dolar2.getInfFundo()); Console.WriteLine("3-{0}", fundo_real1.getInfFundo()); Console.WriteLine("4-{0}", fundo_real2.getInfFundo()); int codFundo = 0; int codCliente = 0; double valor = 0; Console.WriteLine("Informe o Codigo do Fundo Que Deseja Sacar"); codFundo = int.Parse(Console.ReadLine()); gerenciador.listarClientes(); Console.WriteLine("Informe o codigo do cliente que deseja realizar o saque"); codCliente = int.Parse(Console.ReadLine()); Console.WriteLine("Informe o valor da aplicacao que deseja sacar"); valor = double.Parse(Console.ReadLine()); if(codFundo == 1) { fundo_dolar1.resgate(valor,codCliente,gerenciador); } else if(codFundo == 2) { fundo_dolar2.resgate(valor, codCliente, gerenciador); } else if(codFundo == 3) { fundo_real1.resgate(valor, codCliente, gerenciador); } else if(codFundo == 4) { fundo_real2.resgate(valor, codCliente, gerenciador); } Console.WriteLine("Toque uma tecla para voltar ao menu principal:"); Console.ReadKey(); Console.Clear(); } Console.WriteLine("*==============Vai Fundos===================*"); Console.WriteLine("*-------------------------------------------*"); Console.WriteLine("*1------Cadastro Cliente--------------------*"); Console.WriteLine("*2------Fazer Aplicacao---------------------*"); Console.WriteLine("*3------Listar Clientes---------------------*"); Console.WriteLine("*4------Relatorio Do Cliente----------------*"); Console.WriteLine("*5------Relatorio Do Fundo------------------*"); Console.WriteLine("*6------Transferir Aplicacao De Fundo-------*"); Console.WriteLine("*7------Resgatar Aplicacao------------------*"); Console.WriteLine("*8------Sair Do Sistema --------------------*"); Console.WriteLine("*===========================================*"); Console.WriteLine("Informe a opcao Desejada:"); opcao = int.Parse(Console.ReadLine()); } } } }
jescocard/VaiFundosUCL
VaiFundos/VaiFundos/Program.cs
C#
mit
15,664
<?php /** @var Illuminate\Pagination\LengthAwarePaginator $users */ ?> @section('header') <h1><i class="fa fa-fw fa-users"></i> {{ trans('auth::users.titles.users') }} <small>{{ trans('auth::users.titles.users-list') }}</small></h1> @endsection @section('content') <div class="box box-primary"> <div class="box-header with-border"> @include('core::admin._includes.pagination.labels', ['paginator' => $users]) <div class="box-tools"> <div class="btn-group" role="group"> <a href="{{ route('admin::auth.users.index') }}" class="btn btn-xs btn-default {{ route_is('admin::auth.users.index') ? 'active' : '' }}"> <i class="fa fa-fw fa-bars"></i> {{ trans('core::generals.all') }} </a> <a href="{{ route('admin::auth.users.trash') }}" class="btn btn-xs btn-default {{ route_is('admin::auth.users.trash') ? 'active' : '' }}"> <i class="fa fa-fw fa-trash-o"></i> {{ trans('core::generals.trashed') }} </a> </div> @unless($trashed) <div class="btn-group"> <button class="btn btn-default btn-xs dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> {{ trans('auth::roles.titles.roles') }} <span class="caret"></span> </button> <ul class="dropdown-menu dropdown-menu-right"> @foreach($rolesFilters as $filterLink) <li>{{ $filterLink }}</li> @endforeach </ul> </div> @endunless @can(Arcanesoft\Auth\Policies\UsersPolicy::PERMISSION_CREATE) {{ ui_link_icon('add', route('admin::auth.users.create')) }} @endcan </div> </div> <div class="box-body no-padding"> <div class="table-responsive"> <table class="table table-condensed table-hover no-margin"> <thead> <tr> <th style="width: 40px;"></th> <th>{{ trans('auth::users.attributes.username') }}</th> <th>{{ trans('auth::users.attributes.full_name') }}</th> <th>{{ trans('auth::users.attributes.email') }}</th> <th>{{ trans('auth::roles.titles.roles') }}</th> <th class="text-center">{{ trans('auth::users.attributes.last_activity') }}</th> <th class="text-center" style="width: 80px;">{{ trans('core::generals.status') }}</th> <th class="text-right" style="width: 160px;">{{ trans('core::generals.actions') }}</th> </tr> </thead> <tbody> @forelse ($users as $user) <?php /** @var Arcanesoft\Auth\Models\User $user */ ?> <tr> <td class="text-center"> {{ html()->image($user->gravatar, $user->username, ['class' => 'img-circle', 'style' => 'width: 24px;']) }} </td> <td>{{ $user->username }}</td> <td>{{ $user->full_name }}</td> <td>{{ $user->email }}</td> <td> @foreach($user->roles as $role) <span class="label label-primary" style="margin-right: 5px;">{{ $role->name }}</span> @endforeach </td> <td class="text-center"> <small>{{ $user->formatted_last_activity }}</small> </td> <td class="text-center"> @includeWhen($user->isAdmin(), 'auth::admin.users._includes.super-admin-icon') {{ label_active_icon($user->isActive()) }} </td> <td class="text-right"> @can(Arcanesoft\Auth\Policies\UsersPolicy::PERMISSION_SHOW) {{ ui_link_icon('show', route('admin::auth.users.show', [$user->hashed_id])) }} @endcan @can(Arcanesoft\Auth\Policies\UsersPolicy::PERMISSION_UPDATE) {{ ui_link_icon('edit', route('admin::auth.users.edit', [$user->hashed_id])) }} @if ($user->trashed()) {{ ui_link_icon('restore', '#restore-user-modal', ['data-user-id' => $user->hashed_id, 'data-user-name' => $user->full_name]) }} @endif {{ ui_link_icon($user->isActive() ? 'disable' : 'enable', '#activate-user-modal', ['data-user-id' => $user->hashed_id, 'data-user-name' => $user->full_name, 'data-current-status' => $user->isActive() ? 'enabled' : 'disabled'], $user->isAdmin()) }} @endcan @can(Arcanesoft\Auth\Policies\UsersPolicy::PERMISSION_DELETE) {{ ui_link_icon('delete', '#delete-user-modal', ['data-user-id' => $user->hashed_id, 'data-user-name' => $user->full_name], ! $user->isDeletable()) }} @endcan </td> </tr> @empty <tr> <td colspan="8" class="text-center"> <span class="label label-default">{{ trans('auth::users.list-empty') }}</span> </td> </tr> @endforelse </tbody> </table> </div> </div> @if ($users->hasPages()) <div class="box-footer clearfix"> {{ $users->render() }} </div> @endif </div> @endsection @section('modals') @can(Arcanesoft\Auth\Policies\UsersPolicy::PERMISSION_UPDATE) {{-- ACTIVATE MODAL --}} <div id="activate-user-modal" class="modal fade" data-backdrop="false" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> {{ form()->open(['method' => 'PUT', 'id' => 'activate-user-form', 'class' => 'form form-loading', 'autocomplete' => 'off']) }} <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> <h4 class="modal-title"></h4> </div> <div class="modal-body"> <p></p> </div> <div class="modal-footer"> {{ ui_button('cancel')->appendClass('pull-left')->setAttribute('data-dismiss', 'modal') }} {{ ui_button('enable', 'submit')->withLoadingText() }} {{ ui_button('disable', 'submit')->withLoadingText() }} </div> </div> {{ form()->close() }} </div> </div> {{-- RESTORE MODAL --}} @if ($trashed) <div id="restore-user-modal" class="modal fade" data-backdrop="false" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> {{ form()->open(['method' => 'PUT', 'id' => 'restore-user-form', 'class' => 'form form-loading', 'autocomplete' => 'off']) }} <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> <h4 class="modal-title">{{ trans('auth::users.modals.restore.title') }}</h4> </div> <div class="modal-body"> <p></p> </div> <div class="modal-footer"> {{ ui_button('cancel')->appendClass('pull-left')->setAttribute('data-dismiss', 'modal') }} {{ ui_button('restore', 'submit')->withLoadingText() }} </div> </div> {{ form()->close() }} </div> </div> @endif @endcan {{-- DELETE MODAL --}} @can(Arcanesoft\Auth\Policies\UsersPolicy::PERMISSION_DELETE) <div id="delete-user-modal" class="modal fade" data-backdrop="false" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> {{ form()->open(['method' => 'DELETE', 'id' => 'delete-user-form', 'class' => 'form form-loading', 'autocomplete' => 'off']) }} <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> <h4 class="modal-title">{{ trans('auth::users.modals.delete.title') }}</h4> </div> <div class="modal-body"> <p></p> </div> <div class="modal-footer"> {{ ui_button('cancel')->appendClass('pull-left')->setAttribute('data-dismiss', 'modal') }} {{ ui_button('delete', 'submit')->withLoadingText() }} </div> </div> {{ form()->close() }} </div> </div> @endcan @endsection @section('scripts') @can(Arcanesoft\Auth\Policies\UsersPolicy::PERMISSION_UPDATE) {{-- ACTIVATE MODAL --}} <script> $(function () { var $activateUserModal = $('div#activate-user-modal'), $activateUserForm = $('form#activate-user-form'), activateUserUrl = "{{ route('admin::auth.users.activate', [':id']) }}"; $('a[href="#activate-user-modal"]').on('click', function (event) { event.preventDefault(); var that = $(this), enabled = that.data('current-status') === 'enabled', enableTitle = "{!! trans('auth::users.modals.enable.title') !!}", enableMessage = '{!! trans("auth::users.modals.enable.message") !!}', disableTitle = "{!! trans('auth::users.modals.disable.title') !!}", disableMessage = '{!! trans("auth::users.modals.disable.message") !!}'; $activateUserForm.attr('action', activateUserUrl.replace(':id', that.data('user-id'))); $activateUserModal.find('.modal-title').text(enabled ? disableTitle : enableTitle); $activateUserModal.find('.modal-body p').html((enabled ? disableMessage : enableMessage).replace(':name', that.data('user-name'))); if (enabled) { $activateUserForm.find('button[type="submit"].btn-success').hide(); $activateUserForm.find('button[type="submit"].btn-inverse').show(); } else { $activateUserForm.find('button[type="submit"].btn-success').show(); $activateUserForm.find('button[type="submit"].btn-inverse').hide(); } $activateUserModal.modal('show'); }); $activateUserModal.on('hidden.bs.modal', function () { $activateUserForm.attr('action', activateUserUrl); $activateUserModal.find('.modal-title').text(''); $activateUserModal.find('.modal-body p').html(''); $activateUserForm.find('button[type="submit"]').hide(); }); $activateUserForm.on('submit', function (event) { event.preventDefault(); var $submitBtn = $activateUserForm.find('button[type="submit"]'); $submitBtn.button('loading'); axios.put($activateUserForm.attr('action')) .then(function (response) { if (response.data.code === 'success') { $activateUserModal.modal('hide'); location.reload(); } else { alert('ERROR ! Check the console !'); $submitBtn.button('reset'); } }) .catch(function (error) { alert('AJAX ERROR ! Check the console !'); console.log(error); $submitBtn.button('reset'); }); return false; }); }); </script> @if ($trashed) {{-- RESTORE MODAL --}} <script> $(function () { var $restoreUserModal = $('div#restore-user-modal'), $restoreUserForm = $('form#restore-user-form'), restoreUserUrl = "{{ route('admin::auth.users.restore', [':id']) }}"; $('a[href="#restore-user-modal"]').on('click', function (event) { event.preventDefault(); var that = $(this); $restoreUserForm.attr('action', restoreUserUrl.replace(':id', that.data('user-id'))); $restoreUserModal.find('.modal-body p').html( '{!! trans("auth::users.modals.restore.message") !!}'.replace(':name', that.data('user-name')) ); $restoreUserModal.modal('show'); }); $restoreUserModal.on('hidden.bs.modal', function () { $restoreUserForm.attr('action', restoreUserUrl); $restoreUserModal.find('.modal-body p').html(''); }); $restoreUserForm.on('submit', function (event) { event.preventDefault(); var $submitBtn = $restoreUserForm.find('button[type="submit"]'); $submitBtn.button('loading'); axios.put($restoreUserForm.attr('action')) .then(function (response) { if (response.data.code === 'success') { $restoreUserModal.modal('hide'); location.reload(); } else { alert('ERROR ! Check the console !'); $submitBtn.button('reset'); } }) .catch(function (error) { alert('AJAX ERROR ! Check the console !'); console.log(error); $submitBtn.button('reset'); }); return false; }); }); </script> @endif @endcan @can(Arcanesoft\Auth\Policies\UsersPolicy::PERMISSION_DELETE) {{-- DELETE MODAL --}} <script> $(function () { var $deleteUserModal = $('div#delete-user-modal'), $deleteUserForm = $('form#delete-user-form'), deleteUserUrl = "{{ route('admin::auth.users.delete', [':id']) }}"; $('a[href="#delete-user-modal"]').on('click', function (event) { event.preventDefault(); var that = $(this); $deleteUserForm.attr('action', deleteUserUrl.replace(':id', that.data('user-id'))); $deleteUserModal.find('.modal-body p').html( '{!! trans("auth::users.modals.delete.message") !!}'.replace(':name', that.data('user-name')) ); $deleteUserModal.modal('show'); }); $deleteUserModal.on('hidden.bs.modal', function () { $deleteUserForm.attr('action', deleteUserUrl); $deleteUserModal.find('.modal-body p').html(''); }); $deleteUserForm.on('submit', function (event) { event.preventDefault(); var $submitBtn = $deleteUserForm.find('button[type="submit"]'); $submitBtn.button('loading'); axios.delete($deleteUserForm.attr('action')) .then(function (response) { if (response.data.code === 'success') { $deleteUserModal.modal('hide'); location.reload(); } else { alert('ERROR ! Check the console !'); $submitBtn.button('reset'); } }) .catch(function (error) { alert('AJAX ERROR ! Check the console !'); console.log(error); $submitBtn.button('reset'); }); return false; }); }); </script> @endcan @endsection
ARCANESOFT/Auth
resources/views/admin/users/index.blade.php
PHP
mit
18,908
// The MIT License (MIT) // // Copyright (c) 2014-2017 Darrell Wright // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files( the "Software" ), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. #include <iostream> #include <thread> #include <vector> #include <daw/daw_exception.h> #include <daw/daw_string_view.h> #include <daw/nodepp/lib_net_server.h> #include <daw/nodepp/lib_net_socket_stream.h> #include "nodepp_rfb.h" #include "rfb_messages.h" namespace daw { namespace rfb { namespace impl { namespace { constexpr uint8_t get_bit_depth( BitDepth::values bit_depth ) noexcept { switch( bit_depth ) { case BitDepth::eight: return 8; case BitDepth::sixteen: return 16; case BitDepth::thirtytwo: default: return 32; } } template<typename Collection, typename Func> void process_all( Collection &&values, Func f ) { while( !values.empty( ) ) { f( values.back( ) ); values.pop_back( ); } } struct Update { uint16_t x; uint16_t y; uint16_t width; uint16_t height; }; // struct Update ServerInitialisationMsg create_server_initialization_message( uint16_t width, uint16_t height, uint8_t depth ) { ServerInitialisationMsg result{}; result.width = width; result.height = height; result.pixel_format.bpp = depth; result.pixel_format.depth = depth; result.pixel_format.true_colour_flag = static_cast<uint8_t>( true ); result.pixel_format.red_max = 255; result.pixel_format.blue_max = 255; result.pixel_format.green_max = 255; return result; } constexpr ButtonMask create_button_mask( uint8_t mask ) noexcept { return ButtonMask{mask}; } template<typename T> static std::vector<unsigned char> to_bytes( T const &value ) { auto const N = sizeof( T ); std::vector<unsigned char> result( N ); *( reinterpret_cast<T *>( result.data( ) ) ) = value; return result; } template<typename T, typename U> static void append( T &destination, U const &source ) { std::copy( source.begin( ), source.end( ), std::back_inserter( destination ) ); } template<typename T> static void append( T &destination, std::string const &source ) { append( destination, to_bytes( source.size( ) ) ); std::copy( source.begin( ), source.end( ), std::back_inserter( destination ) ); } template<typename T> static void append( T &destination, daw::string_view source ) { append( destination, to_bytes( source.size( ) ) ); std::copy( source.begin( ), source.end( ), std::back_inserter( destination ) ); } bool validate_fixed_buffer( std::shared_ptr<daw::nodepp::base::data_t> &buffer, size_t size ) { auto result = static_cast<bool>( buffer ); result &= buffer->size( ) == size; return result; } template<typename T> constexpr bool as_bool( T const value ) noexcept { static_assert(::daw::traits::is_integral_v<T>, "Parameter to as_bool must be an Integral type" ); return value != 0; } constexpr size_t get_buffer_size( size_t width, size_t height, size_t bit_depth ) noexcept { return static_cast<size_t>( width * height * ( bit_depth == 8 ? 1 : bit_depth == 16 ? 2 : 4 ) ); } } // namespace class RFBServerImpl final { uint16_t m_width; uint16_t m_height; uint8_t m_bit_depth; std::vector<uint8_t> m_buffer; std::vector<Update> m_updates; daw::nodepp::lib::net::NetServer m_server; std::thread m_service_thread; void send_all( std::shared_ptr<daw::nodepp::base::data_t> buffer ) { assert( buffer ); m_server->emitter( )->emit( "send_buffer", buffer ); } bool recv_client_initialization_msg( daw::nodepp::lib::net::NetSocketStream &socket, std::shared_ptr<daw::nodepp::base::data_t> data_buffer, int64_t callback_id ) { if( validate_fixed_buffer( data_buffer, 1 ) ) { if( !as_bool( ( *data_buffer )[0] ) ) { this->m_server->emitter( )->emit( "close_all", callback_id ); } return true; } return false; } void setup_callbacks( ) { m_server->on_connection( [&, &srv = m_server ]( auto socket ) { std::cout << "Connection from: " << socket->remote_address( ) << ":" << socket->remote_port( ) << std::endl; // Setup send_buffer callback on server. This is registered by all sockets so that updated // areas can be sent to all clients auto send_buffer_callback_id = srv->emitter( )->add_listener( "send_buffer", [s = socket]( std::shared_ptr<daw::nodepp::base::data_t> buffer ) mutable { s->write( buffer->data( ) ); } ); // TODO:****************DAW**********HERE*********** // The close_all callback will close all vnc sessions but the one specified. This is used when // a client connects and requests that no other clients share the session auto close_all_callback_id = srv->emitter( )->add_listener( "close_all", [ test_callback_id = send_buffer_callback_id, socket ]( int64_t current_callback_id ) mutable { if( test_callback_id != current_callback_id ) { socket->close( ); } } ); // When socket is closed, remove registered callbacks in server socket->emitter( )->on( "close", [&srv, send_buffer_callback_id, close_all_callback_id]( ) { srv->emitter( )->remove_listener( "send_buffer", send_buffer_callback_id ); srv->emitter( )->remove_listener( "close_all", close_all_callback_id ); } ); // We have sent the server version, now validate client version socket->on_next_data_received( [this, socket, send_buffer_callback_id]( std::shared_ptr<daw::nodepp::base::data_t> buffer1, bool ) mutable { if( !this->revc_client_version_msg( socket, buffer1 ) ) { socket->close( ); return; } // Authentication message is sent socket->on_next_data_received( [socket, this, send_buffer_callback_id]( std::shared_ptr<daw::nodepp::base::data_t> buffer2, bool ) mutable { // Client Initialization Message expected, data buffer should have 1 value if( !this->recv_client_initialization_msg( socket, buffer2, send_buffer_callback_id ) ) { socket->close( ); return; } // Server Initialization Sent, main reception loop socket->on_data_received( [socket, this]( std::shared_ptr<daw::nodepp::base::data_t> buffer3, bool ) mutable { // Main Receive Loop this->parse_client_msg( socket, buffer3 ); return; socket->read_async( ); } ); this->send_server_initialization_msg( socket ); socket->read_async( ); } ); this->send_authentication_msg( socket ); socket->read_async( ); } ); this->send_server_version_msg( socket ); socket->read_async( ); } ); } void parse_client_msg( daw::nodepp::lib::net::NetSocketStream const &socket, std::shared_ptr<daw::nodepp::base::data_t> const &buffer ) { if( !buffer && buffer->empty( ) ) { socket->close( ); return; } auto const &message_type = buffer->front( ); switch( message_type ) { case 0: // SetPixelFormat break; case 1: // FixColourMapEntries break; case 2: // SetEncodings break; case 3: { // FramebufferUpdateRequest if( buffer->size( ) < sizeof( ClientFrameBufferUpdateRequestMsg ) ) { socket->close( ); } auto req = daw::nodepp::base::from_data_t_to_value<ClientFrameBufferUpdateRequestMsg>( *buffer ); add_update_request( req.x, req.y, req.width, req.height ); update( ); } break; case 4: { // KeyEvent if( buffer->size( ) < sizeof( ClientKeyEventMsg ) ) { socket->close( ); } auto req = nodepp::base::from_data_t_to_value<ClientKeyEventMsg>( *buffer ); emit_key_event( as_bool( req.down_flag ), req.key ); } break; case 5: { // PointerEvent if( buffer->size( ) < sizeof( ClientPointerEventMsg ) ) { socket->close( ); } auto req = nodepp::base::from_data_t_to_value<ClientPointerEventMsg>( *buffer ); emit_pointer_event( create_button_mask( req.button_mask ), req.x, req.y ); } break; case 6: { // ClientCutText if( buffer->size( ) < 8 ) { socket->close( ); } auto len = nodepp::base::from_data_t_to_value<uint32_t>( *buffer, 4 ); // auto len = *(reinterpret_cast<uint32_t *>(buffer->data( ) + 4)); if( buffer->size( ) < 8 + len ) { // Verify buffer is long enough and we don't overflow socket->close( ); } daw::string_view text{buffer->data( ) + 8, len}; emit_client_clipboard_text( text ); } break; } } void send_server_version_msg( daw::nodepp::lib::net::NetSocketStream const &socket ) { daw::string_view const rfb_version = "RFB 003.003\n"; socket->write( rfb_version ); } bool revc_client_version_msg( daw::nodepp::lib::net::NetSocketStream const &socket, std::shared_ptr<daw::nodepp::base::data_t> data_buffer ) { auto result = validate_fixed_buffer( data_buffer, 12 ); std::string const expected_msg = "RFB 003.003\n"; if( !std::equal( expected_msg.begin( ), expected_msg.end( ), data_buffer->begin( ) ) ) { result = false; auto msg = std::make_shared<daw::nodepp::base::data_t>( ); append( *msg, to_bytes( static_cast<uint32_t>( 0 ) ) ); // Authentication Scheme 0, Connection Failed std::string const err_msg = "Unsupported version, only 3.3 is supported"; append( *msg, err_msg ); socket->write( *msg ); } return result; } void send_server_initialization_msg( daw::nodepp::lib::net::NetSocketStream const &socket ) { auto msg = std::make_shared<daw::nodepp::base::data_t>( ); append( *msg, to_bytes( create_server_initialization_message( m_width, m_height, m_bit_depth ) ) ); append( *msg, daw::string_view( "Test RFB Service" ) ); // Add title length and title values socket->write( *msg ); // Send msg } void send_authentication_msg( daw::nodepp::lib::net::NetSocketStream const &socket ) { auto msg = std::make_shared<daw::nodepp::base::data_t>( ); append( *msg, to_bytes( static_cast<uint32_t>( 1 ) ) ); // Authentication Scheme 1, No Auth socket->write( *msg ); } public: RFBServerImpl( uint16_t width, uint16_t height, uint8_t bit_depth, daw::nodepp::base::EventEmitter emitter ) : m_width{width} , m_height{height} , m_bit_depth{bit_depth} , m_buffer( get_buffer_size( width, height, bit_depth ) ) , m_server{daw::nodepp::lib::net::create_net_server( std::move( emitter ) )} { std::fill( m_buffer.begin( ), m_buffer.end( ), 0 ); setup_callbacks( ); } uint16_t width( ) const noexcept { return m_width; } uint16_t height( ) const noexcept { return m_height; } void add_update_request( uint16_t x, uint16_t y, uint16_t width, uint16_t height ) { m_updates.push_back( {x, y, width, height} ); } Box get_area( uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2 ) { daw::exception::daw_throw_on_false( y2 >= y1 ); daw::exception::daw_throw_on_false( x2 >= x1 ); Box result; result.reserve( static_cast<size_t>( y2 - y1 ) ); auto const width = x2 - x1; for( size_t n = y1; n < y2; ++n ) { auto p1 = m_buffer.data( ) + ( m_width * n ) + x1; auto rng = daw::range::make_range( p1, p1 + width ); result.push_back( rng ); } add_update_request( x1, y1, static_cast<uint16_t>( x2 - x1 ), static_cast<uint16_t>( y2 - y1 ) ); return result; } BoxReadOnly get_read_only_area( uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2 ) const { assert( y2 >= y1 ); assert( x2 >= x1 ); BoxReadOnly result; result.reserve( static_cast<size_t>( y2 - y1 ) ); auto const width = x2 - x1; for( size_t n = y1; n < y2; ++n ) { auto p1 = m_buffer.data( ) + ( m_width * n ) + x1; auto rng = daw::range::make_range<uint8_t const *>( p1, p1 + width ); result.push_back( rng ); } return result; } void update( ) { auto buffer = std::make_shared<daw::nodepp::base::data_t>( ); buffer->push_back( 0 ); // Message Type, FrameBufferUpdate buffer->push_back( 0 ); // Padding append( *buffer, to_bytes( static_cast<uint16_t>( m_updates.size( ) ) ) ); impl::process_all( m_updates, [&]( auto const &u ) { append( *buffer, to_bytes( u ) ); buffer->push_back( 0 ); // Encoding type RAW for( size_t row = u.y; row < u.y + u.height; ++row ) { append( *buffer, daw::range::make_range( m_buffer.begin( ) + ( u.y * m_width ) + u.x, m_buffer.begin( ) + ( ( u.y + u.height ) * m_width ) + u.x + u.width ) ); } } ); send_all( buffer ); } void on_key_event( std::function<void( bool key_down, uint32_t key )> callback ) { m_server->emitter( )->on( "on_key_event", std::move( callback ) ); } void emit_key_event( bool key_down, uint32_t key ) { m_server->emitter( )->emit( "on_key_event", key_down, key ); } void on_pointer_event( std::function<void( ButtonMask buttons, uint16_t x_position, uint16_t y_position )> callback ) { m_server->emitter( )->on( "on_pointer_event", std::move( callback ) ); } void emit_pointer_event( ButtonMask buttons, uint16_t x_position, uint16_t y_position ) { m_server->emitter( )->emit( "on_pointer_event", buttons, x_position, y_position ); } void on_client_clipboard_text( std::function<void( daw::string_view text )> callback ) { m_server->emitter( )->on( "on_clipboard_text", std::move( callback ) ); } void emit_client_clipboard_text( daw::string_view text ) { m_server->emitter( )->emit( "on_clipboard_text", text ); } void send_clipboard_text( daw::string_view text ) { daw::exception::daw_throw_on_false( text.size( ) <= std::numeric_limits<uint32_t>::max( ), "Invalid text size" ); auto buffer = std::make_shared<daw::nodepp::base::data_t>( ); buffer->push_back( 0 ); // Message Type, ServerCutText buffer->push_back( 0 ); // Padding buffer->push_back( 0 ); // Padding buffer->push_back( 0 ); // Padding append( *buffer, text ); send_all( buffer ); } void send_bell( ) { auto buffer = std::make_shared<daw::nodepp::base::data_t>( 1, 2 ); send_all( buffer ); } void listen( uint16_t port, daw::nodepp::lib::net::ip_version ip_ver ) { m_server->listen( port, ip_ver ); // m_service_thread = std::thread( []( ) { daw::nodepp::base::start_service( daw::nodepp::base::StartServiceMode::Single ); //} ); } void close( ) { daw::nodepp::base::ServiceHandle::stop( ); m_service_thread.join( ); } }; // class RFBServerImpl } // namespace impl RFBServer::RFBServer( uint16_t width, uint16_t height, BitDepth::values depth, daw::nodepp::base::EventEmitter emitter ) : m_impl( std::make_shared<impl::RFBServerImpl>( width, height, impl::get_bit_depth( depth ), std::move( emitter ) ) ) {} RFBServer::~RFBServer( ) = default; uint16_t RFBServer::width( ) const noexcept { return m_impl->width( ); } uint16_t RFBServer::height( ) const noexcept { return m_impl->height( ); } uint16_t RFBServer::max_x( ) const noexcept { return static_cast<uint16_t>(width( ) - 1); } uint16_t RFBServer::max_y( ) const noexcept { return static_cast<uint16_t>(height( ) - 1); } void RFBServer::listen( uint16_t port, daw::nodepp::lib::net::ip_version ip_ver ) { m_impl->listen( port, ip_ver ); } void RFBServer::close( ) { m_impl->close( ); } void RFBServer::on_key_event( std::function<void( bool key_down, uint32_t key )> callback ) { m_impl->on_key_event( std::move( callback ) ); } void RFBServer::on_pointer_event( std::function<void( ButtonMask buttons, uint16_t x_position, uint16_t y_position )> callback ) { m_impl->on_pointer_event( std::move( callback ) ); } void RFBServer::on_client_clipboard_text( std::function<void( daw::string_view text )> callback ) { m_impl->on_client_clipboard_text( std::move( callback ) ); } void RFBServer::send_clipboard_text( daw::string_view text ) { m_impl->send_clipboard_text( text ); } void RFBServer::send_bell( ) { m_impl->send_bell( ); } Box RFBServer::get_area( uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2 ) { return m_impl->get_area( x1, y1, x2, y2 ); } BoxReadOnly RFBServer::get_readonly_area( uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2 ) const { return m_impl->get_read_only_area( x1, y1, x2, y2 ); } void RFBServer::update( ) { m_impl->update( ); } } // namespace rfb } // namespace daw
beached/nodepp_rfb
src/nodepp_rfb.cpp
C++
mit
18,856
import Resolver from 'ember/resolver'; var resolver = Resolver.create(); resolver.namespace = { modulePrefix: 'todo-app' }; export default resolver;
zhoulijoe/js_todo_app
tests/helpers/resolver.js
JavaScript
mit
154
<?php namespace HiFebriansyah\LaravelContentManager\Traits; use Form; use Illuminate\Support\MessageBag; use Carbon; use Session; trait Generator { public function generateForm($class, $columns, $model) { $lcm = $model->getConfigs(); $errors = Session::get('errors', new MessageBag()); $isDebug = (request()->input('debug') == true); if ($model[$model->getKeyName()]) { echo Form::model($model, ['url' => url('lcm/gen/'.$class.'/1'), 'method' => 'post', 'files' => true]); } else { echo Form::model('', ['url' => url('lcm/gen/'.$class), 'method' => 'post', 'files' => true]); } foreach ($columns as $column) { if (strpos($column->Extra, 'auto_increment') === false && !in_array($column->Field, $lcm['hides'])) { $readOnly = (in_array($column->Field, $lcm['readOnly'])) ? 'readonly' : ''; if (!$model[$column->Field] && $column->Default != '') { if ($column->Default == 'CURRENT_TIMESTAMP') { $mytime = Carbon::now(); $model->{$column->Field} = $mytime->toDateTimeString(); } else { $model->{$column->Field} = $column->Default; } } echo '<div class="form-group '.($errors->has($column->Field) ? 'has-error' : '').'">'; if (in_array($column->Field, $lcm['files'])) { echo Form::label($column->Field, str_replace('_', ' ', $column->Field)); echo Form::file($column->Field, [$readOnly]); } elseif (strpos($column->Key, 'MUL') !== false) { $reference = $model->getReference($column->Field); $referencedClass = '\\App\\Models\\'.studly_case(str_singular($reference->REFERENCED_TABLE_NAME)); $referencedClass = new $referencedClass(); $referencedClassLcm = $referencedClass->getConfigs(); $labelName = str_replace('_', ' ', $column->Field); $labelName = str_replace('id', ':'.$referencedClassLcm['columnLabel'], $labelName); echo Form::label($column->Field, $labelName); echo Form::select($column->Field, ['' => '---'] + $referencedClass::lists($referencedClassLcm['columnLabel'], 'id')->all(), null, ['id' => $column->Field, 'class' => 'form-control', $readOnly]); } elseif (strpos($column->Type, 'char') !== false) { echo Form::label($column->Field, str_replace('_', ' ', $column->Field)); echo Form::text($column->Field, $model[$column->Field], ['class' => 'form-control', $readOnly]); } elseif (strpos($column->Type, 'text') !== false) { echo Form::label($column->Field, str_replace('_', ' ', $column->Field)); echo Form::textarea($column->Field, $model[$column->Field], ['class' => 'form-control', $readOnly]); } elseif (strpos($column->Type, 'int') !== false) { echo Form::label($column->Field, str_replace('_', ' ', $column->Field)); echo Form::number($column->Field, $model[$column->Field], ['class' => 'form-control', $readOnly]); } elseif (strpos($column->Type, 'timestamp') !== false || strpos($column->Type, 'date') !== false) { echo Form::label($column->Field, str_replace('_', ' ', $column->Field)); echo Form::text($column->Field, $model[$column->Field], ['class' => 'form-control has-datepicker', $readOnly]); } else { echo Form::label($column->Field, str_replace('_', ' ', $column->Field.' [undetect]')); echo Form::text($column->Field, $model[$column->Field], ['class' => 'form-control', $readOnly]); } echo $errors->first($column->Field, '<p class="help-block">:message</p>'); echo '</div>'; if ($isDebug) { echo '<pre>', var_dump($column), '</pre>'; } } } foreach ($lcm['checkboxes'] as $key => $value) { echo Form::checkbox('name', 'value'); } echo '<button type="submit" class="btn btn-info"><i class="fa fa-save"></i>'.(($model[$model->getKeyName()]) ? 'Update' : 'Save').'</button>'; Form::close(); if ($isDebug) { echo '<pre>', var_dump($errors), '</pre>'; } } }
hifebriansyah/laravel-content-manager
src/Traits/Generator.php
PHP
mit
4,601
<?php namespace AppBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\Routing\Annotation\Route; /** * Weekly controller. * * @Route("/weekly") */ class WeeklyController extends Controller { /** * @Route("/", name="default") */ public function defaultAction() { $BOL = new \DateTime(); $BOL->setDate(1982, 10, 29); $EOL = new \DateTime(); $EOL->setDate(1982, 10, 29) ->add(new \DateInterval('P90Y')); $weeksLived = $BOL->diff(new \DateTime())->days / 7; return $this->render('AppBundle:weekly:index.html.twig', [ 'BOL' => $BOL, 'EOL' => $EOL, 'weeksLived' => $weeksLived, ]); } }
alexseif/myapp
src/AppBundle/Controller/WeeklyController.php
PHP
mit
765
/** * The MIT License * * Copyright (C) 2015 Asterios Raptis * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package de.alpharogroup.user.repositories; import org.springframework.stereotype.Repository; import de.alpharogroup.db.dao.jpa.JpaEntityManagerDao; import de.alpharogroup.user.entities.RelationPermissions; @Repository("relationPermissionsDao") public class RelationPermissionsDao extends JpaEntityManagerDao<RelationPermissions, Integer> { /** * The serialVersionUID. */ private static final long serialVersionUID = 1L; }
lightblueseas/user-data
user-entities/src/main/java/de/alpharogroup/user/repositories/RelationPermissionsDao.java
Java
mit
1,582
<?php /** * Chronjob that will delete expired nonce tokens every hour * Author: Sneha Inguva * Date: 8-2-2014 */ require_once('../config.php'); require_once('../db/mysqldb.php'); $con = new mysqldb($db_settings1,false); $stmt = "Delete FROM nonce_values Where expiry_time <= CURRENT_TIMESTAMP"; $result = $con->query($stmt); ?>
si74/peroozBackend
jobs/update_nonce.php
PHP
mit
339
#!/usr/bin/python from noisemapper.mapper import * #from collectors.lib import utils ### Define the object mapper and start mapping def main(): # utils.drop_privileges() mapper = NoiseMapper() mapper.run() if __name__ == "__main__": main()
dustlab/noisemapper
scripts/nmcollector.py
Python
mit
259
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Julas.Utils; using Julas.Utils.Collections; using Julas.Utils.Extensions; using TheArtOfDev.HtmlRenderer.WinForms; using Ozeki.VoIP; using VoipClient; namespace Client { public partial class ConversationForm : Form { private volatile bool _isInCall = false; private readonly string _thisUserId; private readonly string _otherUserId; private readonly HtmlPanel _htmlPanel; private readonly Color _textColor = Color.Black; private readonly Color _timestampColor = Color.DarkGray; private readonly Color _thisUserColor = Color.DodgerBlue; private readonly Color _otherUserColor = Color.DarkOrange; private readonly Color _enabledBtnColor = Color.FromArgb(255, 255, 255); private readonly Color _disabledBtnColor = Color.FromArgb(226, 226, 226); private readonly int _fontSize = 1; private readonly VoipClientModule _voipClient; public event Action<string> MessageSent; public event Action Call; public event Action HangUp; public ConversationForm(string thisUserId, string otherUserId, string hash_pass, VoipClientModule voipClient) { _thisUserId = thisUserId; _otherUserId = otherUserId; _voipClient = voipClient; InitializeComponent(); this.Text = $"Conversation with {otherUserId}"; _htmlPanel = new HtmlPanel(); panel1.Controls.Add(_htmlPanel); _htmlPanel.Dock = DockStyle.Fill; _voipClient.PhoneStateChanged += VoipClientOnPhoneStateChanged; } public new void Dispose() { _voipClient.PhoneStateChanged -= VoipClientOnPhoneStateChanged; base.Dispose(true); } private void VoipClientOnPhoneStateChanged(PhoneState phoneState) { Invoke(() => { if (!phoneState.OtherUserId.IsOneOf(null, _otherUserId) || phoneState.Status.IsOneOf(PhoneStatus.Registering)) { btnCall.Enabled = false; btnHangUp.Enabled = false; btnCall.BackColor = _disabledBtnColor; btnHangUp.BackColor = _disabledBtnColor; return; } else { switch (phoneState.Status) { case PhoneStatus.Calling: { btnCall.Enabled = false; btnHangUp.Enabled = true; btnCall.BackColor = _disabledBtnColor; btnHangUp.BackColor = _enabledBtnColor; break; } case PhoneStatus.InCall: { btnCall.Enabled = false; btnHangUp.Enabled = true; btnCall.BackColor = _disabledBtnColor; btnHangUp.BackColor = _enabledBtnColor; break; } case PhoneStatus.IncomingCall: { btnCall.Enabled = true; btnHangUp.Enabled = true; btnCall.BackColor = _enabledBtnColor; btnHangUp.BackColor = _enabledBtnColor; break; } case PhoneStatus.Registered: { btnCall.Enabled = true; btnHangUp.Enabled = false; btnCall.BackColor = _enabledBtnColor; btnHangUp.BackColor = _disabledBtnColor; break; } } } }); } public void AppendMessageFromOtherUser(string message) { AppendMessage(message, _otherUserId, _otherUserColor); } private void AppendMessageFromThisUser(string message) { AppendMessage(message, _thisUserId, _thisUserColor); } private void AppendMessage(string msg, string from, Color nameColor) { StringBuilder sb = new StringBuilder(); sb.Append("<p>"); sb.Append($"<b><font color=\"{GetHexColor(nameColor)}\" size=\"{_fontSize}\">{from}</font></b> "); sb.Append($"<font color=\"{GetHexColor(_timestampColor)}\" size=\"{_fontSize}\">{DateTime.Now.ToString("HH:mm:ss")}</font>"); sb.Append("<br/>"); sb.Append($"<font color=\"{GetHexColor(_textColor)}\" size=\"{_fontSize}\">{msg}</font>"); sb.Append("</p>"); _htmlPanel.Text += sb.ToString(); _htmlPanel.VerticalScroll.Value = _htmlPanel.VerticalScroll.Maximum; } private string GetHexColor(Color color) { return $"#{color.R.ToString("x2").ToUpper()}{color.G.ToString("x2").ToUpper()}{color.B.ToString("x2").ToUpper()}"; } private void SendMessage() { if (!tbInput.Text.IsNullOrWhitespace()) { MessageSent?.Invoke(tbInput.Text.Trim()); AppendMessageFromThisUser(tbInput.Text.Trim()); tbInput.Text = ""; tbInput.SelectionStart = 0; } } private void tbInput_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r' || e.KeyChar == '\n') { e.Handled = true; SendMessage(); } } private void btnSend_Click(object sender, EventArgs e) { SendMessage(); } private void ConversationForm_Load(object sender, EventArgs e) { VoipClientOnPhoneStateChanged(_voipClient.PhoneState); } private void Invoke(Action action) { if(this.InvokeRequired) { this.Invoke(new MethodInvoker(action)); } else { action(); } } private void btnCall_Click(object sender, EventArgs e) { btnCall.Enabled = false; btnHangUp.Enabled = false; btnCall.BackColor = _disabledBtnColor; btnHangUp.BackColor = _disabledBtnColor; switch (_voipClient.PhoneState.Status) { case PhoneStatus.IncomingCall: { _voipClient.AnswerCall(); break; } case PhoneStatus.Registered: { _voipClient.StartCall(_otherUserId); break; } } } private void btnHangUp_Click(object sender, EventArgs e) { btnCall.Enabled = false; btnHangUp.Enabled = false; btnCall.BackColor = _disabledBtnColor; btnHangUp.BackColor = _disabledBtnColor; switch (_voipClient.PhoneState.Status) { case PhoneStatus.IncomingCall: { _voipClient.RejectCall(); break; } case PhoneStatus.InCall: { _voipClient.EndCall(); break; } case PhoneStatus.Calling: { _voipClient.EndCall(); break; } } } } }
EMJK/Projekt_WTI_TIP
Client/ConversationForm.cs
C#
mit
8,027
/* * PokeDat - A Pokemon Data API. * Copyright (C) 2015 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package io.github.kaioru.species; import java.io.Serializable; /** * @todo Class Description * * @author Kaioru **/ public class SpeciesLearnset implements Serializable { private static final long serialVersionUID = 5370581555765470935L; }
Kaioru/PokeDat
PokeDat-Data/src/main/java/io/github/kaioru/species/SpeciesLearnset.java
Java
mit
1,388
export { default } from './ui' export * from './ui.selectors' export * from './tabs'
Trampss/kriya
examples/redux/ui/index.js
JavaScript
mit
85
<?php /* * This File is part of the Lucid\Common\Tests\Struct package * * (c) iwyg <mail@thomas-appel.com> * * For full copyright and license information, please refer to the LICENSE file * that was distributed with this package. */ namespace Lucid\Common\Tests\Struct; use Lucid\Common\Struct\Items; /** * @class ItemsTest * * @package Lucid\Common\Tests\Struct * @version $Id$ * @author iwyg <mail@thomas-appel.com> */ class ItemsTest extends \PHPUnit_Framework_TestCase { /** @test */ public function testConstructWithData() { $list = new Items(1, 2, 3, 4, 5); $this->assertEquals(5, count($list)); $this->assertEquals([1, 2, 3, 4, 5], $list->toArray()); } /** @test */ public function testPop() { $list = new Items(1, 2, 3, 4, 5); $this->assertEquals(5, $list->pop()); $this->assertEquals(2, $list->pop(1)); $this->assertEquals(4, $list->pop(2)); } /** @test */ public function popShouldThrowErrorOnInvalidIndex() { $list = new Items(1, 2); try { $this->assertEquals(4, $list->remove(3)); } catch (\InvalidArgumentException $e) { $this->assertTrue(true); return; } $this->fail(); } /** @test */ public function testInsert() { $list = new Items(1, 2, 3, 4, 5); $list->insert(3, 'foo'); $this->assertEquals([1, 2, 3, 'foo', 4, 5], $list->toArray()); } /** @test */ public function testCountValue() { $list = new Items(1, 'red', 'green', 3, 'blue', 4, 'red', 5); $this->assertEquals(2, $list->countValue('red')); $this->assertEquals(1, $list->countValue('green')); } /** @test */ public function testSort() { $list = new Items(120, -1, 3, 20, -110); $list->sort(); $this->assertEquals([-110, -1, 3, 20, 120], $list->toArray()); } /** @test */ public function testRemove() { $list = new Items(1, 2, 3, 4, 5); $list->remove(3); $this->assertEquals([1, 2, 4, 5], $list->toArray()); $list = new Items('red', 'green', 'blue'); $list->remove('green'); $this->assertEquals(['red', 'blue'], $list->toArray()); } /** @test */ public function testReverse() { $list = new Items(1, 2, 3, 4, 5); $list->reverse(); $this->assertEquals([5, 4, 3, 2, 1], $list->toArray()); } /** @test */ public function testExtend() { $listA = new Items(1, 2, 3, 4, 5); $listB = new Items('red', 'green'); $listA->extend($listB); $this->assertEquals([1, 2, 3, 4, 5, 'red', 'green'], $listA->toArray()); } }
iwyg/common
tests/Struct/ItemsTest.php
PHP
mit
2,769
<input type="hidden" id="permission" value="<?php echo $permission;?>"> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header"> <h3 class="box-title">Usuarios</h3> <?php if (strpos($permission,'Add') !== false) { echo '<button class="btn btn-block btn-success" style="width: 100px; margin-top: 10px;" data-toggle="modal" onclick="LoadUsr(0,\'Add\')" id="btnAdd">Agregar</button>'; } ?> </div><!-- /.box-header --> <div class="box-body"> <table id="users" class="table table-bordered table-hover"> <thead> <tr> <th>Usuario</th> <th>Nombre</th> <th>Apellido</th> <th>Comisión</th> <th width="20%">Acciones</th> </tr> </thead> <tbody> <?php foreach($list as $u) { //var_dump($u); echo '<tr>'; echo '<td style="text-align: left">'.$u['usrNick'].'</td>'; echo '<td style="text-align: left">'.$u['usrName'].'</td>'; echo '<td style="text-align: left">'.$u['usrLastName'].'</td>'; echo '<td style="text-align: right">'.$u['usrComision'].' %</td>'; echo '<td>'; if (strpos($permission,'Add') !== false) { echo '<i class="fa fa-fw fa-pencil" style="color: #f39c12; cursor: pointer; margin-left: 15px;" onclick="LoadUsr('.$u['usrId'].',\'Edit\')"></i>'; } if (strpos($permission,'Del') !== false) { echo '<i class="fa fa-fw fa-times-circle" style="color: #dd4b39; cursor: pointer; margin-left: 15px;" onclick="LoadUsr('.$u['usrId'].',\'Del\')"></i>'; } if (strpos($permission,'View') !== false) { echo '<i class="fa fa-fw fa-search" style="color: #3c8dbc; cursor: pointer; margin-left: 15px;" onclick="LoadUsr('.$u['usrId'].',\'View\')"></i>'; } echo '</td>'; echo '</tr>'; } ?> </tbody> </table> </div><!-- /.box-body --> </div><!-- /.box --> </div><!-- /.col --> </div><!-- /.row --> </section><!-- /.content --> <script> $(function () { //$("#groups").DataTable(); $('#users').DataTable({ "paging": true, "lengthChange": true, "searching": true, "ordering": true, "info": true, "autoWidth": true, "language": { "lengthMenu": "Ver _MENU_ filas por página", "zeroRecords": "No hay registros", "info": "Mostrando pagina _PAGE_ de _PAGES_", "infoEmpty": "No hay registros disponibles", "infoFiltered": "(filtrando de un total de _MAX_ registros)", "sSearch": "Buscar: ", "oPaginate": { "sNext": "Sig.", "sPrevious": "Ant." } } }); }); var idUsr = 0; var acUsr = ''; function LoadUsr(id_, action){ idUsr = id_; acUsr = action; LoadIconAction('modalAction',action); WaitingOpen('Cargando Usuario'); $.ajax({ type: 'POST', data: { id : id_, act: action }, url: 'index.php/user/getUser', success: function(result){ WaitingClose(); $("#modalBodyUsr").html(result.html); setTimeout("$('#modalUsr').modal('show')",800); }, error: function(result){ WaitingClose(); alert("error"); }, dataType: 'json' }); } $('#btnSave').click(function(){ if(acUsr == 'View') { $('#modalUsr').modal('hide'); return; } var hayError = false; if($('#usrNick').val() == '') { hayError = true; } if($('#usrName').val() == '') { hayError = true; } if($('#usrLastName').val() == '') { hayError = true; } if($('#usrComision').val() == '') { hayError = true; } if($('#usrPassword').val() != $('#usrPasswordConf').val()){ hayError = true; } if(hayError == true){ $('#errorUsr').fadeIn('slow'); return; } $('#errorUsr').fadeOut('slow'); WaitingOpen('Guardando cambios'); $.ajax({ type: 'POST', data: { id : idUsr, act: acUsr, usr: $('#usrNick').val(), name: $('#usrName').val(), lnam: $('#usrLastName').val(), com: $('#usrComision').val(), pas: $('#usrPassword').val(), grp: $('#grpId').val() }, url: 'index.php/user/setUser', success: function(result){ WaitingClose(); $('#modalUsr').modal('hide'); setTimeout("cargarView('user', 'index', '"+$('#permission').val()+"');",1000); }, error: function(result){ WaitingClose(); alert("error"); }, dataType: 'json' }); }); </script> <!-- Modal --> <div class="modal fade" id="modalUsr" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <h4 class="modal-title" id="myModalLabel"><span id="modalAction"> </span> Usuario</h4> </div> <div class="modal-body" id="modalBodyUsr"> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button> <button type="button" class="btn btn-primary" id="btnSave">Guardar</button> </div> </div> </div> </div>
sergiojaviermoyano/sideli
application/views/users/list.php
PHP
mit
6,178
using System; using System.Diagnostics.CodeAnalysis; namespace Delimited.Data.Exceptions { [Serializable, ExcludeFromCodeCoverage] public class DelimitedReaderException : Exception { // // For guidelines regarding the creation of new exception types, see // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp // and // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp // public DelimitedReaderException() { } public DelimitedReaderException(string message) : base(message) { } public DelimitedReaderException(string message, Exception inner) : base(message, inner) { } protected DelimitedReaderException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } } }
putridparrot/Delimited.Data
Delimited.Data/Exceptions/DelimitedReaderException.cs
C#
mit
904
import numpy as np from numpy import cumsum, sum, searchsorted from numpy.random import rand import math import utils import core.sentence as sentence import core.markovchain as mc import logging logger = logging.getLogger(__name__) # Dialogue making class. Need to review where to return a string, where to return a list of tokens, etc. # setters: list of speakers, pronouns, priors etc. # random transitions # Internal: build list of structures: # e.g.{:speaker_name "Alice", :speaker_pronoun "she", :speaker_str "she", :speech_verb "said", :position "end"} # Then end with fn that maps that out to a suitable string # e.g. "<SPEECH>, she said." # External bit then replaces <SPEECH> with a markov-chain-generated sentence (or several). class dialogue_maker(object): """Class to handle creating dialogue based on a list of speakers and a sentence generator.""" def __init__(self, names, pronouns, mc): self.speakers = [{"name": n, "pronoun": p} for n, p in list(zip(names, pronouns))] self._transitions = self.make_transition_probs() self._speech_acts = ["said", "whispered", "shouted", "cried"] self._acts_transitions = [25, 2, 2, 2] self.mc = mc # self.seeds = seeds self.target_len = np.random.randint(5, 50, size=len(names)) # rough words per sentence def make_transition_probs(self): """Make transition matrix between speakers, with random symmetric biases added in""" n = len(self.speakers) # TODO why this line ??? transitions = np.random.randint(5, size=(n, n)) + 1 transitions += transitions.transpose() for i in range(0, math.floor(n / 2)): s1 = np.random.randint(n) s2 = np.random.randint(n) transitions[s1][s2] += 10 transitions[s2][s1] += 8 return(transitions) def after(self, speaker_id): """Pick next person to speak""" row = self._transitions[speaker_id] sucessor = searchsorted(cumsum(row), rand() * sum(row)) return sucessor def speaker_sequence(self, speaker_id, n): """Random walk through transitions matrix to produce a sequence of speaker ids""" seq = [] for i in range(n): seq.append(speaker_id) speaker_id = self.after(speaker_id) return seq def speech_sequence(self, n): speech_acts_seq = [] next_speech_id = 0 for i in range(n): next_speech_id = searchsorted(cumsum(self._acts_transitions), rand() * sum(self._acts_transitions)) speech_acts_seq.append(self._speech_acts[next_speech_id]) return speech_acts_seq def seq_to_names(self, sequence): return([self.speakers[id] for id in sequence]) def make_speech_bits(self, seeds): n = len(seeds) speaker_id = self.speaker_sequence(0, n) speech_acts_seq = self.speech_sequence(n) bits = [] ss = sentence.SentenceMaker(self.mc) for i in range(n): sent_toks = ss.generate_sentence_tokens([seeds[i]], self.target_len[speaker_id[i]]) sent_toks = ss.polish_sentence(sent_toks) bits.append({'speaker_name': self.speakers[speaker_id[i]]["name"], 'speech_act': speech_acts_seq[speaker_id[i]], 'seq_id': speaker_id[i], 'speech': sent_toks, 'paragraph': True}) return(bits) def simplify(self, seq_map): "Take a sequence of speech parts and make more natural by removing name reptition etc." for i in range(0, len(seq_map)): seq_map[i]['speaker_str'] = seq_map[i]['speaker_name'] # default # Same speaker contiues: if i > 0 and seq_map[i]['seq_id'] == seq_map[i - 1]['seq_id']: seq_map[i]['speaker_str'] = "" seq_map[i]['speech_act'] = "" seq_map[i]['paragraph'] = False else: if i > 1 and seq_map[i]['seq_id'] == seq_map[i - 2]['seq_id'] \ and seq_map[i]['seq_id'] != seq_map[i - 1]['seq_id']: seq_map[i]['speaker_str'] = "" seq_map[i]['speech_act'] = "" seq_map[i]['paragraph'] = True return seq_map def report_seq(self, seq_map): """Convert sequence of speeches to a tokens.""" sents = [] for i in range(0, len(seq_map)): if seq_map[i]['paragraph']: # text += "\n " quote_start = '"' else: quote_start = "" if i > len(seq_map) - 2 or seq_map[i + 1]['paragraph']: quote_end = '"' else: quote_end = " " if len(seq_map[i]['speech_act']) > 0: speech_act = seq_map[i]['speech_act'] + "," else: speech_act = seq_map[i]['speech_act'] tokens = [utils.START_TOKEN] tokens.append(seq_map[i]['speaker_str']) tokens.append(speech_act) tokens.append(quote_start) tokens.extend(seq_map[i]['speech'][1:-1]) tokens.append(quote_end) tokens.append(utils.END_TOKEN) sents.append(tokens) return sents def make_dialogue(self, seeds): """Returns a list of sentences, each being a list of tokens.""" acts = self.make_speech_bits(seeds) seq_map = self.simplify(acts) sents = self.report_seq(seq_map) return(sents) def dev(): import knowledge.names as names mcW = mc.MarkovChain() nm = names.NameMaker() speakers = [nm.random_person() for i in range(1, 4)] dm = dialogue_maker([n['name'] for n in speakers], [n['pronoun'] for n in speakers], mcW) dlg = dm.make_dialogue(["dog", "run", "spot"]) print(dlg)
dcorney/text-generation
core/dialogue.py
Python
mit
5,911
/* Credits: Most of the original code seems to have been written by George Michael Brower. The changes I've made include adding background particle animations, text placement and modification, and integration with a sparkfun heart rate monitor by using Pubnub and johnny-five. INSTRUCTIONS - npm install pubnub@3.15.2 - npm install johnny-five - node Board.js to hook up to johnnyfive */ function FizzyText(message) { var that = this; // These are the variables that we manipulate with gui-dat. // Notice they're all defined with "this". That makes them public. // Otherwise, gui-dat can't see them. this.growthSpeed = 0.98; // how fast do particles change size? // this.maxSize = getRandomIntInclusive(3, 4); // how big can they get? this.maxSize = 1.3; this.noiseStrength = 1.9; // how turbulent is the flow? this.bgNoiseStrength = 10; this.speed = 0; // how fast do particles move? this.bgSpeed = 0.4; this.displayOutline = false; // should we draw the message as a stroke? this.framesRendered = 0; // this.color0 = "#00aeff"; // this.color1 = "#0fa954"; // this.color2 = "#54396e"; // this.color3 = "#e61d5f"; // this.color0 = "#ffdcfc"; // this.color1 = "#c8feff"; // this.color2 = "#ffffff"; // this.color3 = "#c8feff"; this.color0 = "#f0cf5b"; this.color1 = "#2abbf2"; this.color2 = "#660aaf"; this.color3 = "#f57596"; this.bgParticleColor = "#ffffff"; this.fontSize = 100; this.fontWeight = 800; // __defineGetter__ and __defineSetter__ make JavaScript believe that // we've defined a variable 'this.message'. This way, whenever we // change the message variable, we can call some more functions. this.__defineGetter__("message", function() { return message; }); this.__defineSetter__("message", function(m) { message = m; createBitmap(message); }); // We can even add functions to the DAT.GUI! As long as they have 0 argumets, // we can call them from the dat-gui panel. this.explode = function() { var mag = Math.random() * 30 + 30; for (var i in particles) { var angle = Math.random() * Math.PI * 2; particles[i].vx = Math.cos(angle) * mag; particles[i].vy = Math.sin(angle) * mag; } }; //////////////////////////////// var _this = this; var width = window.innerWidth; var height = window.innerHeight; // var textAscent = Math.random() * height; // for trans var textAscent = height / 2; // for cisco // var textOffsetLeft = Math.random() * width; var textOffsetLeft = 0; var noiseScale = 300; var frameTime = 30; // Keep the message within the canvas height bounds while ((textAscent > height - 100) || textAscent < 100) { textAscent = Math.random() * height; } var colors = [_this.color0, _this.color1, _this.color2, _this.color3]; // This is the context we use to get a bitmap of text using the // getImageData function. var r = document.createElement('canvas'); var s = r.getContext('2d'); // This is the context we actually use to draw. var c = document.createElement('canvas'); var g = c.getContext('2d'); r.setAttribute('width', width); c.setAttribute('width', width); r.setAttribute('height', height); c.setAttribute('height', height); // Add our demo to the HTML document.getElementById('fizzytext').appendChild(c); // Stores bitmap image var pixels = []; // Stores a list of particles var particles = []; var bgParticles = []; // Set g.font to the same font as the bitmap canvas, incase we want to draw some outlines var fontAttr = _this.fontWeight + " " + _this.fontSize + "px helvetica, arial, sans-serif"; s.font = g.font = fontAttr; // Instantiate some particles for (var i = 0; i < 2000; i++) { particles.push(new Particle(Math.random() * width, Math.random() * height)); } // 2nd perlin field for (var i = 0; i < 1000; i++) { // 10k particles bgParticles.push(new bgParticle(Math.random() * width, Math.random() * height)); } // This function creates a bitmap of pixels based on your message // It's called every time we change the message property. var createBitmap = function(msg) { s.fillStyle = "#fff"; s.fillRect(0, 0, width, height); s.fillStyle = "#222"; // Keep the message within canvas width bounds var msgWidth = s.measureText(msg).width; // while (textOffsetLeft + msgWidth > widthw) { // // textOffsetLeft = Math.random() * width; // } textOffsetLeft = (width - msgWidth) / 2; s.fillText(msg, textOffsetLeft, textAscent); // Pull reference var imageData = s.getImageData(0, 0, width, height); pixels = imageData.data; }; // Called once per frame, updates the animation. var render = function() { that.framesRendered++; // g.clearRect(0, 0, width, height); // Set the shown canvas background as black g.rect(0, 0, width, height); g.fillStyle = "black"; // for trans // g.fillStyle = "#eee"; // for cisco g.fill(); if (_this.displayOutline) { g.globalCompositeOperation = "source-over"; // g.strokeStyle = "#000"; // for trans g.strokeStyle = "#fff"; g.font = _this.fontSize + "px helvetica, arial, sans-serif"; // took out font weight g.lineWidth = .5; g.strokeText(message, textOffsetLeft, textAscent); } g.globalCompositeOperation = "darker"; // Choose particle color for (var i = 0; i < particles.length; i++) { g.fillStyle = colors[i % colors.length]; particles[i].render(); } // Choose bg particle color (white for testing) for (var i = 0; i < bgParticles.length; i++) { g.fillStyle = _this.bgParticleColor; bgParticles[i].render(); } }; // Func tells me where x, y is for each pixel of the text // Returns x, y coordinates for a given index in the pixel array. var getPosition = function(i) { return { x: (i - (width * 4) * Math.floor(i / (width * 4))) / 4, y: Math.floor(i / (width * 4)) }; }; // Returns a color for a given pixel in the pixel array var getColor = function(x, y) { var base = (Math.floor(y) * width + Math.floor(x)) * 4; var c = { r: pixels[base + 0], g: pixels[base + 1], b: pixels[base + 2], a: pixels[base + 3] }; return "rgb(" + c.r + "," + c.g + "," + c.b + ")"; }; // This calls the setter we've defined above, so it also calls // the createBitmap function this.message = message; // Set the canvas bg // document.getElementById('fizzytext').style.backgroundColor = colors[Math.floor(Math.random() * 4)] function resizeCanvas() { r.width = window.innerWidth; c.width = window.innerWidth; r.height = window.innerHeight; c.height = window.innerHeight; } var loop = function() { // Reset color array colors = [_this.color0, _this.color1, _this.color2, _this.color3]; // Change colors from dat.gui s.font = g.font = _this.fontWeight + " " + _this.fontSize + "px helvetica, arial, sans-serif"; createBitmap(message); // _this.fontSize += 1; resizeCanvas(); render(); requestAnimationFrame(loop); } // This calls the render function every 30ms loop(); ///////////////////////////////////////////// // This class is responsible for drawing and moving those little // colored dots. function Particle(x, y, c) { // Position this.x = x; this.y = y; // Size of particle this.r = 0; // This velocity is used by the explode function. this.vx = 0; this.vy = 0; this.constrain = function(v, o1, o2) { if (v < o1) v = o1; else if (v > o2) v = o2; return v; }; // Called every frame this.render = function () { // What color is the pixel we're sitting on top of? var c = getColor(this.x, this.y); // Where should we move? var angle = noise(this.x / noiseScale, this.y / noiseScale) * _this.noiseStrength; // Are we within the boundaries of the image? var onScreen = this.x > 0 && this.x < width && this.y > 0 && this.y < height; var isBlack = c != "rgb(255,255,255)" && onScreen; // If we're on top of a black pixel, grow. // If not, shrink. if (isBlack) { this.r += _this.growthSpeed; } else { this.r -= _this.growthSpeed; } // This velocity is used by the explode function. this.vx *= 0.5; this.vy *= 0.5; // Change our position based on the flow field and our explode velocity. this.x += Math.cos(angle) * _this.speed + this.vx; this.y += -Math.sin(angle) * _this.speed + this.vy; // this.r = 3; // debugger // console.log(DAT.GUI.constrain(this.r, 0, _this.maxSize)); this.r = this.constrain(this.r, 0, _this.maxSize); // If we're tiny, keep moving around until we find a black pixel. if (this.r <= 0) { this.x = Math.random() * width; this.y = Math.random() * height; return; // Don't draw! } // Draw the circle. g.beginPath(); g.arc(this.x, this.y, this.r, 0, Math.PI * 2, false); g.fill(); } } function bgParticle(x, y, c) { // Position this.x = x; this.y = y; // Size of particle this.r = 0; // This velocity is used by the explode function. this.vx = 0; this.vy = 0; this.constrain = function(v, o1, o2) { if (v < o1) v = o1; else if (v > o2) v = o2; return v; }; // Called every frame this.render = function () { // What color is the pixel we're sitting on top of? var c = getColor(this.x, this.y); // Where should we move? var angle = noise(this.x / noiseScale, this.y / noiseScale) * _this.bgNoiseStrength; // Are we within the boundaries of the image? var onScreen = this.x > 0 && this.x < width && this.y > 0 && this.y < height; var isBlack = c != "rgb(255,255,255)" && onScreen; // If we're on top of a black pixel, grow. // If not, shrink. if (isBlack) { this.r -= _this.growthSpeed / 2; // this.r -= Math.abs(Math.sin(_this.growthSpeed)); } else { // this.r += _this.growthSpeed / 2; this.r += Math.abs(Math.sin(_this.growthSpeed)); } // if not on screen respawn somewhere random if (!onScreen) { this.x = Math.random() * width; this.y = Math.random() * height; } // This velocity is used by the explode function. this.vx *= 0.5; this.vy *= 0.5; // Change our position based on the flow field and our explode velocity. this.x += Math.cos(angle) * _this.bgSpeed + this.vx; this.y += -Math.sin(angle) * _this.bgSpeed + this.vy; // this.r = 3; // debugger // console.log(DAT.GUI.constrain(this.r, 0, _this.maxSize)); this.r = this.constrain(this.r, 0, 2); // If we're tiny, keep moving around until we find a black pixel. if (this.r <= 0) { this.x = Math.random() * width; this.y = Math.random() * height; return; // Don't draw! } // Draw the circle. g.beginPath(); g.arc(this.x, this.y, this.r, 0, Math.PI * 2, false); g.fill(); } } } function getRandomIntInclusive(min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min + 1)) + min; }
mattchiang-gsp/mattchiang-gsp.github.io
FizzyText.js
JavaScript
mit
12,644
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2020_08_01 module Models # # Response for ApplicationGatewayBackendHealth API service call. # class ApplicationGatewayBackendHealth include MsRestAzure # @return [Array<ApplicationGatewayBackendHealthPool>] A list of # ApplicationGatewayBackendHealthPool resources. attr_accessor :backend_address_pools # # Mapper for ApplicationGatewayBackendHealth class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ApplicationGatewayBackendHealth', type: { name: 'Composite', class_name: 'ApplicationGatewayBackendHealth', model_properties: { backend_address_pools: { client_side_validation: true, required: false, serialized_name: 'backendAddressPools', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ApplicationGatewayBackendHealthPoolElementType', type: { name: 'Composite', class_name: 'ApplicationGatewayBackendHealthPool' } } } } } } } end end end end
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2020-08-01/generated/azure_mgmt_network/models/application_gateway_backend_health.rb
Ruby
mit
1,726
define("resolver", [], function() { "use strict"; /* * This module defines a subclass of Ember.DefaultResolver that adds two * important features: * * 1) The resolver makes the container aware of es6 modules via the AMD * output. The loader's _seen is consulted so that classes can be * resolved directly via the module loader, without needing a manual * `import`. * 2) is able provide injections to classes that implement `extend` * (as is typical with Ember). */ function classFactory(klass) { return { create: function (injections) { if (typeof klass.extend === 'function') { return klass.extend(injections); } else { return klass; } } }; } var underscore = Ember.String.underscore; var classify = Ember.String.classify; var get = Ember.get; function parseName(fullName) { var nameParts = fullName.split(":"), type = nameParts[0], fullNameWithoutType = nameParts[1], name = fullNameWithoutType, namespace = get(this, 'namespace'), root = namespace; return { fullName: fullName, type: type, fullNameWithoutType: fullNameWithoutType, name: name, root: root, resolveMethodName: "resolve" + classify(type) }; } function chooseModuleName(seen, moduleName) { var underscoredModuleName = Ember.String.underscore(moduleName); if (moduleName !== underscoredModuleName && seen[moduleName] && seen[underscoredModuleName]) { throw new TypeError("Ambigous module names: `" + moduleName + "` and `" + underscoredModuleName + "`"); } if (seen[moduleName]) { return moduleName; } else if (seen[underscoredModuleName]) { return underscoredModuleName; } else { return moduleName; } } function resolveOther(parsedName) { var prefix = this.namespace.modulePrefix; Ember.assert('module prefix must be defined', prefix); var pluralizedType = parsedName.type + 's'; var name = parsedName.fullNameWithoutType; var moduleName = prefix + '/' + pluralizedType + '/' + name; // allow treat all dashed and all underscored as the same thing // supports components with dashes and other stuff with underscores. var normalizedModuleName = chooseModuleName(requirejs._eak_seen, moduleName); if (requirejs._eak_seen[normalizedModuleName]) { var module = require(normalizedModuleName, null, null, true /* force sync */); if (module === undefined) { throw new Error("Module: '" + name + "' was found but returned undefined. Did you forget to `export default`?"); } if (Ember.ENV.LOG_MODULE_RESOLVER) { Ember.Logger.info('hit', moduleName); } return module; } else { if (Ember.ENV.LOG_MODULE_RESOLVER) { Ember.Logger.info('miss', moduleName); } return this._super(parsedName); } } function resolveTemplate(parsedName) { return Ember.TEMPLATES[parsedName.name] || Ember.TEMPLATES[Ember.String.underscore(parsedName.name)]; } // Ember.DefaultResolver docs: // https://github.com/emberjs/ember.js/blob/master/packages/ember-application/lib/system/resolver.js var Resolver = Ember.DefaultResolver.extend({ resolveTemplate: resolveTemplate, resolveOther: resolveOther, parseName: parseName, normalize: function(fullName) { // replace `.` with `/` in order to make nested controllers work in the following cases // 1. `needs: ['posts/post']` // 2. `{{render "posts/post"}}` // 3. `this.render('posts/post')` from Route return Ember.String.dasherize(fullName.replace(/\./g, '/')); } }); return Resolver; });
bmac/aircheck
vendor/resolver.js
JavaScript
mit
3,757
package billing; import cuke4duke.Then; import cuke4duke.Given; import static org.junit.Assert.assertTrue; public class CalledSteps { private boolean magic; @Given("^it is (.*)$") public void itIs(String what) { if(what.equals("magic")) { magic = true; } } @Then("^magic should happen$") public void magicShouldHappen() { assertTrue(magic); } }
torbjornvatn/cuke4duke
examples/guice/src/test/java/billing/CalledSteps.java
Java
mit
413
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::CognitiveServices::ContentModerator::V1_0 module Models # # Detected SSN details. # class SSN include MsRestAzure # @return [String] Detected SSN in the input text content. attr_accessor :text # @return [Integer] Index(Location) of the SSN in the input text content. attr_accessor :index # # Mapper for SSN class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SSN', type: { name: 'Composite', class_name: 'SSN', model_properties: { text: { client_side_validation: true, required: false, serialized_name: 'Text', type: { name: 'String' } }, index: { client_side_validation: true, required: false, serialized_name: 'Index', type: { name: 'Number' } } } } } end end end end
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/ssn.rb
Ruby
mit
1,419
(function() { 'use strict'; var express = require('express'); var path = require('path'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/index'); var app = express(); // view engine setup app.set('views', path.join(__dirname, 'views')); app.engine('html', require('ejs').renderFile); app.set('view engine', 'html'); app.use(logger('dev')); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); app.use(cookieParser()); app.use(express.static(path.join(__dirname, '../client'))); app.use('/', routes); app.set('port', process.env.PORT || 3000); var server = app.listen(app.get('port'), function() { console.log('Express server listening on port ' + server.address().port); }); module.exports = app; }());
akashpjames/Expenses-App
server/app.js
JavaScript
mit
886
#include "randomplayer.h" #include <QDirIterator> void RandomPlayer::start() { this->setMedia(QUrl::fromLocalFile(fileList.takeFirst())); this->play(); this->_readyToPlay = true; } void RandomPlayer::quitPlayMode() { this->_readyToPlay = false; this->stop(); } bool RandomPlayer::isPlayMode(){ return this->_readyToPlay; } void RandomPlayer::initList(bool includePiano, bool includeChants, bool includeMelodies) { QString basedir = iPlayer::getMusicRoot(); QStringList listFilter; listFilter << "*.mp3"; if(!includePiano && !includeChants && !includeMelodies) { includePiano = true; } if (includePiano) { QDirIterator dirIterator(basedir+"/cantiques/", listFilter ,QDir::Files | QDir::NoSymLinks, QDirIterator::Subdirectories); while(dirIterator.hasNext()) { fileList << dirIterator.next(); } } if (includeChants) { QDirIterator dirIterator(basedir+"/chants/", listFilter ,QDir::Files | QDir::NoSymLinks, QDirIterator::Subdirectories); while(dirIterator.hasNext()) { fileList << dirIterator.next(); } } if (includeMelodies) { QDirIterator dirIterator(basedir+"/melodies/", listFilter ,QDir::Files | QDir::NoSymLinks, QDirIterator::Subdirectories); while(dirIterator.hasNext()) { fileList << dirIterator.next(); } } std::random_shuffle(fileList.begin(), fileList.end()); }
ArnaudBenassy/sono_manager
randomplayer.cpp
C++
mit
1,499
"use strict"; var C = function () { function C() { babelHelpers.classCallCheck(this, C); } babelHelpers.createClass(C, [{ key: "m", value: function m(x) { return 'a'; } }]); return C; }();
kedromelon/babel
packages/babel-plugin-transform-flow-strip-types/test/fixtures/regression/transformed-class-method-return-type-annotation/expected.js
JavaScript
mit
223
/** * The MIT License (MIT) * * Copyright (c) 2015 Vincent Vergnolle * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package org.vas.notification; import java.time.LocalDateTime; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.vas.domain.repository.Address; import org.vas.domain.repository.User; import org.vas.notification.domain.repository.NotificationService; /** * Notification worker for limited users * */ public class NotificationWorker implements Runnable { protected final Logger logger = LoggerFactory.getLogger(getClass()); protected final List<User> users; protected final Notifier notifier; protected final NotificationService notificationService; public NotificationWorker(List<User> users, NotificationService notificationService, Notifier notifier) { super(); this.users = users; this.notifier = notifier; this.notificationService = notificationService; } @Override public void run() { if(logger.isTraceEnabled()) { logger.trace("Start worker with {} users", users); } users.forEach(this::notifyUser); } protected void notifyUser(User user) { user.addresses.forEach((address) -> notifyAddress(user, address)); } protected void notifyAddress(User user, Address address) { if(logger.isTraceEnabled()) { logger.trace("Notify address {} - {}", user.username, address.label); } notificationService.listByAddress(address).forEach(notif -> doNotify(user, address, notif)); } protected void doNotify(User user, Address address, Notification notification) { if(notification.isTime(LocalDateTime.now())) { dispatch(user, address, notification); } } protected void dispatch(User user, Address address, Notification notification) { if(logger.isTraceEnabled()) { logger.trace("Dispatch notification n-{}", notification.id); } notifier.dispatch(user, address, notification); } }
vincent7894/vas
vas-notification/src/main/java/org/vas/notification/NotificationWorker.java
Java
mit
2,998
/** @jsx jsx */ import { Transforms } from 'slate' import { jsx } from '../../..' export const run = editor => { Transforms.move(editor, { edge: 'start' }) } export const input = ( <editor> <block> one <anchor /> two t<focus /> hree </block> </editor> ) export const output = ( <editor> <block> one t<anchor /> wo t<focus /> hree </block> </editor> )
ianstormtaylor/slate
packages/slate/test/transforms/move/start/expanded.tsx
TypeScript
mit
414
using UnityEngine; using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization.Formatters.Binary; // Emanuel Strömgren public class DebugTrackerVisualizer : MonoBehaviour { private BinaryFormatter m_Formatter = new BinaryFormatter(); private BinaryFormatter Formatter { get { return m_Formatter; } } [SerializeField] [ContextMenuItem("Load File Data", "LoadData")] private string m_FileName = ""; public string FileName { get { return m_FileName; } } private TrackerData m_Data; public TrackerData Data { get { return m_Data; } protected set { m_Data = value; } } [SerializeField] private float m_ColorRate = 10f; private float ColorRate { get { return m_ColorRate / 1000f; } } [SerializeField] private float m_DirectionLength = 1f; private float DirectionLength { get { return m_DirectionLength; } } [SerializeField] [Range(1, 100)] private int m_TimeStampStep = 10; private int TimeStampStep { get { return m_TimeStampStep; } } #if UNITY_EDITOR void OnDrawGizmosSelected() { if (Data.TrackerTime != null) { for (int i = 0; i < Data.TrackerTime.Count; i += TimeStampStep) { GUIStyle Style = new GUIStyle(); Style.normal.textColor = Color.HSVToRGB((Data.TrackerTime[i] * ColorRate) % 1f, 1f, 1f); UnityEditor.Handles.Label(Data.PlayerPosition[i] + new Vector3(0f, 1f, 0f), Data.TrackerTime[i].ToString("0.00") + "s", Style); } } } void OnDrawGizmos() { if (Data.TrackerTime != null) { for (int i = 0; i < Data.TrackerTime.Count; i++) { Gizmos.color = Color.HSVToRGB((Data.TrackerTime[i] * ColorRate) % 1f, 1f, 1f); if (i > 0) { Gizmos.DrawLine(Data.PlayerPosition[i - 1], Data.PlayerPosition[i]); } Gizmos.DrawRay(Data.PlayerPosition[i], Data.PlayerDirection[i] * DirectionLength); } } } #endif void LoadData() { using (Stream FileStream = File.Open(FileName, FileMode.Open)) { Data = ((SerializableTrackerData)Formatter.Deserialize(FileStream)).Deserialize(); } } }
Towkin/DravenklovaUnity
Assets/Dravenklova/Scripts/PawnScripts/PlayerScripts/DebugTrackerVisualizer.cs
C#
mit
2,459
# -*- coding: utf-8 -*- from django.contrib.admin import TabularInline from .models import GalleryPhoto class PhotoInline(TabularInline): """ Tabular inline that will be displayed in the gallery form during frontend editing or in the admin site. """ model = GalleryPhoto fk_name = "gallery"
izimobil/djangocms-unitegallery
djangocms_unitegallery/admin.py
Python
mit
318
// Copyright (c) 2015, Peter Mrekaj. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE.txt file. // Package epiutil is an utility class with functions // common to all packages in the epi project. package epiutil import "math/rand" // RandStr returns a string of length n constructed // from pseudo-randomly selected characters from t. // The pseudo-randomness uses random values from s. func RandStr(n int, t string, s rand.Source) string { l := len(t) - 1 chars := make([]byte, n) if l > 0 { for i, p := range rand.New(s).Perm(n) { chars[i] = t[p%l] } } return string(chars) }
mrekucci/epi
internal/epiutil/common.go
GO
mit
663
var assert = require('assert'); var fs = require('fs'); var requireFiles = require(__dirname + '/../lib/requireFiles'); var files = [ __dirname + '/moch/custom_test.txt', __dirname + '/moch/json_test.json', __dirname + '/moch/test.js' ]; describe('requireFiles testing', function(){ describe('Structure type', function(){ it('requireFiles should be a function', function(){ assert.equal(typeof requireFiles, 'function'); }); }); describe('Error', function(){ it('Should throw error when an engine isn\'t supported', function(){ assert.throws(function(){ requireFiles(files, { '.js' : require, '.json' : require }); }, /there is no engine registered/); }); it('Should not throw an error when everything is ok', function(){ assert.doesNotThrow(function(){ result = requireFiles(files.slice(1, 3), { '.js' : require, '.json' : require }); }); }); }); describe('Custom engine', function(){ it('Custom engines should work', function(){ var result = requireFiles(files, { '.js' : require, '.json' : require, '.txt' : function(path){ return fs.readFileSync(path).toString(); } }); assert.equal(result[files[0]], 'worked\n'); assert.equal(result[files[1]].worked, true); assert.equal(result[files[2]], 'worked'); }); }); });
cranic/node-requi
test/requireFiles_test.js
JavaScript
mit
1,671
package com.reactnativeexample; import com.facebook.react.ReactActivity; import com.facebook.react.ReactPackage; import com.facebook.react.shell.MainReactPackage; import java.util.Arrays; import java.util.List; public class MainActivity extends ReactActivity { /** * Returns the name of the main component registered from JavaScript. * This is used to schedule rendering of the component. */ @Override protected String getMainComponentName() { return "ReactNativeExample"; } /** * Returns whether dev mode should be enabled. * This enables e.g. the dev menu. */ @Override protected boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } /** * A list of packages used by the app. If the app uses additional views * or modules besides the default ones, add more packages here. */ @Override protected List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList( new MainReactPackage() ); } }
attrs/webmodules
examples/react-native-web/android/app/src/main/java/com/reactnativeexample/MainActivity.java
Java
mit
1,050
/// <reference path="Global.ts" /> /// <reference path="Decks.ts" /> module ScrollsTypes { 'use strict'; export class DeckCards { cards:CardsAndStats[] = []; deck:Deck; constructor(deck:Deck) { this.deck = deck; this.update(); } update():void { var r:Card[] = TypesToCards(this.deck.types, _scrolls); var c:Card[][] = HavingMissingRemainingCards(_cardsReport[1].c, r); this.cards[0] = new CardsAndStats(c[0], true, true); this.cards[1] = new CardsAndStats(c[1], true, true); this.cards[2] = new CardsAndStats(c[2], true, true); } addType(type:number):number { removeDeckStats(this.deck); var added:number = this.deck.addType(type); this.update(); addDeckStats(this.deck); GetDecksStats(); return added; } removeType(type:number):number { removeDeckStats(this.deck); var removed:number = this.deck.removeType(type); this.update(); addDeckStats(this.deck); GetDecksStats(); return removed; } replaceDeck(deck:DeckExtended):void { // this.deck.setDeck(deck.deck); this.deck.deck = deck.deck; // this.deck.setAuthor(deck.author); this.deck.author = deck.author; this.deck.origin = deck.origin; this.replaceTypes(deck.types); } replaceTypes(types:number[]):void { removeDeckStats(this.deck); _.each(_.clone(this.deck.types), (v:number) => { this.deck.removeType(v); }); _.each(types, (v:number) => { this.deck.types.push(v); }); this.deck.update(); this.update(); addDeckStats(this.deck); GetDecksStats(); } } }
darosh/scrolls-and-decks
client/types/DeckCards.ts
TypeScript
mit
1,991
class Admin::<%= file_name.classify.pluralize %>Controller < Admin::BaseController inherit_resources <% if options[:actions].present? %> actions <%= options[:actions].map {|a| ":#{a}"}.join(", ") %> <% else %> actions :all, except: [:show] <% end %> private def collection @<%= file_name.pluralize %> ||= end_of_association_chain.page(params[:page]).per(20) end end
kirs/admin-scaffolds
lib/generators/admin_resource/templates/controller.rb
Ruby
mit
393
package net.inpercima.runandfun.service; import static net.inpercima.runandfun.runkeeper.constants.RunkeeperConstants.ACTIVITIES_MEDIA; import static net.inpercima.runandfun.runkeeper.constants.RunkeeperConstants.ACTIVITIES_URL_PAGE_SIZE_ONE; import static net.inpercima.runandfun.runkeeper.constants.RunkeeperConstants.ACTIVITIES_URL_SPECIFIED_PAGE_SIZE_NO_EARLIER_THAN; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.Collection; import java.util.List; import javax.inject.Inject; import com.google.common.base.Splitter; import com.google.common.base.Strings; import org.elasticsearch.index.query.BoolQueryBuilder; import org.elasticsearch.index.query.QueryBuilders; import org.elasticsearch.index.query.RangeQueryBuilder; import org.springframework.data.domain.Pageable; import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate; import org.springframework.data.elasticsearch.core.SearchHits; import org.springframework.data.elasticsearch.core.mapping.IndexCoordinates; import org.springframework.data.elasticsearch.core.query.NativeSearchQueryBuilder; import org.springframework.stereotype.Service; import lombok.NoArgsConstructor; import lombok.extern.slf4j.Slf4j; import net.inpercima.restapi.service.RestApiService; import net.inpercima.runandfun.app.model.AppActivity; import net.inpercima.runandfun.runkeeper.model.RunkeeperActivities; import net.inpercima.runandfun.runkeeper.model.RunkeeperActivityItem; /** * @author Marcel Jänicke * @author Sebastian Peters * @since 26.01.2015 */ @NoArgsConstructor @Service @Slf4j public class ActivitiesService { // initial release in 2008 according to http://en.wikipedia.org/wiki/RunKeeper private static final LocalDate INITIAL_RELEASE_OF_RUNKEEPER = LocalDate.of(2008, 01, 01); @Inject private AuthService authService; @Inject private RestApiService restApiService; @Inject private ActivityRepository repository; @Inject private ElasticsearchRestTemplate elasticsearchRestTemplate; public int indexActivities(final String accessToken) { final Collection<AppActivity> activities = new ArrayList<>(); final String username = authService.getAppState(accessToken).getUsername(); listActivities(accessToken, calculateFetchDate()).stream().filter(item -> !repository.existsById(item.getId())) .forEach(item -> addActivity(item, username, activities)); log.info("new activities: {}", activities.size()); if (!activities.isEmpty()) { repository.saveAll(activities); } return activities.size(); } /** * List activities live from runkeeper with an accessToken and a date. The full * size will be determined every time but with the given date only the last * items will be collected with a max. of the full size. * * @param accessToken * @param from * @return list of activity items */ private List<RunkeeperActivityItem> listActivities(final String accessToken, final LocalDate from) { log.debug("list activities for token {} until {}", accessToken, from); // get one item only to get full size int pageSize = restApiService .getForObject(ACTIVITIES_URL_PAGE_SIZE_ONE, ACTIVITIES_MEDIA, accessToken, RunkeeperActivities.class) .getBody().getSize(); // list new activities from given date with max. full size return restApiService.getForObject( String.format(ACTIVITIES_URL_SPECIFIED_PAGE_SIZE_NO_EARLIER_THAN, pageSize, from.format(DateTimeFormatter.ISO_LOCAL_DATE)), ACTIVITIES_MEDIA, accessToken, RunkeeperActivities.class).getBody().getItemsAsList(); } private LocalDate calculateFetchDate() { final AppActivity activity = getLastActivity(); return activity == null ? INITIAL_RELEASE_OF_RUNKEEPER : activity.getDate().toLocalDate(); } private void addActivity(final RunkeeperActivityItem item, final String username, final Collection<AppActivity> activities) { final AppActivity activity = new AppActivity(item.getId(), username, item.getType(), item.getDate(), item.getDistance(), item.getDuration()); log.debug("prepare {}", activity); activities.add(activity); } /** * Get last activity from app repository. * * @return last activity */ public AppActivity getLastActivity() { return repository.findTopByOrderByDateDesc(); } /** * Count activities from app repository. * * @return count */ public Long countActivities() { return repository.count(); } /** * List activites from app repository. * * @param pageable * @param types * @param minDate * @param maxDate * @param minDistance * @param maxDistance * @param query * @return */ public SearchHits<AppActivity> listActivities(final Pageable pageable, final String types, final LocalDate minDate, final LocalDate maxDate, final Float minDistance, final Float maxDistance, final String query) { final BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery(); if (!Strings.isNullOrEmpty(types)) { final BoolQueryBuilder typesQuery = QueryBuilders.boolQuery(); for (final String type : Splitter.on(',').split(types)) { typesQuery.should(QueryBuilders.termQuery(AppActivity.FIELD_TYPE, type)); } queryBuilder.must(typesQuery); } if (minDate != null || maxDate != null) { addDateQuery(queryBuilder, minDate, maxDate); } if (minDistance != null || maxDistance != null) { addDistanceQuery(queryBuilder, minDistance, maxDistance); } if (!Strings.isNullOrEmpty(query)) { addFulltextQuery(queryBuilder, query); } if (!queryBuilder.hasClauses()) { queryBuilder.must(QueryBuilders.matchAllQuery()); } log.info("{}", queryBuilder); return elasticsearchRestTemplate.search( new NativeSearchQueryBuilder().withPageable(pageable).withQuery(queryBuilder).build(), AppActivity.class, IndexCoordinates.of("activity")); } private static void addFulltextQuery(final BoolQueryBuilder queryBuilder, final String query) { queryBuilder.must(QueryBuilders.termQuery("_all", query.trim())); } private static void addDateQuery(final BoolQueryBuilder queryBuilder, final LocalDate minDate, final LocalDate maxDate) { final RangeQueryBuilder rangeQuery = QueryBuilders.rangeQuery(AppActivity.FIELD_DATE); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd'T'HHmmss'Z'"); if (minDate != null) { LocalDateTime minDateTime = minDate.atStartOfDay(); rangeQuery.gte(minDateTime.format(formatter)); } if (maxDate != null) { LocalDateTime maxDateTime = maxDate.atStartOfDay(); rangeQuery.lte(maxDateTime.format(formatter)); } queryBuilder.must(rangeQuery); } private static void addDistanceQuery(final BoolQueryBuilder queryBuilder, final Float minDistance, final Float maxDistance) { final RangeQueryBuilder rangeQuery = QueryBuilders.rangeQuery(AppActivity.FIELD_DISTANCE); if (minDistance != null) { rangeQuery.gte(minDistance); } if (maxDistance != null) { rangeQuery.lte(maxDistance); } queryBuilder.must(rangeQuery); } }
inpercima/run-and-fun
server/src/main/java/net/inpercima/runandfun/service/ActivitiesService.java
Java
mit
7,790
export default function() { var links = [ { icon: "fa-sign-in", title: "Login", url: "/login" }, { icon: "fa-dashboard", title: "Dashboard", url: "/" }, { icon: "fa-calendar", title: "Scheduler", url: "/scheduler" } ]; return m("#main-sidebar", [ m("ul", {class: "navigation"}, links.map(function(link) { return m("li", [ m("a", {href: link.url, config: m.route}, [ m("i.menu-icon", {class: "fa " + link.icon}), " ", link.title ]) ]); }) ) ]); }
dolfelt/scheduler-js
src/component/sidebar.js
JavaScript
mit
755
<?php /** * Pure-PHP implementation of SFTP. * * PHP version 5 * * Currently only supports SFTPv2 and v3, which, according to wikipedia.org, "is the most widely used version, * implemented by the popular OpenSSH SFTP server". If you want SFTPv4/5/6 support, provide me with access * to an SFTPv4/5/6 server. * * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}. * * Here's a short example of how to use this library: * <code> * <?php * include 'vendor/autoload.php'; * * $sftp = new \phpseclib\Net\SFTP('www.domain.tld'); * if (!$sftp->login('username', 'password')) { * exit('Login Failed'); * } * * echo $sftp->pwd() . "\r\n"; * $sftp->put('filename.ext', 'hello, world!'); * print_r($sftp->nlist()); * ?> * </code> * * @category Net * @package SFTP * @author Jim Wigginton <terrafrost@php.net> * @copyright 2009 Jim Wigginton * @license http://www.opensource.org/licenses/mit-license.html MIT License * @link http://phpseclib.sourceforge.net */ namespace phpseclib\Net; use ParagonIE\ConstantTime\Hex; use phpseclib\Exception\FileNotFoundException; use phpseclib\Common\Functions\Strings; /** * Pure-PHP implementations of SFTP. * * @package SFTP * @author Jim Wigginton <terrafrost@php.net> * @access public */ class SFTP extends SSH2 { /** * SFTP channel constant * * \phpseclib\Net\SSH2::exec() uses 0 and \phpseclib\Net\SSH2::read() / \phpseclib\Net\SSH2::write() use 1. * * @see \phpseclib\Net\SSH2::send_channel_packet() * @see \phpseclib\Net\SSH2::get_channel_packet() * @access private */ const CHANNEL = 0x100; /**#@+ * @access public * @see \phpseclib\Net\SFTP::put() */ /** * Reads data from a local file. */ const SOURCE_LOCAL_FILE = 1; /** * Reads data from a string. */ // this value isn't really used anymore but i'm keeping it reserved for historical reasons const SOURCE_STRING = 2; /** * Reads data from callback: * function callback($length) returns string to proceed, null for EOF */ const SOURCE_CALLBACK = 16; /** * Resumes an upload */ const RESUME = 4; /** * Append a local file to an already existing remote file */ const RESUME_START = 8; /**#@-*/ /** * Packet Types * * @see self::__construct() * @var array * @access private */ private $packet_types = []; /** * Status Codes * * @see self::__construct() * @var array * @access private */ private $status_codes = []; /** * The Request ID * * The request ID exists in the off chance that a packet is sent out-of-order. Of course, this library doesn't support * concurrent actions, so it's somewhat academic, here. * * @var boolean * @see self::_send_sftp_packet() * @access private */ private $use_request_id = false; /** * The Packet Type * * The request ID exists in the off chance that a packet is sent out-of-order. Of course, this library doesn't support * concurrent actions, so it's somewhat academic, here. * * @var int * @see self::_get_sftp_packet() * @access private */ private $packet_type = -1; /** * Packet Buffer * * @var string * @see self::_get_sftp_packet() * @access private */ private $packet_buffer = ''; /** * Extensions supported by the server * * @var array * @see self::_initChannel() * @access private */ private $extensions = []; /** * Server SFTP version * * @var int * @see self::_initChannel() * @access private */ private $version; /** * Current working directory * * @var string * @see self::realpath() * @see self::chdir() * @access private */ private $pwd = false; /** * Packet Type Log * * @see self::getLog() * @var array * @access private */ private $packet_type_log = []; /** * Packet Log * * @see self::getLog() * @var array * @access private */ private $packet_log = []; /** * Error information * * @see self::getSFTPErrors() * @see self::getLastSFTPError() * @var array * @access private */ private $sftp_errors = []; /** * Stat Cache * * Rather than always having to open a directory and close it immediately there after to see if a file is a directory * we'll cache the results. * * @see self::_update_stat_cache() * @see self::_remove_from_stat_cache() * @see self::_query_stat_cache() * @var array * @access private */ private $stat_cache = []; /** * Max SFTP Packet Size * * @see self::__construct() * @see self::get() * @var array * @access private */ private $max_sftp_packet; /** * Stat Cache Flag * * @see self::disableStatCache() * @see self::enableStatCache() * @var bool * @access private */ private $use_stat_cache = true; /** * Sort Options * * @see self::_comparator() * @see self::setListOrder() * @var array * @access private */ private $sortOptions = []; /** * Canonicalization Flag * * Determines whether or not paths should be canonicalized before being * passed on to the remote server. * * @see self::enablePathCanonicalization() * @see self::disablePathCanonicalization() * @see self::realpath() * @var bool * @access private */ private $canonicalize_paths = true; /** * Request Buffers * * @see self::_get_sftp_packet() * @var array * @access private */ var $requestBuffer = array(); /** * Default Constructor. * * Connects to an SFTP server * * @param string $host * @param int $port * @param int $timeout * @return \phpseclib\Net\SFTP * @access public */ public function __construct($host, $port = 22, $timeout = 10) { parent::__construct($host, $port, $timeout); $this->max_sftp_packet = 1 << 15; $this->packet_types = [ 1 => 'NET_SFTP_INIT', 2 => 'NET_SFTP_VERSION', /* the format of SSH_FXP_OPEN changed between SFTPv4 and SFTPv5+: SFTPv5+: http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.1.1 pre-SFTPv5 : http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-6.3 */ 3 => 'NET_SFTP_OPEN', 4 => 'NET_SFTP_CLOSE', 5 => 'NET_SFTP_READ', 6 => 'NET_SFTP_WRITE', 7 => 'NET_SFTP_LSTAT', 9 => 'NET_SFTP_SETSTAT', 11 => 'NET_SFTP_OPENDIR', 12 => 'NET_SFTP_READDIR', 13 => 'NET_SFTP_REMOVE', 14 => 'NET_SFTP_MKDIR', 15 => 'NET_SFTP_RMDIR', 16 => 'NET_SFTP_REALPATH', 17 => 'NET_SFTP_STAT', /* the format of SSH_FXP_RENAME changed between SFTPv4 and SFTPv5+: SFTPv5+: http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.3 pre-SFTPv5 : http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-6.5 */ 18 => 'NET_SFTP_RENAME', 19 => 'NET_SFTP_READLINK', 20 => 'NET_SFTP_SYMLINK', 101=> 'NET_SFTP_STATUS', 102=> 'NET_SFTP_HANDLE', /* the format of SSH_FXP_NAME changed between SFTPv3 and SFTPv4+: SFTPv4+: http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-9.4 pre-SFTPv4 : http://tools.ietf.org/html/draft-ietf-secsh-filexfer-02#section-7 */ 103=> 'NET_SFTP_DATA', 104=> 'NET_SFTP_NAME', 105=> 'NET_SFTP_ATTRS', 200=> 'NET_SFTP_EXTENDED' ]; $this->status_codes = [ 0 => 'NET_SFTP_STATUS_OK', 1 => 'NET_SFTP_STATUS_EOF', 2 => 'NET_SFTP_STATUS_NO_SUCH_FILE', 3 => 'NET_SFTP_STATUS_PERMISSION_DENIED', 4 => 'NET_SFTP_STATUS_FAILURE', 5 => 'NET_SFTP_STATUS_BAD_MESSAGE', 6 => 'NET_SFTP_STATUS_NO_CONNECTION', 7 => 'NET_SFTP_STATUS_CONNECTION_LOST', 8 => 'NET_SFTP_STATUS_OP_UNSUPPORTED', 9 => 'NET_SFTP_STATUS_INVALID_HANDLE', 10 => 'NET_SFTP_STATUS_NO_SUCH_PATH', 11 => 'NET_SFTP_STATUS_FILE_ALREADY_EXISTS', 12 => 'NET_SFTP_STATUS_WRITE_PROTECT', 13 => 'NET_SFTP_STATUS_NO_MEDIA', 14 => 'NET_SFTP_STATUS_NO_SPACE_ON_FILESYSTEM', 15 => 'NET_SFTP_STATUS_QUOTA_EXCEEDED', 16 => 'NET_SFTP_STATUS_UNKNOWN_PRINCIPAL', 17 => 'NET_SFTP_STATUS_LOCK_CONFLICT', 18 => 'NET_SFTP_STATUS_DIR_NOT_EMPTY', 19 => 'NET_SFTP_STATUS_NOT_A_DIRECTORY', 20 => 'NET_SFTP_STATUS_INVALID_FILENAME', 21 => 'NET_SFTP_STATUS_LINK_LOOP', 22 => 'NET_SFTP_STATUS_CANNOT_DELETE', 23 => 'NET_SFTP_STATUS_INVALID_PARAMETER', 24 => 'NET_SFTP_STATUS_FILE_IS_A_DIRECTORY', 25 => 'NET_SFTP_STATUS_BYTE_RANGE_LOCK_CONFLICT', 26 => 'NET_SFTP_STATUS_BYTE_RANGE_LOCK_REFUSED', 27 => 'NET_SFTP_STATUS_DELETE_PENDING', 28 => 'NET_SFTP_STATUS_FILE_CORRUPT', 29 => 'NET_SFTP_STATUS_OWNER_INVALID', 30 => 'NET_SFTP_STATUS_GROUP_INVALID', 31 => 'NET_SFTP_STATUS_NO_MATCHING_BYTE_RANGE_LOCK' ]; // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-7.1 // the order, in this case, matters quite a lot - see \phpseclib\Net\SFTP::_parseAttributes() to understand why $this->attributes = [ 0x00000001 => 'NET_SFTP_ATTR_SIZE', 0x00000002 => 'NET_SFTP_ATTR_UIDGID', // defined in SFTPv3, removed in SFTPv4+ 0x00000004 => 'NET_SFTP_ATTR_PERMISSIONS', 0x00000008 => 'NET_SFTP_ATTR_ACCESSTIME', // 0x80000000 will yield a floating point on 32-bit systems and converting floating points to integers // yields inconsistent behavior depending on how php is compiled. so we left shift -1 (which, in // two's compliment, consists of all 1 bits) by 31. on 64-bit systems this'll yield 0xFFFFFFFF80000000. // that's not a problem, however, and 'anded' and a 32-bit number, as all the leading 1 bits are ignored. (-1 << 31) & 0xFFFFFFFF => 'NET_SFTP_ATTR_EXTENDED' ]; // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-6.3 // the flag definitions change somewhat in SFTPv5+. if SFTPv5+ support is added to this library, maybe name // the array for that $this->open5_flags and similarly alter the constant names. $this->open_flags = [ 0x00000001 => 'NET_SFTP_OPEN_READ', 0x00000002 => 'NET_SFTP_OPEN_WRITE', 0x00000004 => 'NET_SFTP_OPEN_APPEND', 0x00000008 => 'NET_SFTP_OPEN_CREATE', 0x00000010 => 'NET_SFTP_OPEN_TRUNCATE', 0x00000020 => 'NET_SFTP_OPEN_EXCL' ]; // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-5.2 // see \phpseclib\Net\SFTP::_parseLongname() for an explanation $this->file_types = [ 1 => 'NET_SFTP_TYPE_REGULAR', 2 => 'NET_SFTP_TYPE_DIRECTORY', 3 => 'NET_SFTP_TYPE_SYMLINK', 4 => 'NET_SFTP_TYPE_SPECIAL', 5 => 'NET_SFTP_TYPE_UNKNOWN', // the following types were first defined for use in SFTPv5+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-05#section-5.2 6 => 'NET_SFTP_TYPE_SOCKET', 7 => 'NET_SFTP_TYPE_CHAR_DEVICE', 8 => 'NET_SFTP_TYPE_BLOCK_DEVICE', 9 => 'NET_SFTP_TYPE_FIFO' ]; $this->define_array( $this->packet_types, $this->status_codes, $this->attributes, $this->open_flags, $this->file_types ); if (!defined('NET_SFTP_QUEUE_SIZE')) { define('NET_SFTP_QUEUE_SIZE', 32); } } /** * Login * * @param string $username * @param $args[] string password * @throws \UnexpectedValueException on receipt of unexpected packets * @return bool * @access public */ public function login($username, ...$args) { $this->auth[] = array_merge([$username], $args); if (!$this->sublogin($username, ...$args)) { return false; } $this->window_size_server_to_client[self::CHANNEL] = $this->window_size; $packet = Strings::packSSH2( 'CsN3', NET_SSH2_MSG_CHANNEL_OPEN, 'session', self::CHANNEL, $this->window_size, 0x4000 ); $this->send_binary_packet($packet); $this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_OPEN; $response = $this->get_channel_packet(self::CHANNEL, true); if ($response === false) { return false; } $packet = Strings::packSSH2( 'CNsbs', NET_SSH2_MSG_CHANNEL_REQUEST, $this->server_channels[self::CHANNEL], 'subsystem', true, 'sftp' ); $this->send_binary_packet($packet); $this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_REQUEST; $response = $this->get_channel_packet(self::CHANNEL, true); if ($response === false) { // from PuTTY's psftp.exe $command = "test -x /usr/lib/sftp-server && exec /usr/lib/sftp-server\n" . "test -x /usr/local/lib/sftp-server && exec /usr/local/lib/sftp-server\n" . "exec sftp-server"; // we don't do $this->exec($command, false) because exec() operates on a different channel and plus the SSH_MSG_CHANNEL_OPEN that exec() does // is redundant $packet = Strings::packSSH2( 'CNsCs', NET_SSH2_MSG_CHANNEL_REQUEST, $this->server_channels[self::CHANNEL], 'exec', 1, $command ); $this->send_binary_packet($packet); $this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_REQUEST; $response = $this->get_channel_packet(self::CHANNEL, true); if ($response === false) { return false; } } $this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_DATA; if (!$this->send_sftp_packet(NET_SFTP_INIT, "\0\0\0\3")) { return false; } $response = $this->get_sftp_packet(); if ($this->packet_type != NET_SFTP_VERSION) { throw new \UnexpectedValueException('Expected NET_SFTP_VERSION. ' . 'Got packet type: ' . $this->packet_type); } list($this->version) = Strings::unpackSSH2('N', $response); while (!empty($response)) { list($key, $value) = Strings::unpackSSH2('ss', $response); $this->extensions[$key] = $value; } /* SFTPv4+ defines a 'newline' extension. SFTPv3 seems to have unofficial support for it via 'newline@vandyke.com', however, I'm not sure what 'newline@vandyke.com' is supposed to do (the fact that it's unofficial means that it's not in the official SFTPv3 specs) and 'newline@vandyke.com' / 'newline' are likely not drop-in substitutes for one another due to the fact that 'newline' comes with a SSH_FXF_TEXT bitmask whereas it seems unlikely that 'newline@vandyke.com' would. */ /* if (isset($this->extensions['newline@vandyke.com'])) { $this->extensions['newline'] = $this->extensions['newline@vandyke.com']; unset($this->extensions['newline@vandyke.com']); } */ $this->use_request_id = true; /* A Note on SFTPv4/5/6 support: <http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-5.1> states the following: "If the client wishes to interoperate with servers that support noncontiguous version numbers it SHOULD send '3'" Given that the server only sends its version number after the client has already done so, the above seems to be suggesting that v3 should be the default version. This makes sense given that v3 is the most popular. <http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-5.5> states the following; "If the server did not send the "versions" extension, or the version-from-list was not included, the server MAY send a status response describing the failure, but MUST then close the channel without processing any further requests." So what do you do if you have a client whose initial SSH_FXP_INIT packet says it implements v3 and a server whose initial SSH_FXP_VERSION reply says it implements v4 and only v4? If it only implements v4, the "versions" extension is likely not going to have been sent so version re-negotiation as discussed in draft-ietf-secsh-filexfer-13 would be quite impossible. As such, what \phpseclib\Net\SFTP would do is close the channel and reopen it with a new and updated SSH_FXP_INIT packet. */ switch ($this->version) { case 2: case 3: break; default: return false; } $this->pwd = $this->realpath('.'); $this->update_stat_cache($this->pwd, []); return true; } /** * Disable the stat cache * * @access public */ function disableStatCache() { $this->use_stat_cache = false; } /** * Enable the stat cache * * @access public */ public function enableStatCache() { $this->use_stat_cache = true; } /** * Clear the stat cache * * @access public */ public function clearStatCache() { $this->stat_cache = []; } /** * Enable path canonicalization * * @access public */ public function enablePathCanonicalization() { $this->canonicalize_paths = true; } /** * Enable path canonicalization * * @access public */ public function disablePathCanonicalization() { $this->canonicalize_paths = false; } /** * Returns the current directory name * * @return mixed * @access public */ public function pwd() { return $this->pwd; } /** * Logs errors * * @param string $response * @param int $status * @access private */ private function logError($response, $status = -1) { if ($status == -1) { list($status) = Strings::unpackSSH2('N', $response); } list($error) = $this->status_codes[$status]; if ($this->version > 2) { list($message) = Strings::unpackSSH2('s', $response); $this->sftp_errors[] = "$error: $message"; } else { $this->sftp_errors[] = $error; } } /** * Canonicalize the Server-Side Path Name * * SFTP doesn't provide a mechanism by which the current working directory can be changed, so we'll emulate it. Returns * the absolute (canonicalized) path. * * If canonicalize_paths has been disabled using disablePathCanonicalization(), $path is returned as-is. * * @see self::chdir() * @see self::disablePathCanonicalization() * @param string $path * @throws \UnexpectedValueException on receipt of unexpected packets * @return mixed * @access public */ public function realpath($path) { if (!$this->canonicalize_paths) { return $path; } if ($this->pwd === false) { // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.9 if (!$this->send_sftp_packet(NET_SFTP_REALPATH, Strings::packSSH2('s', $path))) { return false; } $response = $this->get_sftp_packet(); switch ($this->packet_type) { case NET_SFTP_NAME: // although SSH_FXP_NAME is implemented differently in SFTPv3 than it is in SFTPv4+, the following // should work on all SFTP versions since the only part of the SSH_FXP_NAME packet the following looks // at is the first part and that part is defined the same in SFTP versions 3 through 6. list(, $filename) = Strings::unpackSSH2('Ns', $response); return $filename; case NET_SFTP_STATUS: $this->logError($response); return false; default: throw new \UnexpectedValueException('Expected NET_SFTP_NAME or NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } } if ($path[0] != '/') { $path = $this->pwd . '/' . $path; } $path = explode('/', $path); $new = []; foreach ($path as $dir) { if (!strlen($dir)) { continue; } switch ($dir) { case '..': array_pop($new); case '.': break; default: $new[] = $dir; } } return '/' . implode('/', $new); } /** * Changes the current directory * * @param string $dir * @throws \UnexpectedValueException on receipt of unexpected packets * @return bool * @access public */ public function chdir($dir) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } // assume current dir if $dir is empty if ($dir === '') { $dir = './'; // suffix a slash if needed } elseif ($dir[strlen($dir) - 1] != '/') { $dir.= '/'; } $dir = $this->realpath($dir); // confirm that $dir is, in fact, a valid directory if ($this->use_stat_cache && is_array($this->query_stat_cache($dir))) { $this->pwd = $dir; return true; } // we could do a stat on the alleged $dir to see if it's a directory but that doesn't tell us // the currently logged in user has the appropriate permissions or not. maybe you could see if // the file's uid / gid match the currently logged in user's uid / gid but how there's no easy // way to get those with SFTP if (!$this->send_sftp_packet(NET_SFTP_OPENDIR, Strings::packSSH2('s', $dir))) { return false; } // see \phpseclib\Net\SFTP::nlist() for a more thorough explanation of the following $response = $this->get_sftp_packet(); switch ($this->packet_type) { case NET_SFTP_HANDLE: $handle = substr($response, 4); break; case NET_SFTP_STATUS: $this->logError($response); return false; default: throw new \UnexpectedValueException('Expected NET_SFTP_HANDLE or NET_SFTP_STATUS' . 'Got packet type: ' . $this->packet_type); } if (!$this->close_handle($handle)) { return false; } $this->update_stat_cache($dir, []); $this->pwd = $dir; return true; } /** * Returns a list of files in the given directory * * @param string $dir * @param bool $recursive * @return mixed * @access public */ public function nlist($dir = '.', $recursive = false) { return $this->nlist_helper($dir, $recursive, ''); } /** * Helper method for nlist * * @param string $dir * @param bool $recursive * @param string $relativeDir * @return mixed * @access private */ private function nlist_helper($dir, $recursive, $relativeDir) { $files = $this->readlist($dir, false); if (!$recursive || $files === false) { return $files; } $result = []; foreach ($files as $value) { if ($value == '.' || $value == '..') { $result[] = $relativeDir . $value; continue; } if (is_array($this->query_stat_cache($this->realpath($dir . '/' . $value)))) { $temp = $this->nlist_helper($dir . '/' . $value, true, $relativeDir . $value . '/'); $temp = is_array($temp) ? $temp : []; $result = array_merge($result, $temp); } else { $result[] = $relativeDir . $value; } } return $result; } /** * Returns a detailed list of files in the given directory * * @param string $dir * @param bool $recursive * @return mixed * @access public */ public function rawlist($dir = '.', $recursive = false) { $files = $this->readlist($dir, true); if (!$recursive || $files === false) { return $files; } static $depth = 0; foreach ($files as $key => $value) { if ($depth != 0 && $key == '..') { unset($files[$key]); continue; } $is_directory = false; if ($key != '.' && $key != '..') { if ($this->use_stat_cache) { $is_directory = is_array($this->query_stat_cache($this->realpath($dir . '/' . $key))); } else { $stat = $this->lstat($dir . '/' . $key); $is_directory = $stat && $stat['type'] === NET_SFTP_TYPE_DIRECTORY; } } if ($is_directory) { $depth++; $files[$key] = $this->rawlist($dir . '/' . $key, true); $depth--; } else { $files[$key] = (object) $value; } } return $files; } /** * Reads a list, be it detailed or not, of files in the given directory * * @param string $dir * @param bool $raw * @return mixed * @throws \UnexpectedValueException on receipt of unexpected packets * @access private */ private function readlist($dir, $raw = true) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } $dir = $this->realpath($dir . '/'); if ($dir === false) { return false; } // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.1.2 if (!$this->send_sftp_packet(NET_SFTP_OPENDIR, Strings::packSSH2('s', $dir))) { return false; } $response = $this->get_sftp_packet(); switch ($this->packet_type) { case NET_SFTP_HANDLE: // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-9.2 // since 'handle' is the last field in the SSH_FXP_HANDLE packet, we'll just remove the first four bytes that // represent the length of the string and leave it at that $handle = substr($response, 4); break; case NET_SFTP_STATUS: // presumably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED $this->logError($response); return false; default: throw new \UnexpectedValueException('Expected NET_SFTP_HANDLE or NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } $this->update_stat_cache($dir, []); $contents = []; while (true) { // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.2.2 // why multiple SSH_FXP_READDIR packets would be sent when the response to a single one can span arbitrarily many // SSH_MSG_CHANNEL_DATA messages is not known to me. if (!$this->send_sftp_packet(NET_SFTP_READDIR, Strings::packSSH2('s', $handle))) { return false; } $response = $this->get_sftp_packet(); switch ($this->packet_type) { case NET_SFTP_NAME: list($count) = Strings::unpackSSH2('N', $response); for ($i = 0; $i < $count; $i++) { list($shortname, $longname) = Strings::unpackSSH2('ss', $response); $attributes = $this->parseAttributes($response); if (!isset($attributes['type'])) { $fileType = $this->parseLongname($longname); if ($fileType) { $attributes['type'] = $fileType; } } $contents[$shortname] = $attributes + ['filename' => $shortname]; if (isset($attributes['type']) && $attributes['type'] == NET_SFTP_TYPE_DIRECTORY && ($shortname != '.' && $shortname != '..')) { $this->update_stat_cache($dir . '/' . $shortname, []); } else { if ($shortname == '..') { $temp = $this->realpath($dir . '/..') . '/.'; } else { $temp = $dir . '/' . $shortname; } $this->update_stat_cache($temp, (object) ['lstat' => $attributes]); } // SFTPv6 has an optional boolean end-of-list field, but we'll ignore that, since the // final SSH_FXP_STATUS packet should tell us that, already. } break; case NET_SFTP_STATUS: list($status) = Strings::unpackSSH2('N', $response); if ($status != NET_SFTP_STATUS_EOF) { $this->logError($response, $status); return false; } break 2; default: throw new \UnexpectedValueException('Expected NET_SFTP_NAME or NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } } if (!$this->close_handle($handle)) { return false; } if (count($this->sortOptions)) { uasort($contents, [&$this, 'comparator']); } return $raw ? $contents : array_keys($contents); } /** * Compares two rawlist entries using parameters set by setListOrder() * * Intended for use with uasort() * * @param array $a * @param array $b * @return int * @access private */ private function comparator($a, $b) { switch (true) { case $a['filename'] === '.' || $b['filename'] === '.': if ($a['filename'] === $b['filename']) { return 0; } return $a['filename'] === '.' ? -1 : 1; case $a['filename'] === '..' || $b['filename'] === '..': if ($a['filename'] === $b['filename']) { return 0; } return $a['filename'] === '..' ? -1 : 1; case isset($a['type']) && $a['type'] === NET_SFTP_TYPE_DIRECTORY: if (!isset($b['type'])) { return 1; } if ($b['type'] !== $a['type']) { return -1; } break; case isset($b['type']) && $b['type'] === NET_SFTP_TYPE_DIRECTORY: return 1; } foreach ($this->sortOptions as $sort => $order) { if (!isset($a[$sort]) || !isset($b[$sort])) { if (isset($a[$sort])) { return -1; } if (isset($b[$sort])) { return 1; } return 0; } switch ($sort) { case 'filename': $result = strcasecmp($a['filename'], $b['filename']); if ($result) { return $order === SORT_DESC ? -$result : $result; } break; case 'permissions': case 'mode': $a[$sort]&= 07777; $b[$sort]&= 07777; default: if ($a[$sort] === $b[$sort]) { break; } return $order === SORT_ASC ? $a[$sort] - $b[$sort] : $b[$sort] - $a[$sort]; } } } /** * Defines how nlist() and rawlist() will be sorted - if at all. * * If sorting is enabled directories and files will be sorted independently with * directories appearing before files in the resultant array that is returned. * * Any parameter returned by stat is a valid sort parameter for this function. * Filename comparisons are case insensitive. * * Examples: * * $sftp->setListOrder('filename', SORT_ASC); * $sftp->setListOrder('size', SORT_DESC, 'filename', SORT_ASC); * $sftp->setListOrder(true); * Separates directories from files but doesn't do any sorting beyond that * $sftp->setListOrder(); * Don't do any sort of sorting * * @param $args[] * @access public */ public function setListOrder(...$args) { $this->sortOptions = []; if (empty($args)) { return; } $len = count($args) & 0x7FFFFFFE; for ($i = 0; $i < $len; $i+=2) { $this->sortOptions[$args[$i]] = $args[$i + 1]; } if (!count($this->sortOptions)) { $this->sortOptions = ['bogus' => true]; } } /** * Returns the file size, in bytes, or false, on failure * * Files larger than 4GB will show up as being exactly 4GB. * * @param string $filename * @return mixed * @access public */ public function size($filename) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } $result = $this->stat($filename); if ($result === false) { return false; } return isset($result['size']) ? $result['size'] : -1; } /** * Save files / directories to cache * * @param string $path * @param mixed $value * @access private */ private function update_stat_cache($path, $value) { if ($this->use_stat_cache === false) { return; } // preg_replace('#^/|/(?=/)|/$#', '', $dir) == str_replace('//', '/', trim($path, '/')) $dirs = explode('/', preg_replace('#^/|/(?=/)|/$#', '', $path)); $temp = &$this->stat_cache; $max = count($dirs) - 1; foreach ($dirs as $i => $dir) { // if $temp is an object that means one of two things. // 1. a file was deleted and changed to a directory behind phpseclib's back // 2. it's a symlink. when lstat is done it's unclear what it's a symlink to if (is_object($temp)) { $temp = []; } if (!isset($temp[$dir])) { $temp[$dir] = []; } if ($i === $max) { if (is_object($temp[$dir]) && is_object($value)) { if (!isset($value->stat) && isset($temp[$dir]->stat)) { $value->stat = $temp[$dir]->stat; } if (!isset($value->lstat) && isset($temp[$dir]->lstat)) { $value->lstat = $temp[$dir]->lstat; } } $temp[$dir] = $value; break; } $temp = &$temp[$dir]; } } /** * Remove files / directories from cache * * @param string $path * @return bool * @access private */ private function remove_from_stat_cache($path) { $dirs = explode('/', preg_replace('#^/|/(?=/)|/$#', '', $path)); $temp = &$this->stat_cache; $max = count($dirs) - 1; foreach ($dirs as $i => $dir) { if ($i === $max) { unset($temp[$dir]); return true; } if (!isset($temp[$dir])) { return false; } $temp = &$temp[$dir]; } } /** * Checks cache for path * * Mainly used by file_exists * * @param string $path * @return mixed * @access private */ private function query_stat_cache($path) { $dirs = explode('/', preg_replace('#^/|/(?=/)|/$#', '', $path)); $temp = &$this->stat_cache; foreach ($dirs as $dir) { if (!isset($temp[$dir])) { return null; } $temp = &$temp[$dir]; } return $temp; } /** * Returns general information about a file. * * Returns an array on success and false otherwise. * * @param string $filename * @return mixed * @access public */ public function stat($filename) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } $filename = $this->realpath($filename); if ($filename === false) { return false; } if ($this->use_stat_cache) { $result = $this->query_stat_cache($filename); if (is_array($result) && isset($result['.']) && isset($result['.']->stat)) { return $result['.']->stat; } if (is_object($result) && isset($result->stat)) { return $result->stat; } } $stat = $this->stat_helper($filename, NET_SFTP_STAT); if ($stat === false) { $this->remove_from_stat_cache($filename); return false; } if (isset($stat['type'])) { if ($stat['type'] == NET_SFTP_TYPE_DIRECTORY) { $filename.= '/.'; } $this->update_stat_cache($filename, (object) ['stat' => $stat]); return $stat; } $pwd = $this->pwd; $stat['type'] = $this->chdir($filename) ? NET_SFTP_TYPE_DIRECTORY : NET_SFTP_TYPE_REGULAR; $this->pwd = $pwd; if ($stat['type'] == NET_SFTP_TYPE_DIRECTORY) { $filename.= '/.'; } $this->update_stat_cache($filename, (object) ['stat' => $stat]); return $stat; } /** * Returns general information about a file or symbolic link. * * Returns an array on success and false otherwise. * * @param string $filename * @return mixed * @access public */ public function lstat($filename) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } $filename = $this->realpath($filename); if ($filename === false) { return false; } if ($this->use_stat_cache) { $result = $this->query_stat_cache($filename); if (is_array($result) && isset($result['.']) && isset($result['.']->lstat)) { return $result['.']->lstat; } if (is_object($result) && isset($result->lstat)) { return $result->lstat; } } $lstat = $this->stat_helper($filename, NET_SFTP_LSTAT); if ($lstat === false) { $this->remove_from_stat_cache($filename); return false; } if (isset($lstat['type'])) { if ($lstat['type'] == NET_SFTP_TYPE_DIRECTORY) { $filename.= '/.'; } $this->update_stat_cache($filename, (object) ['lstat' => $lstat]); return $lstat; } $stat = $this->stat_helper($filename, NET_SFTP_STAT); if ($lstat != $stat) { $lstat = array_merge($lstat, ['type' => NET_SFTP_TYPE_SYMLINK]); $this->update_stat_cache($filename, (object) ['lstat' => $lstat]); return $stat; } $pwd = $this->pwd; $lstat['type'] = $this->chdir($filename) ? NET_SFTP_TYPE_DIRECTORY : NET_SFTP_TYPE_REGULAR; $this->pwd = $pwd; if ($lstat['type'] == NET_SFTP_TYPE_DIRECTORY) { $filename.= '/.'; } $this->update_stat_cache($filename, (object) ['lstat' => $lstat]); return $lstat; } /** * Returns general information about a file or symbolic link * * Determines information without calling \phpseclib\Net\SFTP::realpath(). * The second parameter can be either NET_SFTP_STAT or NET_SFTP_LSTAT. * * @param string $filename * @param int $type * @throws \UnexpectedValueException on receipt of unexpected packets * @return mixed * @access private */ private function stat_helper($filename, $type) { // SFTPv4+ adds an additional 32-bit integer field - flags - to the following: $packet = Strings::packSSH2('s', $filename); if (!$this->send_sftp_packet($type, $packet)) { return false; } $response = $this->get_sftp_packet(); switch ($this->packet_type) { case NET_SFTP_ATTRS: return $this->parseAttributes($response); case NET_SFTP_STATUS: $this->logError($response); return false; } throw new \UnexpectedValueException('Expected NET_SFTP_ATTRS or NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } /** * Truncates a file to a given length * * @param string $filename * @param int $new_size * @return bool * @access public */ public function truncate($filename, $new_size) { $attr = pack('N3', NET_SFTP_ATTR_SIZE, $new_size / 4294967296, $new_size); // 4294967296 == 0x100000000 == 1<<32 return $this->setstat($filename, $attr, false); } /** * Sets access and modification time of file. * * If the file does not exist, it will be created. * * @param string $filename * @param int $time * @param int $atime * @throws \UnexpectedValueException on receipt of unexpected packets * @return bool * @access public */ public function touch($filename, $time = null, $atime = null) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } $filename = $this->realpath($filename); if ($filename === false) { return false; } if (!isset($time)) { $time = time(); } if (!isset($atime)) { $atime = $time; } $flags = NET_SFTP_OPEN_WRITE | NET_SFTP_OPEN_CREATE | NET_SFTP_OPEN_EXCL; $attr = pack('N3', NET_SFTP_ATTR_ACCESSTIME, $time, $atime); $packet = Strings::packSSH2('sN', $filename, $flags) . $attr; if (!$this->send_sftp_packet(NET_SFTP_OPEN, $packet)) { return false; } $response = $this->get_sftp_packet(); switch ($this->packet_type) { case NET_SFTP_HANDLE: return $this->close_handle(substr($response, 4)); case NET_SFTP_STATUS: $this->logError($response); break; default: throw new \UnexpectedValueException('Expected NET_SFTP_HANDLE or NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } return $this->setstat($filename, $attr, false); } /** * Changes file or directory owner * * Returns true on success or false on error. * * @param string $filename * @param int $uid * @param bool $recursive * @return bool * @access public */ public function chown($filename, $uid, $recursive = false) { // quoting from <http://www.kernel.org/doc/man-pages/online/pages/man2/chown.2.html>, // "if the owner or group is specified as -1, then that ID is not changed" $attr = pack('N3', NET_SFTP_ATTR_UIDGID, $uid, -1); return $this->setstat($filename, $attr, $recursive); } /** * Changes file or directory group * * Returns true on success or false on error. * * @param string $filename * @param int $gid * @param bool $recursive * @return bool * @access public */ public function chgrp($filename, $gid, $recursive = false) { $attr = pack('N3', NET_SFTP_ATTR_UIDGID, -1, $gid); return $this->setstat($filename, $attr, $recursive); } /** * Set permissions on a file. * * Returns the new file permissions on success or false on error. * If $recursive is true than this just returns true or false. * * @param int $mode * @param string $filename * @param bool $recursive * @throws \UnexpectedValueException on receipt of unexpected packets * @return mixed * @access public */ public function chmod($mode, $filename, $recursive = false) { if (is_string($mode) && is_int($filename)) { $temp = $mode; $mode = $filename; $filename = $temp; } $attr = pack('N2', NET_SFTP_ATTR_PERMISSIONS, $mode & 07777); if (!$this->setstat($filename, $attr, $recursive)) { return false; } if ($recursive) { return true; } $filename = $this->realpath($filename); // rather than return what the permissions *should* be, we'll return what they actually are. this will also // tell us if the file actually exists. // incidentally, SFTPv4+ adds an additional 32-bit integer field - flags - to the following: $packet = pack('Na*', strlen($filename), $filename); if (!$this->send_sftp_packet(NET_SFTP_STAT, $packet)) { return false; } $response = $this->get_sftp_packet(); switch ($this->packet_type) { case NET_SFTP_ATTRS: $attrs = $this->parseAttributes($response); return $attrs['permissions']; case NET_SFTP_STATUS: $this->logError($response); return false; } throw new \UnexpectedValueException('Expected NET_SFTP_ATTRS or NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } /** * Sets information about a file * * @param string $filename * @param string $attr * @param bool $recursive * @throws \UnexpectedValueException on receipt of unexpected packets * @return bool * @access private */ private function setstat($filename, $attr, $recursive) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } $filename = $this->realpath($filename); if ($filename === false) { return false; } $this->remove_from_stat_cache($filename); if ($recursive) { $i = 0; $result = $this->setstat_recursive($filename, $attr, $i); $this->read_put_responses($i); return $result; } // SFTPv4+ has an additional byte field - type - that would need to be sent, as well. setting it to // SSH_FILEXFER_TYPE_UNKNOWN might work. if not, we'd have to do an SSH_FXP_STAT before doing an SSH_FXP_SETSTAT. if (!$this->send_sftp_packet(NET_SFTP_SETSTAT, Strings::packSSH2('s', $filename) . $attr)) { return false; } /* "Because some systems must use separate system calls to set various attributes, it is possible that a failure response will be returned, but yet some of the attributes may be have been successfully modified. If possible, servers SHOULD avoid this situation; however, clients MUST be aware that this is possible." -- http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.6 */ $response = $this->get_sftp_packet(); if ($this->packet_type != NET_SFTP_STATUS) { throw new \UnexpectedValueException('Expected NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } list($status) = Strings::unpackSSH2('N', $response); if ($status != NET_SFTP_STATUS_OK) { $this->logError($response, $status); return false; } return true; } /** * Recursively sets information on directories on the SFTP server * * Minimizes directory lookups and SSH_FXP_STATUS requests for speed. * * @param string $path * @param string $attr * @param int $i * @return bool * @access private */ private function setstat_recursive($path, $attr, &$i) { if (!$this->read_put_responses($i)) { return false; } $i = 0; $entries = $this->readlist($path, true); if ($entries === false) { return $this->setstat($path, $attr, false); } // normally $entries would have at least . and .. but it might not if the directories // permissions didn't allow reading if (empty($entries)) { return false; } unset($entries['.'], $entries['..']); foreach ($entries as $filename => $props) { if (!isset($props['type'])) { return false; } $temp = $path . '/' . $filename; if ($props['type'] == NET_SFTP_TYPE_DIRECTORY) { if (!$this->setstat_recursive($temp, $attr, $i)) { return false; } } else { if (!$this->send_sftp_packet(NET_SFTP_SETSTAT, Strings::packSSH2('s', $temp) . $attr)) { return false; } $i++; if ($i >= NET_SFTP_QUEUE_SIZE) { if (!$this->read_put_responses($i)) { return false; } $i = 0; } } } if (!$this->send_sftp_packet(NET_SFTP_SETSTAT, Strings::packSSH2('s', $path) . $attr)) { return false; } $i++; if ($i >= NET_SFTP_QUEUE_SIZE) { if (!$this->read_put_responses($i)) { return false; } $i = 0; } return true; } /** * Return the target of a symbolic link * * @param string $link * @throws \UnexpectedValueException on receipt of unexpected packets * @return mixed * @access public */ public function readlink($link) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } $link = $this->realpath($link); if (!$this->send_sftp_packet(NET_SFTP_READLINK, Strings::packSSH2('s', $link))) { return false; } $response = $this->get_sftp_packet(); switch ($this->packet_type) { case NET_SFTP_NAME: break; case NET_SFTP_STATUS: $this->logError($response); return false; default: throw new \UnexpectedValueException('Expected NET_SFTP_NAME or NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } list($count) = Strings::unpackSSH2('N', $response); // the file isn't a symlink if (!$count) { return false; } list($filename) = Strings::unpackSSH2('s', $response); return $filename; } /** * Create a symlink * * symlink() creates a symbolic link to the existing target with the specified name link. * * @param string $target * @param string $link * @throws \UnexpectedValueException on receipt of unexpected packets * @return bool * @access public */ public function symlink($target, $link) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } //$target = $this->realpath($target); $link = $this->realpath($link); $packet = Strings::packSSH2('ss', $target, $link); if (!$this->send_sftp_packet(NET_SFTP_SYMLINK, $packet)) { return false; } $response = $this->get_sftp_packet(); if ($this->packet_type != NET_SFTP_STATUS) { throw new \UnexpectedValueException('Expected NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } list($status) = Strings::unpackSSH2('N', $response); if ($status != NET_SFTP_STATUS_OK) { $this->logError($response, $status); return false; } return true; } /** * Creates a directory. * * @param string $dir * @param int $mode * @param bool $recursive * @return bool * @access public */ public function mkdir($dir, $mode = -1, $recursive = false) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } $dir = $this->realpath($dir); // by not providing any permissions, hopefully the server will use the logged in users umask - their // default permissions. $attr = $mode == -1 ? "\0\0\0\0" : pack('N2', NET_SFTP_ATTR_PERMISSIONS, $mode & 07777); if ($recursive) { $dirs = explode('/', preg_replace('#/(?=/)|/$#', '', $dir)); if (empty($dirs[0])) { array_shift($dirs); $dirs[0] = '/' . $dirs[0]; } for ($i = 0; $i < count($dirs); $i++) { $temp = array_slice($dirs, 0, $i + 1); $temp = implode('/', $temp); $result = $this->mkdir_helper($temp, $attr); } return $result; } return $this->mkdir_helper($dir, $attr); } /** * Helper function for directory creation * * @param string $dir * @param string $attr * @return bool * @access private */ private function mkdir_helper($dir, $attr) { if (!$this->send_sftp_packet(NET_SFTP_MKDIR, Strings::packSSH2('s', $dir) . $attr)) { return false; } $response = $this->get_sftp_packet(); if ($this->packet_type != NET_SFTP_STATUS) { throw new \UnexpectedValueException('Expected NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } list($status) = Strings::unpackSSH2('N', $response); if ($status != NET_SFTP_STATUS_OK) { $this->logError($response, $status); return false; } return true; } /** * Removes a directory. * * @param string $dir * @throws \UnexpectedValueException on receipt of unexpected packets * @return bool * @access public */ public function rmdir($dir) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } $dir = $this->realpath($dir); if ($dir === false) { return false; } if (!$this->send_sftp_packet(NET_SFTP_RMDIR, Strings::packSSH2('s', $dir))) { return false; } $response = $this->get_sftp_packet(); if ($this->packet_type != NET_SFTP_STATUS) { throw new \UnexpectedValueException('Expected NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } list($status) = Strings::unpackSSH2('N', $response); if ($status != NET_SFTP_STATUS_OK) { // presumably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED? $this->logError($response, $status); return false; } $this->remove_from_stat_cache($dir); // the following will do a soft delete, which would be useful if you deleted a file // and then tried to do a stat on the deleted file. the above, in contrast, does // a hard delete //$this->update_stat_cache($dir, false); return true; } /** * Uploads a file to the SFTP server. * * By default, \phpseclib\Net\SFTP::put() does not read from the local filesystem. $data is dumped directly into $remote_file. * So, for example, if you set $data to 'filename.ext' and then do \phpseclib\Net\SFTP::get(), you will get a file, twelve bytes * long, containing 'filename.ext' as its contents. * * Setting $mode to self::SOURCE_LOCAL_FILE will change the above behavior. With self::SOURCE_LOCAL_FILE, $remote_file will * contain as many bytes as filename.ext does on your local filesystem. If your filename.ext is 1MB then that is how * large $remote_file will be, as well. * * Setting $mode to self::SOURCE_CALLBACK will use $data as callback function, which gets only one parameter -- number of bytes to return, and returns a string if there is some data or null if there is no more data * * If $data is a resource then it'll be used as a resource instead. * * Currently, only binary mode is supported. As such, if the line endings need to be adjusted, you will need to take * care of that, yourself. * * $mode can take an additional two parameters - self::RESUME and self::RESUME_START. These are bitwise AND'd with * $mode. So if you want to resume upload of a 300mb file on the local file system you'd set $mode to the following: * * self::SOURCE_LOCAL_FILE | self::RESUME * * If you wanted to simply append the full contents of a local file to the full contents of a remote file you'd replace * self::RESUME with self::RESUME_START. * * If $mode & (self::RESUME | self::RESUME_START) then self::RESUME_START will be assumed. * * $start and $local_start give you more fine grained control over this process and take precident over self::RESUME * when they're non-negative. ie. $start could let you write at the end of a file (like self::RESUME) or in the middle * of one. $local_start could let you start your reading from the end of a file (like self::RESUME_START) or in the * middle of one. * * Setting $local_start to > 0 or $mode | self::RESUME_START doesn't do anything unless $mode | self::SOURCE_LOCAL_FILE. * * @param string $remote_file * @param string|resource $data * @param int $mode * @param int $start * @param int $local_start * @param callable|null $progressCallback * @throws \UnexpectedValueException on receipt of unexpected packets * @throws \BadFunctionCallException if you're uploading via a callback and the callback function is invalid * @throws \phpseclib\Exception\FileNotFoundException if you're uploading via a file and the file doesn't exist * @return bool * @access public * @internal ASCII mode for SFTPv4/5/6 can be supported by adding a new function - \phpseclib\Net\SFTP::setMode(). */ public function put($remote_file, $data, $mode = self::SOURCE_STRING, $start = -1, $local_start = -1, $progressCallback = null) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } $remote_file = $this->realpath($remote_file); if ($remote_file === false) { return false; } $this->remove_from_stat_cache($remote_file); $flags = NET_SFTP_OPEN_WRITE | NET_SFTP_OPEN_CREATE; // according to the SFTP specs, NET_SFTP_OPEN_APPEND should "force all writes to append data at the end of the file." // in practice, it doesn't seem to do that. //$flags|= ($mode & self::RESUME) ? NET_SFTP_OPEN_APPEND : NET_SFTP_OPEN_TRUNCATE; if ($start >= 0) { $offset = $start; } elseif ($mode & self::RESUME) { // if NET_SFTP_OPEN_APPEND worked as it should _size() wouldn't need to be called $size = $this->size($remote_file); $offset = $size !== false ? $size : 0; } else { $offset = 0; $flags|= NET_SFTP_OPEN_TRUNCATE; } $packet = Strings::packSSH2('sNN', $remote_file, $flags, 0); if (!$this->send_sftp_packet(NET_SFTP_OPEN, $packet)) { return false; } $response = $this->get_sftp_packet(); switch ($this->packet_type) { case NET_SFTP_HANDLE: $handle = substr($response, 4); break; case NET_SFTP_STATUS: $this->logError($response); return false; default: throw new \UnexpectedValueException('Expected NET_SFTP_HANDLE or NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.2.3 $dataCallback = false; switch (true) { case $mode & self::SOURCE_CALLBACK: if (!is_callable($data)) { throw new \BadFunctionCallException("\$data should be is_callable() if you specify SOURCE_CALLBACK flag"); } $dataCallback = $data; // do nothing break; case is_resource($data): $mode = $mode & ~self::SOURCE_LOCAL_FILE; $info = stream_get_meta_data($data); if ($info['wrapper_type'] == 'PHP' && $info['stream_type'] == 'Input') { $fp = fopen('php://memory', 'w+'); stream_copy_to_stream($data, $fp); rewind($fp); } else { $fp = $data; } break; case $mode & self::SOURCE_LOCAL_FILE: if (!is_file($data)) { throw new FileNotFoundException("$data is not a valid file"); } $fp = @fopen($data, 'rb'); if (!$fp) { return false; } } if (isset($fp)) { $stat = fstat($fp); $size = !empty($stat) ? $stat['size'] : 0; if ($local_start >= 0) { fseek($fp, $local_start); $size-= $local_start; } } elseif ($dataCallback) { $size = 0; } else { $size = strlen($data); } $sent = 0; $size = $size < 0 ? ($size & 0x7FFFFFFF) + 0x80000000 : $size; $sftp_packet_size = 4096; // PuTTY uses 4096 // make the SFTP packet be exactly 4096 bytes by including the bytes in the NET_SFTP_WRITE packets "header" $sftp_packet_size-= strlen($handle) + 25; $i = 0; while ($dataCallback || ($size === 0 || $sent < $size)) { if ($dataCallback) { $temp = call_user_func($dataCallback, $sftp_packet_size); if (is_null($temp)) { break; } } else { $temp = isset($fp) ? fread($fp, $sftp_packet_size) : substr($data, $sent, $sftp_packet_size); if ($temp === false || $temp === '') { break; } } $subtemp = $offset + $sent; $packet = pack('Na*N3a*', strlen($handle), $handle, $subtemp / 4294967296, $subtemp, strlen($temp), $temp); if (!$this->send_sftp_packet(NET_SFTP_WRITE, $packet)) { if ($mode & self::SOURCE_LOCAL_FILE) { fclose($fp); } return false; } $sent+= strlen($temp); if (is_callable($progressCallback)) { call_user_func($progressCallback, $sent); } $i++; if ($i == NET_SFTP_QUEUE_SIZE) { if (!$this->read_put_responses($i)) { $i = 0; break; } $i = 0; } } if (!$this->read_put_responses($i)) { if ($mode & self::SOURCE_LOCAL_FILE) { fclose($fp); } $this->close_handle($handle); return false; } if ($mode & self::SOURCE_LOCAL_FILE) { fclose($fp); } return $this->close_handle($handle); } /** * Reads multiple successive SSH_FXP_WRITE responses * * Sending an SSH_FXP_WRITE packet and immediately reading its response isn't as efficient as blindly sending out $i * SSH_FXP_WRITEs, in succession, and then reading $i responses. * * @param int $i * @return bool * @throws \UnexpectedValueException on receipt of unexpected packets * @access private */ private function read_put_responses($i) { while ($i--) { $response = $this->get_sftp_packet(); if ($this->packet_type != NET_SFTP_STATUS) { throw new \UnexpectedValueException('Expected NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } list($status) = Strings::unpackSSH2('N', $response); if ($status != NET_SFTP_STATUS_OK) { $this->logError($response, $status); break; } } return $i < 0; } /** * Close handle * * @param string $handle * @return bool * @throws \UnexpectedValueException on receipt of unexpected packets * @access private */ private function close_handle($handle) { if (!$this->send_sftp_packet(NET_SFTP_CLOSE, pack('Na*', strlen($handle), $handle))) { return false; } // "The client MUST release all resources associated with the handle regardless of the status." // -- http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.1.3 $response = $this->get_sftp_packet(); if ($this->packet_type != NET_SFTP_STATUS) { throw new \UnexpectedValueException('Expected NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } list($status) = Strings::unpackSSH2('N', $response); if ($status != NET_SFTP_STATUS_OK) { $this->logError($response, $status); return false; } return true; } /** * Downloads a file from the SFTP server. * * Returns a string containing the contents of $remote_file if $local_file is left undefined or a boolean false if * the operation was unsuccessful. If $local_file is defined, returns true or false depending on the success of the * operation. * * $offset and $length can be used to download files in chunks. * * @param string $remote_file * @param string|bool|resource $local_file * @param int $offset * @param int $length * @param callable|null $progressCallback * @throws \UnexpectedValueException on receipt of unexpected packets * @return mixed * @access public */ public function get($remote_file, $local_file = false, $offset = 0, $length = -1, $progressCallback = null) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } $remote_file = $this->realpath($remote_file); if ($remote_file === false) { return false; } $packet = pack('Na*N2', strlen($remote_file), $remote_file, NET_SFTP_OPEN_READ, 0); if (!$this->send_sftp_packet(NET_SFTP_OPEN, $packet)) { return false; } $response = $this->get_sftp_packet(); switch ($this->packet_type) { case NET_SFTP_HANDLE: $handle = substr($response, 4); break; case NET_SFTP_STATUS: // presumably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED $this->logError($response); return false; default: throw new \UnexpectedValueException('Expected NET_SFTP_HANDLE or NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } if (is_resource($local_file)) { $fp = $local_file; $stat = fstat($fp); $res_offset = $stat['size']; } else { $res_offset = 0; if ($local_file !== false) { $fp = fopen($local_file, 'wb'); if (!$fp) { return false; } } else { $content = ''; } } $fclose_check = $local_file !== false && !is_resource($local_file); $start = $offset; $read = 0; while (true) { $i = 0; while ($i < NET_SFTP_QUEUE_SIZE && ($length < 0 || $read < $length)) { $tempoffset = $start + $read; $packet_size = $length > 0 ? min($this->max_sftp_packet, $length - $read) : $this->max_sftp_packet; $packet = Strings::packSSH2('sN3', $handle, $tempoffset / 4294967296, $tempoffset, $packet_size); if (!$this->send_sftp_packet(NET_SFTP_READ, $packet, $i)) { if ($fclose_check) { fclose($fp); } return false; } $packet = null; $read+= $packet_size; if (is_callable($progressCallback)) { call_user_func($progressCallback, $read); } $i++; } if (!$i) { break; } $packets_sent = $i - 1; $clear_responses = false; while ($i > 0) { $i--; if ($clear_responses) { $this->get_sftp_packet($packets_sent - $i); continue; } else { $response = $this->get_sftp_packet($packets_sent - $i); } switch ($this->packet_type) { case NET_SFTP_DATA: $temp = substr($response, 4); $offset+= strlen($temp); if ($local_file === false) { $content.= $temp; } else { fputs($fp, $temp); } $temp = null; break; case NET_SFTP_STATUS: // could, in theory, return false if !strlen($content) but we'll hold off for the time being $this->logError($response); $clear_responses = true; // don't break out of the loop yet, so we can read the remaining responses break; default: if ($fclose_check) { fclose($fp); } throw new \UnexpectedValueException('Expected NET_SFTP_DATA or NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } $response = null; } if ($clear_responses) { break; } } if ($length > 0 && $length <= $offset - $start) { if ($local_file === false) { $content = substr($content, 0, $length); } else { ftruncate($fp, $length + $res_offset); } } if ($fclose_check) { fclose($fp); } if (!$this->close_handle($handle)) { return false; } // if $content isn't set that means a file was written to return isset($content) ? $content : true; } /** * Deletes a file on the SFTP server. * * @param string $path * @param bool $recursive * @return bool * @throws \UnexpectedValueException on receipt of unexpected packets * @access public */ public function delete($path, $recursive = true) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } if (is_object($path)) { // It's an object. Cast it as string before we check anything else. $path = (string) $path; } if (!is_string($path) || $path == '') { return false; } $path = $this->realpath($path); if ($path === false) { return false; } // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.3 if (!$this->send_sftp_packet(NET_SFTP_REMOVE, pack('Na*', strlen($path), $path))) { return false; } $response = $this->get_sftp_packet(); if ($this->packet_type != NET_SFTP_STATUS) { throw new \UnexpectedValueException('Expected NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } // if $status isn't SSH_FX_OK it's probably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED list($status) = Strings::unpackSSH2('N', $response); if ($status != NET_SFTP_STATUS_OK) { $this->logError($response, $status); if (!$recursive) { return false; } $i = 0; $result = $this->delete_recursive($path, $i); $this->read_put_responses($i); return $result; } $this->remove_from_stat_cache($path); return true; } /** * Recursively deletes directories on the SFTP server * * Minimizes directory lookups and SSH_FXP_STATUS requests for speed. * * @param string $path * @param int $i * @return bool * @access private */ private function delete_recursive($path, &$i) { if (!$this->read_put_responses($i)) { return false; } $i = 0; $entries = $this->readlist($path, true); // normally $entries would have at least . and .. but it might not if the directories // permissions didn't allow reading if (empty($entries)) { return false; } unset($entries['.'], $entries['..']); foreach ($entries as $filename => $props) { if (!isset($props['type'])) { return false; } $temp = $path . '/' . $filename; if ($props['type'] == NET_SFTP_TYPE_DIRECTORY) { if (!$this->delete_recursive($temp, $i)) { return false; } } else { if (!$this->send_sftp_packet(NET_SFTP_REMOVE, Strings::packSSH2('s', $temp))) { return false; } $this->remove_from_stat_cache($temp); $i++; if ($i >= NET_SFTP_QUEUE_SIZE) { if (!$this->read_put_responses($i)) { return false; } $i = 0; } } } if (!$this->send_sftp_packet(NET_SFTP_RMDIR, Strings::packSSH2('s', $path))) { return false; } $this->remove_from_stat_cache($path); $i++; if ($i >= NET_SFTP_QUEUE_SIZE) { if (!$this->read_put_responses($i)) { return false; } $i = 0; } return true; } /** * Checks whether a file or directory exists * * @param string $path * @return bool * @access public */ public function file_exists($path) { if ($this->use_stat_cache) { $path = $this->realpath($path); $result = $this->query_stat_cache($path); if (isset($result)) { // return true if $result is an array or if it's an stdClass object return $result !== false; } } return $this->stat($path) !== false; } /** * Tells whether the filename is a directory * * @param string $path * @return bool * @access public */ public function is_dir($path) { $result = $this->get_stat_cache_prop($path, 'type'); if ($result === false) { return false; } return $result === NET_SFTP_TYPE_DIRECTORY; } /** * Tells whether the filename is a regular file * * @param string $path * @return bool * @access public */ public function is_file($path) { $result = $this->get_stat_cache_prop($path, 'type'); if ($result === false) { return false; } return $result === NET_SFTP_TYPE_REGULAR; } /** * Tells whether the filename is a symbolic link * * @param string $path * @return bool * @access public */ public function is_link($path) { $result = $this->get_lstat_cache_prop($path, 'type'); if ($result === false) { return false; } return $result === NET_SFTP_TYPE_SYMLINK; } /** * Tells whether a file exists and is readable * * @param string $path * @return bool * @access public */ public function is_readable($path) { $packet = Strings::packSSH2('sNN', $this->realpath($path), NET_SFTP_OPEN_READ, 0); if (!$this->send_sftp_packet(NET_SFTP_OPEN, $packet)) { return false; } $response = $this->get_sftp_packet(); switch ($this->packet_type) { case NET_SFTP_HANDLE: return true; case NET_SFTP_STATUS: // presumably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED return false; default: throw new \UnexpectedValueException('Expected NET_SFTP_HANDLE or NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } } /** * Tells whether the filename is writable * * @param string $path * @return bool * @access public */ public function is_writable($path) { $packet = Strings::packSSH2('sNN', $this->realpath($path), NET_SFTP_OPEN_WRITE, 0); if (!$this->send_sftp_packet(NET_SFTP_OPEN, $packet)) { return false; } $response = $this->get_sftp_packet(); switch ($this->packet_type) { case NET_SFTP_HANDLE: return true; case NET_SFTP_STATUS: // presumably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED return false; default: throw new \UnexpectedValueException('Expected SSH_FXP_HANDLE or SSH_FXP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } } /** * Tells whether the filename is writeable * * Alias of is_writable * * @param string $path * @return bool * @access public */ public function is_writeable($path) { return $this->is_writable($path); } /** * Gets last access time of file * * @param string $path * @return mixed * @access public */ public function fileatime($path) { return $this->get_stat_cache_prop($path, 'atime'); } /** * Gets file modification time * * @param string $path * @return mixed * @access public */ public function filemtime($path) { return $this->get_stat_cache_prop($path, 'mtime'); } /** * Gets file permissions * * @param string $path * @return mixed * @access public */ public function fileperms($path) { return $this->get_stat_cache_prop($path, 'permissions'); } /** * Gets file owner * * @param string $path * @return mixed * @access public */ public function fileowner($path) { return $this->get_stat_cache_prop($path, 'uid'); } /** * Gets file group * * @param string $path * @return mixed * @access public */ public function filegroup($path) { return $this->get_stat_cache_prop($path, 'gid'); } /** * Gets file size * * @param string $path * @return mixed * @access public */ public function filesize($path) { return $this->get_stat_cache_prop($path, 'size'); } /** * Gets file type * * @param string $path * @return mixed * @access public */ public function filetype($path) { $type = $this->get_stat_cache_prop($path, 'type'); if ($type === false) { return false; } switch ($type) { case NET_SFTP_TYPE_BLOCK_DEVICE: return 'block'; case NET_SFTP_TYPE_CHAR_DEVICE: return 'char'; case NET_SFTP_TYPE_DIRECTORY: return 'dir'; case NET_SFTP_TYPE_FIFO: return 'fifo'; case NET_SFTP_TYPE_REGULAR: return 'file'; case NET_SFTP_TYPE_SYMLINK: return 'link'; default: return false; } } /** * Return a stat properity * * Uses cache if appropriate. * * @param string $path * @param string $prop * @return mixed * @access private */ private function get_stat_cache_prop($path, $prop) { return $this->get_xstat_cache_prop($path, $prop, 'stat'); } /** * Return an lstat properity * * Uses cache if appropriate. * * @param string $path * @param string $prop * @return mixed * @access private */ private function get_lstat_cache_prop($path, $prop) { return $this->get_xstat_cache_prop($path, $prop, 'lstat'); } /** * Return a stat or lstat properity * * Uses cache if appropriate. * * @param string $path * @param string $prop * @param string $type * @return mixed * @access private */ private function get_xstat_cache_prop($path, $prop, $type) { if ($this->use_stat_cache) { $path = $this->realpath($path); $result = $this->query_stat_cache($path); if (is_object($result) && isset($result->$type)) { return $result->{$type}[$prop]; } } $result = $this->$type($path); if ($result === false || !isset($result[$prop])) { return false; } return $result[$prop]; } /** * Renames a file or a directory on the SFTP server * * @param string $oldname * @param string $newname * @return bool * @throws \UnexpectedValueException on receipt of unexpected packets * @access public */ public function rename($oldname, $newname) { if (!($this->bitmap & SSH2::MASK_LOGIN)) { return false; } $oldname = $this->realpath($oldname); $newname = $this->realpath($newname); if ($oldname === false || $newname === false) { return false; } // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.3 $packet = Strings::packSSH2('ss', $oldname, $newname); if (!$this->send_sftp_packet(NET_SFTP_RENAME, $packet)) { return false; } $response = $this->get_sftp_packet(); if ($this->packet_type != NET_SFTP_STATUS) { throw new \UnexpectedValueException('Expected NET_SFTP_STATUS. ' . 'Got packet type: ' . $this->packet_type); } // if $status isn't SSH_FX_OK it's probably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED list($status) = Strings::unpackSSH2('N', $response); if ($status != NET_SFTP_STATUS_OK) { $this->logError($response, $status); return false; } // don't move the stat cache entry over since this operation could very well change the // atime and mtime attributes //$this->update_stat_cache($newname, $this->query_stat_cache($oldname)); $this->remove_from_stat_cache($oldname); $this->remove_from_stat_cache($newname); return true; } /** * Parse Attributes * * See '7. File Attributes' of draft-ietf-secsh-filexfer-13 for more info. * * @param string $response * @return array * @access private */ private function parseAttributes(&$response) { $attr = []; list($flags) = Strings::unpackSSH2('N', $response); // SFTPv4+ have a type field (a byte) that follows the above flag field foreach ($this->attributes as $key => $value) { switch ($flags & $key) { case NET_SFTP_ATTR_SIZE: // 0x00000001 // The size attribute is defined as an unsigned 64-bit integer. // The following will use floats on 32-bit platforms, if necessary. // As can be seen in the BigInteger class, floats are generally // IEEE 754 binary64 "double precision" on such platforms and // as such can represent integers of at least 2^50 without loss // of precision. Interpreted in filesize, 2^50 bytes = 1024 TiB. list($upper, $size) = Strings::unpackSSH2('NN', $response); $attr['size'] = $upper ? 4294967296 * $upper : 0; $attr['size']+= $size < 0 ? ($size & 0x7FFFFFFF) + 0x80000000 : $size; break; case NET_SFTP_ATTR_UIDGID: // 0x00000002 (SFTPv3 only) list($attr['uid'], $attr['gid']) = Strings::unpackSSH2('NN', $response); break; case NET_SFTP_ATTR_PERMISSIONS: // 0x00000004 list($attr['permissions']) = Strings::unpackSSH2('N', $response); // mode == permissions; permissions was the original array key and is retained for bc purposes. // mode was added because that's the more industry standard terminology $attr+= ['mode' => $attr['permissions']]; $fileType = $this->parseMode($attr['permissions']); if ($fileType !== false) { $attr+= ['type' => $fileType]; } break; case NET_SFTP_ATTR_ACCESSTIME: // 0x00000008 list($attr['atime'], $attr['mtime']) = Strings::unpackSSH2('NN', $response); break; case NET_SFTP_ATTR_EXTENDED: // 0x80000000 list($count) = Strings::unpackSSH2('N', $response); for ($i = 0; $i < $count; $i++) { list($key, $value) = Strings::unpackSSH2('ss', $response); $attr[$key] = $value; } } } return $attr; } /** * Attempt to identify the file type * * Quoting the SFTP RFC, "Implementations MUST NOT send bits that are not defined" but they seem to anyway * * @param int $mode * @return int * @access private */ private function parseMode($mode) { // values come from http://lxr.free-electrons.com/source/include/uapi/linux/stat.h#L12 // see, also, http://linux.die.net/man/2/stat switch ($mode & 0170000) {// ie. 1111 0000 0000 0000 case 0000000: // no file type specified - figure out the file type using alternative means return false; case 0040000: return NET_SFTP_TYPE_DIRECTORY; case 0100000: return NET_SFTP_TYPE_REGULAR; case 0120000: return NET_SFTP_TYPE_SYMLINK; // new types introduced in SFTPv5+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-05#section-5.2 case 0010000: // named pipe (fifo) return NET_SFTP_TYPE_FIFO; case 0020000: // character special return NET_SFTP_TYPE_CHAR_DEVICE; case 0060000: // block special return NET_SFTP_TYPE_BLOCK_DEVICE; case 0140000: // socket return NET_SFTP_TYPE_SOCKET; case 0160000: // whiteout // "SPECIAL should be used for files that are of // a known type which cannot be expressed in the protocol" return NET_SFTP_TYPE_SPECIAL; default: return NET_SFTP_TYPE_UNKNOWN; } } /** * Parse Longname * * SFTPv3 doesn't provide any easy way of identifying a file type. You could try to open * a file as a directory and see if an error is returned or you could try to parse the * SFTPv3-specific longname field of the SSH_FXP_NAME packet. That's what this function does. * The result is returned using the * {@link http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-5.2 SFTPv4 type constants}. * * If the longname is in an unrecognized format bool(false) is returned. * * @param string $longname * @return mixed * @access private */ private function parseLongname($longname) { // http://en.wikipedia.org/wiki/Unix_file_types // http://en.wikipedia.org/wiki/Filesystem_permissions#Notation_of_traditional_Unix_permissions if (preg_match('#^[^/]([r-][w-][xstST-]){3}#', $longname)) { switch ($longname[0]) { case '-': return NET_SFTP_TYPE_REGULAR; case 'd': return NET_SFTP_TYPE_DIRECTORY; case 'l': return NET_SFTP_TYPE_SYMLINK; default: return NET_SFTP_TYPE_SPECIAL; } } return false; } /** * Sends SFTP Packets * * See '6. General Packet Format' of draft-ietf-secsh-filexfer-13 for more info. * * @param int $type * @param string $data * @see self::_get_sftp_packet() * @see self::send_channel_packet() * @return bool * @access private */ private function send_sftp_packet($type, $data, $request_id = 1) { $packet = $this->use_request_id ? pack('NCNa*', strlen($data) + 5, $type, $request_id, $data) : pack('NCa*', strlen($data) + 1, $type, $data); $start = microtime(true); $result = $this->send_channel_packet(self::CHANNEL, $packet); $stop = microtime(true); if (defined('NET_SFTP_LOGGING')) { $packet_type = '-> ' . $this->packet_types[$type] . ' (' . round($stop - $start, 4) . 's)'; if (NET_SFTP_LOGGING == self::LOG_REALTIME) { echo "<pre>\r\n" . $this->format_log([$data], [$packet_type]) . "\r\n</pre>\r\n"; flush(); ob_flush(); } else { $this->packet_type_log[] = $packet_type; if (NET_SFTP_LOGGING == self::LOG_COMPLEX) { $this->packet_log[] = $data; } } } return $result; } /** * Resets a connection for re-use * * @param int $reason * @access private */ protected function reset_connection($reason) { parent::reset_connection($reason); $this->use_request_id = false; $this->pwd = false; $this->requestBuffer = []; } /** * Receives SFTP Packets * * See '6. General Packet Format' of draft-ietf-secsh-filexfer-13 for more info. * * Incidentally, the number of SSH_MSG_CHANNEL_DATA messages has no bearing on the number of SFTP packets present. * There can be one SSH_MSG_CHANNEL_DATA messages containing two SFTP packets or there can be two SSH_MSG_CHANNEL_DATA * messages containing one SFTP packet. * * @see self::_send_sftp_packet() * @return string * @access private */ private function get_sftp_packet($request_id = null) { if (isset($request_id) && isset($this->requestBuffer[$request_id])) { $this->packet_type = $this->requestBuffer[$request_id]['packet_type']; $temp = $this->requestBuffer[$request_id]['packet']; unset($this->requestBuffer[$request_id]); return $temp; } // in SSH2.php the timeout is cumulative per function call. eg. exec() will // timeout after 10s. but for SFTP.php it's cumulative per packet $this->curTimeout = $this->timeout; $start = microtime(true); // SFTP packet length while (strlen($this->packet_buffer) < 4) { $temp = $this->get_channel_packet(self::CHANNEL, true); if (is_bool($temp)) { $this->packet_type = false; $this->packet_buffer = ''; return false; } $this->packet_buffer.= $temp; } if (strlen($this->packet_buffer) < 4) { return false; } extract(unpack('Nlength', Strings::shift($this->packet_buffer, 4))); /** @var integer $length */ $tempLength = $length; $tempLength-= strlen($this->packet_buffer); // 256 * 1024 is what SFTP_MAX_MSG_LENGTH is set to in OpenSSH's sftp-common.h if ($tempLength > 256 * 1024) { throw new \RuntimeException('Invalid Size'); } // SFTP packet type and data payload while ($tempLength > 0) { $temp = $this->get_channel_packet(self::CHANNEL, true); if (is_bool($temp)) { $this->packet_type = false; $this->packet_buffer = ''; return false; } $this->packet_buffer.= $temp; $tempLength-= strlen($temp); } $stop = microtime(true); $this->packet_type = ord(Strings::shift($this->packet_buffer)); if ($this->use_request_id) { extract(unpack('Npacket_id', Strings::shift($this->packet_buffer, 4))); // remove the request id $length-= 5; // account for the request id and the packet type } else { $length-= 1; // account for the packet type } $packet = Strings::shift($this->packet_buffer, $length); if (defined('NET_SFTP_LOGGING')) { $packet_type = '<- ' . $this->packet_types[$this->packet_type] . ' (' . round($stop - $start, 4) . 's)'; if (NET_SFTP_LOGGING == self::LOG_REALTIME) { echo "<pre>\r\n" . $this->format_log([$packet], [$packet_type]) . "\r\n</pre>\r\n"; flush(); ob_flush(); } else { $this->packet_type_log[] = $packet_type; if (NET_SFTP_LOGGING == self::LOG_COMPLEX) { $this->packet_log[] = $packet; } } } if (isset($request_id) && $this->use_request_id && $packet_id != $request_id) { $this->requestBuffer[$packet_id] = array( 'packet_type' => $this->packet_type, 'packet' => $packet ); return $this->_get_sftp_packet($request_id); } return $packet; } /** * Returns a log of the packets that have been sent and received. * * Returns a string if NET_SFTP_LOGGING == self::LOG_COMPLEX, an array if NET_SFTP_LOGGING == self::LOG_SIMPLE and false if !defined('NET_SFTP_LOGGING') * * @access public * @return array|string */ public function getSFTPLog() { if (!defined('NET_SFTP_LOGGING')) { return false; } switch (NET_SFTP_LOGGING) { case self::LOG_COMPLEX: return $this->format_log($this->packet_log, $this->packet_type_log); break; //case self::LOG_SIMPLE: default: return $this->packet_type_log; } } /** * Returns all errors * * @return array * @access public */ public function getSFTPErrors() { return $this->sftp_errors; } /** * Returns the last error * * @return string * @access public */ public function getLastSFTPError() { return count($this->sftp_errors) ? $this->sftp_errors[count($this->sftp_errors) - 1] : ''; } /** * Get supported SFTP versions * * @return array * @access public */ public function getSupportedVersions() { $temp = ['version' => $this->version]; if (isset($this->extensions['versions'])) { $temp['extensions'] = $this->extensions['versions']; } return $temp; } /** * Disconnect * * @param int $reason * @return bool * @access protected */ protected function disconnect_helper($reason) { $this->pwd = false; parent::disconnect_helper($reason); } }
qrux/phputils
inc/phpseclib/Net/SFTP.php
PHP
mit
99,629
/* -------------------------------------------------------------------------------- Based on class found at: http://ai.stanford.edu/~gal/Code/FindMotifs/ -------------------------------------------------------------------------------- */ #include "Platform/StableHeaders.h" #include "Util/Helper/ConfigFile.h" //------------------------------------------------------------------------------ namespace Dangine { //------------------------------------------------------------------------------ Config::Config(String filename, String delimiter, String comment, String sentry) : myDelimiter(delimiter) , myComment(comment) , mySentry(sentry) { // Construct a Config, getting keys and values from given file std::ifstream in(filename.c_str()); if (!in) throw file_not_found(filename); in >> (*this); } //------------------------------------------------------------------------------ Config::Config() : myDelimiter(String(1,'=')) , myComment(String(1,'#')) { // Construct a Config without a file; empty } //------------------------------------------------------------------------------ void Config::remove(const String& key) { // Remove key and its value myContents.erase(myContents.find(key)); return; } //------------------------------------------------------------------------------ bool Config::keyExists(const String& key) const { // Indicate whether key is found mapci p = myContents.find(key); return (p != myContents.end()); } //------------------------------------------------------------------------------ /* static */ void Config::trim(String& s) { // Remove leading and trailing whitespace static const char whitespace[] = " \n\t\v\r\f"; s.erase(0, s.find_first_not_of(whitespace)); s.erase(s.find_last_not_of(whitespace) + 1U); } //------------------------------------------------------------------------------ std::ostream& operator<<(std::ostream& os, const Config& cf) { // Save a Config to os for (Config::mapci p = cf.myContents.begin(); p != cf.myContents.end(); ++p) { os << p->first << " " << cf.myDelimiter << " "; os << p->second << std::endl; } return os; } //------------------------------------------------------------------------------ std::istream& operator>>(std::istream& is, Config& cf) { // Load a Config from is // Read in keys and values, keeping internal whitespace typedef String::size_type pos; const String& delim = cf.myDelimiter; // separator const String& comm = cf.myComment; // comment const String& sentry = cf.mySentry; // end of file sentry const pos skip = delim.length(); // length of separator String nextline = ""; // might need to read ahead to see where value ends while (is || nextline.length() > 0) { // Read an entire line at a time String line; if (nextline.length() > 0) { line = nextline; // we read ahead; use it now nextline = ""; } else { std::getline(is, line); } // Ignore comments line = line.substr(0, line.find(comm)); // Check for end of file sentry if (sentry != "" && line.find(sentry) != String::npos) return is; // Parse the line if it contains a delimiter pos delimPos = line.find(delim); if (delimPos < String::npos) { // Extract the key String key = line.substr(0, delimPos); line.replace(0, delimPos+skip, ""); // See if value continues on the next line // Stop at blank line, next line with a key, end of stream, // or end of file sentry bool terminate = false; while(!terminate && is) { std::getline(is, nextline); terminate = true; String nlcopy = nextline; Config::trim(nlcopy); if (nlcopy == "") continue; nextline = nextline.substr(0, nextline.find(comm)); if (nextline.find(delim) != String::npos) continue; if (sentry != "" && nextline.find(sentry) != String::npos) continue; nlcopy = nextline; Config::trim(nlcopy); if (nlcopy != "") line += "\n"; line += nextline; terminate = false; } // Store key and value Config::trim(key); Config::trim(line); cf.myContents[key] = line; // overwrites if key is repeated } } return is; } //------------------------------------------------------------------------------ } // namespace Dangine //------------------------------------------------------------------------------
danielsefton/Dangine
Engine/Util/Helper/src/ConfigFile.cpp
C++
mit
4,492
# frozen_string_literal: true module Webdrone class MethodLogger < Module class << self attr_accessor :last_time, :screenshot end def initialize(methods = nil) super() @methods = methods end if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.7') def included(base) @methods ||= base.instance_methods(false) method_list = @methods base.class_eval do method_list.each do |method_name| original_method = instance_method(method_name) define_method method_name do |*args, &block| caller_location = Kernel.caller_locations[0] cl_path = caller_location.path cl_line = caller_location.lineno if @a0.conf.logger && Gem.path.none? { |path| cl_path.include? path } ini = ::Webdrone::MethodLogger.last_time ||= Time.new ::Webdrone::MethodLogger.screenshot = nil args_log = [args].compact.reject(&:empty?).map(&:to_s).join(' ') begin result = original_method.bind(self).call(*args, &block) fin = ::Webdrone::MethodLogger.last_time = Time.new @a0.logs.trace(ini, fin, cl_path, cl_line, base, method_name, args_log, result, nil, ::Webdrone::MethodLogger.screenshot) result rescue StandardError => exception fin = ::Webdrone::MethodLogger.last_time = Time.new @a0.logs.trace(ini, fin, cl_path, cl_line, base, method_name, args_log, nil, exception, ::Webdrone::MethodLogger.screenshot) raise exception end else original_method.bind(self).call(*args, &block) end end end end end else def included(base) @methods ||= base.instance_methods(false) method_list = @methods base.class_eval do method_list.each do |method_name| original_method = instance_method(method_name) define_method method_name do |*args, **kwargs, &block| caller_location = Kernel.caller_locations[0] cl_path = caller_location.path cl_line = caller_location.lineno if @a0.conf.logger && Gem.path.none? { |path| cl_path.include? path } ini = ::Webdrone::MethodLogger.last_time ||= Time.new ::Webdrone::MethodLogger.screenshot = nil args_log = [args, kwargs].compact.reject(&:empty?).map(&:to_s).join(' ') begin result = original_method.bind(self).call(*args, **kwargs, &block) fin = ::Webdrone::MethodLogger.last_time = Time.new @a0.logs.trace(ini, fin, cl_path, cl_line, base, method_name, args_log, result, nil, ::Webdrone::MethodLogger.screenshot) result rescue StandardError => exception fin = ::Webdrone::MethodLogger.last_time = Time.new @a0.logs.trace(ini, fin, cl_path, cl_line, base, method_name, args_log, nil, exception, ::Webdrone::MethodLogger.screenshot) raise exception end else original_method.bind(self).call(*args, **kwargs, &block) end end end end end end end class Browser def logs @logs ||= Logs.new self end end class Logs attr_reader :a0 def initialize(a0) @a0 = a0 @group_trace_count = [] setup_format setup_trace end def trace(ini, fin, from, lineno, base, method_name, args, result, exception, screenshot) exception = "#{exception.class}: #{exception}" if exception printf @format, (fin - ini), base, method_name, args, (result || exception) unless a0.conf.logger.to_s == 'quiet' CSV.open(@path, "a+") do |csv| csv << [ini.strftime('%Y-%m-%d %H:%M:%S.%L %z'), (fin - ini), from, lineno, base, method_name, args, result, exception, screenshot] end @group_trace_count = @group_trace_count.map { |x| x + 1 } end def with_group(name, abort_error: false) ini = Time.new caller_location = Kernel.caller_locations[0] cl_path = caller_location.path cl_line = caller_location.lineno result = {} @group_trace_count << 0 exception = nil begin yield rescue StandardError => e exception = e bindings = Kernel.binding.callers bindings[0..].each do |binding| location = { path: binding.source_location[0], lineno: binding.source_location[1] } next unless Gem.path.none? { |path| location[:path].include? path } result[:exception] = {} result[:exception][:line] = location[:lineno] result[:exception][:path] = location[:path] break end end result[:trace_count] = @group_trace_count.pop fin = Time.new trace(ini, fin, cl_path, cl_line, Logs, :with_group, [name, { abort_error: abort_error }], result, exception, nil) puts "abort_error: #{abort_error} exception: #{exception}" exit if abort_error == true && exception end def setup_format begin cols, _line = HighLine.default_instance.terminal.terminal_size rescue StandardError => error puts "ignoring error: #{error}" end cols ||= 120 total = 6 + 15 + 11 + 5 w = cols - total w /= 2 w1 = w w2 = cols - total - w1 w1 = 20 if w1 < 20 w2 = 20 if w2 < 20 @format = "%5.3f %14.14s %10s %#{w1}.#{w1}s => %#{w2}.#{w2}s\n" end def setup_trace @path = File.join(a0.conf.outdir, 'a0_webdrone_trace.csv') CSV.open(@path, "a+") do |csv| os = "Windows" if OS.windows? os = "Linux" if OS.linux? os = "OS X" if OS.osx? bits = OS.bits hostname = Socket.gethostname browser_name = a0.driver.capabilities[:browser_name] browser_version = a0.driver.capabilities[:version] browser_platform = a0.driver.capabilities[:platform] webdrone_version = Webdrone::VERSION webdrone_platform = "#{RUBY_ENGINE}-#{RUBY_VERSION} #{RUBY_PLATFORM}" csv << %w.OS ARCH HOSTNAME BROWSER\ NAME BROWSER\ VERSION BROWSER\ PLATFORM WEBDRONE\ VERSION WEBDRONE\ PLATFORM. csv << [os, bits, hostname, browser_name, browser_version, browser_platform, webdrone_version, webdrone_platform] end CSV.open(@path, "a+") do |csv| csv << %w.DATE DUR FROM LINENO MODULE CALL PARAMS RESULT EXCEPTION SCREENSHOT. end end end class Clic include MethodLogger.new %i[id css link button on option xpath] end class Conf include MethodLogger.new %i[timeout= outdir= error= developer= logger=] end class Ctxt include MethodLogger.new %i[create_tab close_tab with_frame reset with_alert ignore_alert with_conf] end class Find include MethodLogger.new %i[id css link button on option xpath] end class Form include MethodLogger.new %i[with_xpath save set get clic mark submit xlsx] end class Html include MethodLogger.new %i[id css link button on option xpath] end class Mark include MethodLogger.new %i[id css link button on option xpath] end class Open include MethodLogger.new %i[url reload] end class Shot include MethodLogger.new %i[screen] end class Text include MethodLogger.new %i[id css link button on option xpath] end class Vrfy include MethodLogger.new %i[id css link button on option xpath] end class Wait include MethodLogger.new %i[for time] end class Xlsx include MethodLogger.new %i[dict rows both save reset] end end
a0/a0-webdrone-ruby
lib/webdrone/logg.rb
Ruby
mit
7,845
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #if XR_MANAGEMENT_ENABLED using UnityEngine.XR.Management; #endif // XR_MANAGEMENT_ENABLED namespace Microsoft.MixedReality.Toolkit.Utilities { /// <summary> /// Utilities that abstract XR settings functionality so that the MRTK need not know which /// implementation is being used. /// </summary> public static class XRSettingsUtilities { #if !UNITY_2020_2_OR_NEWER && UNITY_2019_3_OR_NEWER && XR_MANAGEMENT_ENABLED private static bool? isXRSDKEnabled = null; #endif // !UNITY_2020_2_OR_NEWER && UNITY_2019_3_OR_NEWER && XR_MANAGEMENT_ENABLED /// <summary> /// Checks if an XR SDK plug-in is installed that disables legacy VR. Returns false if so. /// </summary> public static bool XRSDKEnabled { get { #if UNITY_2020_2_OR_NEWER return true; #elif UNITY_2019_3_OR_NEWER && XR_MANAGEMENT_ENABLED if (!isXRSDKEnabled.HasValue) { XRGeneralSettings currentSettings = XRGeneralSettings.Instance; if (currentSettings != null && currentSettings.AssignedSettings != null) { #pragma warning disable CS0618 // Suppressing the warning to support xr management plugin 3.x and 4.x isXRSDKEnabled = currentSettings.AssignedSettings.loaders.Count > 0; #pragma warning restore CS0618 } else { isXRSDKEnabled = false; } } return isXRSDKEnabled.Value; #else return false; #endif // UNITY_2020_2_OR_NEWER } } } }
DDReaper/MixedRealityToolkit-Unity
Assets/MRTK/Core/Utilities/XRSettingsUtilities.cs
C#
mit
1,780
<?php namespace app\base; use Yii; use yii\base\Component; class MailService extends Component { public function init() { parent::init(); if ($this->_mail === null) { $this->_mail = Yii::$app->getMailer(); //$this->_mail->htmlLayout = Yii::getAlias($this->id . '/mails/layouts/html'); //$this->_mail->textLayout = Yii::getAlias($this->id . '/mails/layouts/text'); $this->_mail->viewPath = '@app/modules/' . $module->id . '/mails/views'; if (isset(Yii::$app->params['robotEmail']) && Yii::$app->params['robotEmail'] !== null) { $this->_mail->messageConfig['from'] = !isset(Yii::$app->params['robotName']) ? Yii::$app->params['robotEmail'] : [Yii::$app->params['robotEmail'] => Yii::$app->params['robotName']]; } } return $this->_mail; } }
artkost/yii2-starter-kit
app/base/MailService.php
PHP
mit
876
using System; using Xamarin.Forms; namespace EmployeeApp { public partial class ClaimDetailPage : ContentPage { private ClaimViewModel model; public ClaimDetailPage(ClaimViewModel cl) { InitializeComponent(); model = cl; BindingContext = model; ToolbarItem optionbutton = new ToolbarItem { Text = "Options", Order = ToolbarItemOrder.Default, Priority = 0 }; ToolbarItems.Add(optionbutton); optionbutton.Clicked += OptionsClicked; if (model.ImageUrl.StartsWith("http:") || model.ImageUrl.StartsWith("https:")) { claimCellImage.Source = new UriImageSource { CachingEnabled = false, Uri = new Uri(model.ImageUrl) }; } claimHintStackLayout.SetBinding(IsVisibleProperty, new Binding { Source = BindingContext, Path = "Status", Converter = new ClaminShowDetailHintConvert(), Mode = BindingMode.OneWay }); claimHintIcon.SetBinding(Image.IsVisibleProperty, new Binding { Source = BindingContext, Path = "Status", Converter = new ClaminShowDetailHintIconConvert(), Mode = BindingMode.OneWay }); claimHintTitle.SetBinding(Label.TextProperty, new Binding { Source = BindingContext, Path = "Status", Converter = new ClaminDetailHintTitleConvert(), Mode = BindingMode.OneWay }); claimHintMessage.SetBinding(Label.TextProperty, new Binding { Source = BindingContext, Path = "Status", Converter = new ClaminDetailHintMessageConvert(), Mode = BindingMode.OneWay }); claimHintFrame.SetBinding(Frame.BackgroundColorProperty, new Binding { Source = BindingContext, Path = "Status", Converter = new ClaminDetailHintBkConvert(), Mode = BindingMode.OneWay }); claimHintMessage.SetBinding(Label.TextColorProperty, new Binding { Source = BindingContext, Path = "Status", Converter = new ClaminDetailHintMsgColorConvert(), Mode = BindingMode.OneWay }); InitGridView(); this.Title = "#" + cl.Name; } private void InitGridView() { if (mainPageGrid.RowDefinitions.Count == 0) { claimDetailStackLayout.Padding = new Thickness(0, Display.Convert(40)); claimHintStackLayout.HeightRequest = Display.Convert(110); Display.SetGridRowsHeight(claimHintGrid, new string[] { "32", "36" }); claimHintIcon.WidthRequest = Display.Convert(32); claimHintIcon.HeightRequest = Display.Convert(32); Display.SetGridRowsHeight(mainPageGrid, new string[] { "50", "46", "20", "54", "176", "30", "40", "54", "36", "44", "440", "1*"}); claimDescription.Margin = new Thickness(0, Display.Convert(14)); } } public async void OptionsClicked(object sender, EventArgs e) { var action = await DisplayActionSheet(null, "Cancel", null, "Approve", "Contact policy holder", "Decline"); switch (action) { case "Approve": model.Status = ClaimStatus.Approved; model.isNew = false; break; case "Decline": model.Status = ClaimStatus.Declined; model.isNew = false; break; } } } }
TBag/canviz
Mobile/EmployeeApp/EmployeeApp/EmployeeApp/Views/ClaimDetailPage.xaml.cs
C#
mit
3,471
/* Copyright (C) 2013-2015 MetaMorph Software, Inc Permission is hereby granted, free of charge, to any person obtaining a copy of this data, including any software or models in source or binary form, as well as any drawings, specifications, and documentation (collectively "the Data"), to deal in the Data without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Data, and to permit persons to whom the Data is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Data. THE DATA IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, SPONSORS, DEVELOPERS, CONTRIBUTORS, OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE DATA OR THE USE OR OTHER DEALINGS IN THE DATA. ======================= This version of the META tools is a fork of an original version produced by Vanderbilt University's Institute for Software Integrated Systems (ISIS). Their license statement: Copyright (C) 2011-2014 Vanderbilt University Developed with the sponsorship of the Defense Advanced Research Projects Agency (DARPA) and delivered to the U.S. Government with Unlimited Rights as defined in DFARS 252.227-7013. Permission is hereby granted, free of charge, to any person obtaining a copy of this data, including any software or models in source or binary form, as well as any drawings, specifications, and documentation (collectively "the Data"), to deal in the Data without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Data, and to permit persons to whom the Data is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Data. THE DATA IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, SPONSORS, DEVELOPERS, CONTRIBUTORS, OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE DATA OR THE USE OR OTHER DEALINGS IN THE DATA. */ using System; using System.Runtime.InteropServices; using GME.Util; using GME.MGA; namespace GME.CSharp { abstract class ComponentConfig { // Set paradigm name. Provide * if you want to register it for all paradigms. public const string paradigmName = "CyPhyML"; // Set the human readable name of the interpreter. You can use white space characters. public const string componentName = "CyPhyPrepareIFab"; // Specify an icon path public const string iconName = "CyPhyPrepareIFab.ico"; public const string tooltip = "CyPhyPrepareIFab"; // If null, updated with the assembly path + the iconName dynamically on registration public static string iconPath = null; // Uncomment the flag if your component is paradigm independent. public static componenttype_enum componentType = componenttype_enum.COMPONENTTYPE_INTERPRETER; public const regaccessmode_enum registrationMode = regaccessmode_enum.REGACCESS_SYSTEM; public const string progID = "MGA.Interpreter.CyPhyPrepareIFab"; public const string guid = "D3B4ECEE-36EC-4753-9B10-312084B48F2A"; } }
pombredanne/metamorphosys-desktop
metamorphosys/META/src/CyPhyPrepareIFab/ComponentConfig.cs
C#
mit
3,987
package cellsociety_team05; public class SimulationException extends Exception { public SimulationException(String s) { super(s); } }
dpak96/CellSociety
src/cellsociety_team05/SimulationException.java
Java
mit
139
PhotoAlbums.Router.map(function() { this.resource('login'); this.resource('album', {path: '/:album_id'}); this.resource('photo', {path: 'photos/:photo_id'}); });
adamstegman/photo_albums
app/assets/javascripts/router.js
JavaScript
mit
168
from __future__ import annotations from collections import defaultdict from collections.abc import Generator, Iterable, Mapping, MutableMapping from contextlib import contextmanager import logging import re import textwrap from types import MappingProxyType from typing import TYPE_CHECKING, Any, NamedTuple from markdown_it.rules_block.html_block import HTML_SEQUENCES from mdformat import codepoints from mdformat._compat import Literal from mdformat._conf import DEFAULT_OPTS from mdformat.renderer._util import ( RE_CHAR_REFERENCE, decimalify_leading, decimalify_trailing, escape_asterisk_emphasis, escape_underscore_emphasis, get_list_marker_type, is_tight_list, is_tight_list_item, longest_consecutive_sequence, maybe_add_link_brackets, ) from mdformat.renderer.typing import Postprocess, Render if TYPE_CHECKING: from mdformat.renderer import RenderTreeNode LOGGER = logging.getLogger(__name__) # A marker used to point a location where word wrap is allowed # to occur. WRAP_POINT = "\x00" # A marker used to indicate location of a character that should be preserved # during word wrap. Should be converted to the actual character after wrap. PRESERVE_CHAR = "\x00" def make_render_children(separator: str) -> Render: def render_children( node: RenderTreeNode, context: RenderContext, ) -> str: return separator.join(child.render(context) for child in node.children) return render_children def hr(node: RenderTreeNode, context: RenderContext) -> str: thematic_break_width = 70 return "_" * thematic_break_width def code_inline(node: RenderTreeNode, context: RenderContext) -> str: code = node.content all_chars_are_whitespace = not code.strip() longest_backtick_seq = longest_consecutive_sequence(code, "`") if longest_backtick_seq: separator = "`" * (longest_backtick_seq + 1) return f"{separator} {code} {separator}" if code.startswith(" ") and code.endswith(" ") and not all_chars_are_whitespace: return f"` {code} `" return f"`{code}`" def html_block(node: RenderTreeNode, context: RenderContext) -> str: content = node.content.rstrip("\n") # Need to strip leading spaces because we do so for regular Markdown too. # Without the stripping the raw HTML and Markdown get unaligned and # semantic may change. content = content.lstrip() return content def html_inline(node: RenderTreeNode, context: RenderContext) -> str: return node.content def _in_block(block_name: str, node: RenderTreeNode) -> bool: while node.parent: if node.parent.type == block_name: return True node = node.parent return False def hardbreak(node: RenderTreeNode, context: RenderContext) -> str: if _in_block("heading", node): return "<br /> " return "\\" + "\n" def softbreak(node: RenderTreeNode, context: RenderContext) -> str: if context.do_wrap and _in_block("paragraph", node): return WRAP_POINT return "\n" def text(node: RenderTreeNode, context: RenderContext) -> str: """Process a text token. Text should always be a child of an inline token. An inline token should always be enclosed by a heading or a paragraph. """ text = node.content # Escape backslash to prevent it from making unintended escapes. # This escape has to be first, else we start multiplying backslashes. text = text.replace("\\", "\\\\") text = escape_asterisk_emphasis(text) # Escape emphasis/strong marker. text = escape_underscore_emphasis(text) # Escape emphasis/strong marker. text = text.replace("[", "\\[") # Escape link label enclosure text = text.replace("]", "\\]") # Escape link label enclosure text = text.replace("<", "\\<") # Escape URI enclosure text = text.replace("`", "\\`") # Escape code span marker # Escape "&" if it starts a sequence that can be interpreted as # a character reference. text = RE_CHAR_REFERENCE.sub(r"\\\g<0>", text) # The parser can give us consecutive newlines which can break # the markdown structure. Replace two or more consecutive newlines # with newline character's decimal reference. text = text.replace("\n\n", "&#10;&#10;") # If the last character is a "!" and the token next up is a link, we # have to escape the "!" or else the link will be interpreted as image. next_sibling = node.next_sibling if text.endswith("!") and next_sibling and next_sibling.type == "link": text = text[:-1] + "\\!" if context.do_wrap and _in_block("paragraph", node): text = re.sub(r"\s+", WRAP_POINT, text) return text def fence(node: RenderTreeNode, context: RenderContext) -> str: info_str = node.info.strip() lang = info_str.split(maxsplit=1)[0] if info_str else "" code_block = node.content # Info strings of backtick code fences cannot contain backticks. # If that is the case, we make a tilde code fence instead. fence_char = "~" if "`" in info_str else "`" # Format the code block using enabled codeformatter funcs if lang in context.options.get("codeformatters", {}): fmt_func = context.options["codeformatters"][lang] try: code_block = fmt_func(code_block, info_str) except Exception: # Swallow exceptions so that formatter errors (e.g. due to # invalid code) do not crash mdformat. assert node.map is not None, "A fence token must have `map` attribute set" filename = context.options.get("mdformat", {}).get("filename", "") warn_msg = ( f"Failed formatting content of a {lang} code block " f"(line {node.map[0] + 1} before formatting)" ) if filename: warn_msg += f". Filename: {filename}" LOGGER.warning(warn_msg) # The code block must not include as long or longer sequence of `fence_char`s # as the fence string itself fence_len = max(3, longest_consecutive_sequence(code_block, fence_char) + 1) fence_str = fence_char * fence_len return f"{fence_str}{info_str}\n{code_block}{fence_str}" def code_block(node: RenderTreeNode, context: RenderContext) -> str: return fence(node, context) def image(node: RenderTreeNode, context: RenderContext) -> str: description = _render_inline_as_text(node, context) if context.do_wrap: # Prevent line breaks description = description.replace(WRAP_POINT, " ") ref_label = node.meta.get("label") if ref_label: context.env["used_refs"].add(ref_label) ref_label_repr = ref_label.lower() if description.lower() == ref_label_repr: return f"![{description}]" return f"![{description}][{ref_label_repr}]" uri = node.attrs["src"] assert isinstance(uri, str) uri = maybe_add_link_brackets(uri) title = node.attrs.get("title") if title is not None: return f'![{description}]({uri} "{title}")' return f"![{description}]({uri})" def _render_inline_as_text(node: RenderTreeNode, context: RenderContext) -> str: """Special kludge for image `alt` attributes to conform CommonMark spec. Don't try to use it! Spec requires to show `alt` content with stripped markup, instead of simple escaping. """ def text_renderer(node: RenderTreeNode, context: RenderContext) -> str: return node.content def image_renderer(node: RenderTreeNode, context: RenderContext) -> str: return _render_inline_as_text(node, context) inline_renderers: Mapping[str, Render] = defaultdict( lambda: make_render_children(""), { "text": text_renderer, "image": image_renderer, "link": link, "softbreak": softbreak, }, ) inline_context = RenderContext( inline_renderers, context.postprocessors, context.options, context.env ) return make_render_children("")(node, inline_context) def link(node: RenderTreeNode, context: RenderContext) -> str: if node.info == "auto": autolink_url = node.attrs["href"] assert isinstance(autolink_url, str) # The parser adds a "mailto:" prefix to autolink email href. We remove the # prefix if it wasn't there in the source. if autolink_url.startswith("mailto:") and not node.children[ 0 ].content.startswith("mailto:"): autolink_url = autolink_url[7:] return "<" + autolink_url + ">" text = "".join(child.render(context) for child in node.children) if context.do_wrap: # Prevent line breaks text = text.replace(WRAP_POINT, " ") ref_label = node.meta.get("label") if ref_label: context.env["used_refs"].add(ref_label) ref_label_repr = ref_label.lower() if text.lower() == ref_label_repr: return f"[{text}]" return f"[{text}][{ref_label_repr}]" uri = node.attrs["href"] assert isinstance(uri, str) uri = maybe_add_link_brackets(uri) title = node.attrs.get("title") if title is None: return f"[{text}]({uri})" assert isinstance(title, str) title = title.replace('"', '\\"') return f'[{text}]({uri} "{title}")' def em(node: RenderTreeNode, context: RenderContext) -> str: text = make_render_children(separator="")(node, context) indicator = node.markup return indicator + text + indicator def strong(node: RenderTreeNode, context: RenderContext) -> str: text = make_render_children(separator="")(node, context) indicator = node.markup return indicator + text + indicator def heading(node: RenderTreeNode, context: RenderContext) -> str: text = make_render_children(separator="")(node, context) if node.markup == "=": prefix = "# " elif node.markup == "-": prefix = "## " else: # ATX heading prefix = node.markup + " " # There can be newlines in setext headers, but we make an ATX # header always. Convert newlines to spaces. text = text.replace("\n", " ") # If the text ends in a sequence of hashes (#), the hashes will be # interpreted as an optional closing sequence of the heading, and # will not be rendered. Escape a line ending hash to prevent this. if text.endswith("#"): text = text[:-1] + "\\#" return prefix + text def blockquote(node: RenderTreeNode, context: RenderContext) -> str: marker = "> " with context.indented(len(marker)): text = make_render_children(separator="\n\n")(node, context) lines = text.splitlines() if not lines: return ">" quoted_lines = (f"{marker}{line}" if line else ">" for line in lines) quoted_str = "\n".join(quoted_lines) return quoted_str def _wrap(text: str, *, width: int | Literal["no"]) -> str: """Wrap text at locations pointed by `WRAP_POINT`s. Converts `WRAP_POINT`s to either a space or newline character, thus wrapping the text. Already existing whitespace will be preserved as is. """ text, replacements = _prepare_wrap(text) if width == "no": return _recover_preserve_chars(text, replacements) wrapper = textwrap.TextWrapper( break_long_words=False, break_on_hyphens=False, width=width, expand_tabs=False, replace_whitespace=False, ) wrapped = wrapper.fill(text) wrapped = _recover_preserve_chars(wrapped, replacements) return " " + wrapped if text.startswith(" ") else wrapped def _prepare_wrap(text: str) -> tuple[str, str]: """Prepare text for wrap. Convert `WRAP_POINT`s to spaces. Convert whitespace to `PRESERVE_CHAR`s. Return a tuple with the prepared string, and another string consisting of replacement characters for `PRESERVE_CHAR`s. """ result = "" replacements = "" for c in text: if c == WRAP_POINT: if not result or result[-1] != " ": result += " " elif c in codepoints.UNICODE_WHITESPACE: result += PRESERVE_CHAR replacements += c else: result += c return result, replacements def _recover_preserve_chars(text: str, replacements: str) -> str: replacement_iterator = iter(replacements) return "".join( next(replacement_iterator) if c == PRESERVE_CHAR else c for c in text ) def paragraph(node: RenderTreeNode, context: RenderContext) -> str: # noqa: C901 inline_node = node.children[0] text = inline_node.render(context) if context.do_wrap: wrap_mode = context.options["mdformat"]["wrap"] if isinstance(wrap_mode, int): wrap_mode -= context.env["indent_width"] wrap_mode = max(1, wrap_mode) text = _wrap(text, width=wrap_mode) # A paragraph can start or end in whitespace e.g. if the whitespace was # in decimal representation form. We need to re-decimalify it, one reason being # to enable "empty" paragraphs with whitespace only. text = decimalify_leading(codepoints.UNICODE_WHITESPACE, text) text = decimalify_trailing(codepoints.UNICODE_WHITESPACE, text) lines = text.split("\n") for i in range(len(lines)): # Strip whitespace to prevent issues like a line starting tab that is # interpreted as start of a code block. lines[i] = lines[i].strip() # If a line looks like an ATX heading, escape the first hash. if re.match(r"#{1,6}( |\t|$)", lines[i]): lines[i] = f"\\{lines[i]}" # Make sure a paragraph line does not start with ">" # (otherwise it will be interpreted as a block quote). if lines[i].startswith(">"): lines[i] = f"\\{lines[i]}" # Make sure a paragraph line does not start with "*", "-" or "+" # followed by a space, tab, or end of line. # (otherwise it will be interpreted as list item). if re.match(r"[-*+]( |\t|$)", lines[i]): lines[i] = f"\\{lines[i]}" # If a line starts with a number followed by "." or ")" followed by # a space, tab or end of line, escape the "." or ")" or it will be # interpreted as ordered list item. if re.match(r"[0-9]+\)( |\t|$)", lines[i]): lines[i] = lines[i].replace(")", "\\)", 1) if re.match(r"[0-9]+\.( |\t|$)", lines[i]): lines[i] = lines[i].replace(".", "\\.", 1) # Consecutive "-", "*" or "_" sequences can be interpreted as thematic # break. Escape them. space_removed = lines[i].replace(" ", "").replace("\t", "") if len(space_removed) >= 3: if all(c == "*" for c in space_removed): lines[i] = lines[i].replace("*", "\\*", 1) # pragma: no cover elif all(c == "-" for c in space_removed): lines[i] = lines[i].replace("-", "\\-", 1) elif all(c == "_" for c in space_removed): lines[i] = lines[i].replace("_", "\\_", 1) # pragma: no cover # A stripped line where all characters are "=" or "-" will be # interpreted as a setext heading. Escape. stripped = lines[i].strip(" \t") if all(c == "-" for c in stripped): lines[i] = lines[i].replace("-", "\\-", 1) elif all(c == "=" for c in stripped): lines[i] = lines[i].replace("=", "\\=", 1) # Check if the line could be interpreted as an HTML block. # If yes, prefix it with 4 spaces to prevent this. for html_seq_tuple in HTML_SEQUENCES: can_break_paragraph = html_seq_tuple[2] opening_re = html_seq_tuple[0] if can_break_paragraph and opening_re.search(lines[i]): lines[i] = f" {lines[i]}" break text = "\n".join(lines) return text def list_item(node: RenderTreeNode, context: RenderContext) -> str: """Return one list item as string. This returns just the content. List item markers and indentation are added in `bullet_list` and `ordered_list` renderers. """ block_separator = "\n" if is_tight_list_item(node) else "\n\n" text = make_render_children(block_separator)(node, context) if not text.strip(): return "" return text def bullet_list(node: RenderTreeNode, context: RenderContext) -> str: marker_type = get_list_marker_type(node) first_line_indent = " " indent = " " * len(marker_type + first_line_indent) block_separator = "\n" if is_tight_list(node) else "\n\n" with context.indented(len(indent)): text = "" for child_idx, child in enumerate(node.children): list_item = child.render(context) formatted_lines = [] line_iterator = iter(list_item.split("\n")) first_line = next(line_iterator) formatted_lines.append( f"{marker_type}{first_line_indent}{first_line}" if first_line else marker_type ) for line in line_iterator: formatted_lines.append(f"{indent}{line}" if line else "") text += "\n".join(formatted_lines) if child_idx != len(node.children) - 1: text += block_separator return text def ordered_list(node: RenderTreeNode, context: RenderContext) -> str: consecutive_numbering = context.options.get("mdformat", {}).get( "number", DEFAULT_OPTS["number"] ) marker_type = get_list_marker_type(node) first_line_indent = " " block_separator = "\n" if is_tight_list(node) else "\n\n" list_len = len(node.children) starting_number = node.attrs.get("start") if starting_number is None: starting_number = 1 assert isinstance(starting_number, int) if consecutive_numbering: indent_width = len( f"{list_len + starting_number - 1}{marker_type}{first_line_indent}" ) else: indent_width = len(f"{starting_number}{marker_type}{first_line_indent}") text = "" with context.indented(indent_width): for list_item_index, list_item in enumerate(node.children): list_item_text = list_item.render(context) formatted_lines = [] line_iterator = iter(list_item_text.split("\n")) first_line = next(line_iterator) if consecutive_numbering: # Prefix first line of the list item with consecutive numbering, # padded with zeros to make all markers of even length. # E.g. # 002. This is the first list item # 003. Second item # ... # 112. Last item number = starting_number + list_item_index pad = len(str(list_len + starting_number - 1)) number_str = str(number).rjust(pad, "0") formatted_lines.append( f"{number_str}{marker_type}{first_line_indent}{first_line}" if first_line else f"{number_str}{marker_type}" ) else: # Prefix first line of first item with the starting number of the # list. Prefix following list items with the number one # prefixed by zeros to make the list item marker of even length # with the first one. # E.g. # 5321. This is the first list item # 0001. Second item # 0001. Third item first_item_marker = f"{starting_number}{marker_type}" other_item_marker = ( "0" * (len(str(starting_number)) - 1) + "1" + marker_type ) if list_item_index == 0: formatted_lines.append( f"{first_item_marker}{first_line_indent}{first_line}" if first_line else first_item_marker ) else: formatted_lines.append( f"{other_item_marker}{first_line_indent}{first_line}" if first_line else other_item_marker ) for line in line_iterator: formatted_lines.append(" " * indent_width + line if line else "") text += "\n".join(formatted_lines) if list_item_index != len(node.children) - 1: text += block_separator return text DEFAULT_RENDERERS: Mapping[str, Render] = MappingProxyType( { "inline": make_render_children(""), "root": make_render_children("\n\n"), "hr": hr, "code_inline": code_inline, "html_block": html_block, "html_inline": html_inline, "hardbreak": hardbreak, "softbreak": softbreak, "text": text, "fence": fence, "code_block": code_block, "link": link, "image": image, "em": em, "strong": strong, "heading": heading, "blockquote": blockquote, "paragraph": paragraph, "bullet_list": bullet_list, "ordered_list": ordered_list, "list_item": list_item, } ) class RenderContext(NamedTuple): """A collection of data that is passed as input to `Render` and `Postprocess` functions.""" renderers: Mapping[str, Render] postprocessors: Mapping[str, Iterable[Postprocess]] options: Mapping[str, Any] env: MutableMapping @contextmanager def indented(self, width: int) -> Generator[None, None, None]: self.env["indent_width"] += width try: yield finally: self.env["indent_width"] -= width @property def do_wrap(self) -> bool: wrap_mode = self.options.get("mdformat", {}).get("wrap", DEFAULT_OPTS["wrap"]) return isinstance(wrap_mode, int) or wrap_mode == "no" def with_default_renderer_for(self, *syntax_names: str) -> RenderContext: renderers = dict(self.renderers) for syntax in syntax_names: if syntax in DEFAULT_RENDERERS: renderers[syntax] = DEFAULT_RENDERERS[syntax] else: renderers.pop(syntax, None) return RenderContext( MappingProxyType(renderers), self.postprocessors, self.options, self.env )
executablebooks/mdformat
src/mdformat/renderer/_context.py
Python
mit
22,558
<?php namespace App\Controllers; use App\Models\Queries\ArticleSQL; use App\Models\Queries\CategorieSQL; use Core\Language; use Core\View; use Core\Controller; use Helpers\Twig; use Helpers\Url; class Categories extends Controller { public function __construct() { parent::__construct(); } public function getCategorie() { $categorieSQL = new CategorieSQL(); $categorie = $categorieSQL->prepareFindAll()->execute(); $data['categories'] = $categorie; $data['url'] = SITEURL; $data['title'] = "Toutes les catégories"; View::rendertemplate('header', $data); Twig::render('Categorie/index', $data); View::rendertemplate('footer', $data); } public function detailCategorie($id) { $categorieSQL = new CategorieSQL(); $categorie = $categorieSQL->findById($id); if($categorie){ $articleSQL = new ArticleSQL(); //$article = $articleSQL->findById($id); $article = $articleSQL->prepareFindWithCondition("id_categorie = ".$id)->execute(); $data['categorie'] = $categorie; $data['article'] = $article; $data['url'] = SITEURL; $data['title'] = $categorie->titre; View::rendertemplate('header', $data); Twig::render('Categorie/detail', $data); View::rendertemplate('footer', $data); }else{ $this->getCategorie(); } } }
HelleboidQ/WordPress-en-mieux
app/Controllers/Categories.php
PHP
mit
1,507
package iron_hippo_exe import ( "fmt" "io" "net/http" "golang.org/x/oauth2" "golang.org/x/oauth2/google" "google.golang.org/appengine" "google.golang.org/appengine/log" "google.golang.org/appengine/urlfetch" ) const ProjectID = "cpb101demo1" type DataflowTemplatePostBody struct { JobName string `json:"jobName"` GcsPath string `json:"gcsPath"` Parameters struct { InputTable string `json:"inputTable"` OutputProjectID string `json:"outputProjectId"` OutputKind string `json:"outputKind"` } `json:"parameters"` Environment struct { TempLocation string `json:"tempLocation"` Zone string `json:"zone"` } `json:"environment"` } func init() { http.HandleFunc("/cron/start", handler) } func handler(w http.ResponseWriter, r *http.Request) { ctx := appengine.NewContext(r) client := &http.Client{ Transport: &oauth2.Transport{ Source: google.AppEngineTokenSource(ctx, "https://www.googleapis.com/auth/cloud-platform"), Base: &urlfetch.Transport{Context: ctx}, }, } res, err := client.Post(fmt.Sprintf("https://dataflow.googleapis.com/v1b3/projects/%s/templates", ProjectID), "application/json", r.Body) if err != nil { log.Errorf(ctx, "ERROR dataflow: %s", err) w.WriteHeader(http.StatusInternalServerError) return } _, err = io.Copy(w, res.Body) if err != nil { log.Errorf(ctx, "ERROR Copy API response: %s", err) w.WriteHeader(http.StatusInternalServerError) return } w.WriteHeader(res.StatusCode) }
sinmetal/iron-hippo
appengine/iron_hippo.go
GO
mit
1,489
import teca.utils as tecautils import teca.ConfigHandler as tecaconf import unittest class TestFileFilter(unittest.TestCase): def setUp(self): self.conf = tecaconf.ConfigHandler( "tests/test_data/configuration.json", {"starting_path": "tests/test_data/images"} ) self.files_list = [ "foo.doc", "yukinon.jpg", "cuteflushadoingflushathings.webm" ] def test_dothefiltering(self): self.assertTrue("foo.doc" not in tecautils.filterImages(self.files_list, self.conf)) self.assertTrue("yukinon.jpg" in tecautils.filterImages(self.files_list, self.conf)) def test_nofiles(self): self.assertEqual(0, len(tecautils.filterImages([], self.conf)))
alfateam123/Teca
tests/test_utils.py
Python
mit
902
import { h, Component } from 'preact'; import moment from 'moment'; const MonthPicker = ({ onChange, ...props }) => ( <select onChange={onChange} id="select-month">{ optionsFor("month", props.date) }</select> ); const DayPicker = ({ onChange, ...props }) => ( <select onChange={onChange} id="select-date">{ optionsFor("day", props.date) }</select> ); const YearPicker = ({ onChange, ...props }) => ( <select onChange={onChange} id="select-year">{ optionsFor("year", props.date) }</select> ); const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] const startYear = 1930; const endYear = 2018; function optionsFor(field, selectedDate) { if (field === 'year') { selected = selectedDate.year(); return [...Array(endYear-startYear).keys()].map((item, i) => { var isSelected = (startYear + item) == selected; return ( <option value={startYear + item} selected={isSelected ? 'selected' : ''}>{startYear + item}</option> ); }); } else if (field === 'month') { selected = selectedDate.month(); return months.map((item, i) => { var isSelected = i == selected; return ( <option value={i} selected={isSelected ? 'selected' : ''}>{item}</option> ); }); } else if (field === 'day') { var selected = selectedDate.date(); var firstDay = 1; var lastDay = moment(selectedDate).add(1, 'months').date(1).subtract(1, 'days').date() + 1; return [...Array(lastDay-firstDay).keys()].map((item, i) => { var isSelected = (item + 1) == selected; return ( <option value={item + 1} selected={isSelected ? 'selected': ''}>{item + 1}</option> ) }); } } export default class DatePicker extends Component { constructor(props) { super(props); this.state = { date: props.date }; this.onChange = this.onChange.bind(this); } onChange(event) { var month = document.getElementById('select-month').value; var day = document.getElementById('select-date').value; var year = document.getElementById('select-year').value; var newDate = moment().year(year).month(month).date(day); this.setState({ date: newDate }) this.props.onChange(newDate); } render() { return ( <div> <MonthPicker date={this.state.date} onChange={this.onChange} /> <DayPicker date={this.state.date} onChange={this.onChange} /> <YearPicker date={this.state.date} onChange={this.onChange} /> </div> ) } }
jc4p/natal-charts
app/src/components/DatePicker.js
JavaScript
mit
2,568
'use strict'; angular.module('users').factory('Permissions', ['Authentication', '$location', function(Authentication, $location) { // Permissions service logic // ... // Public API return { //check if user suits the right permissions for visiting the page, Otherwise go to 401 userRolesContains: function (role) { if (!Authentication.user || Authentication.user.roles.indexOf(role) === -1) { return false; } else { return true; } }, //This function returns true if the user is either admin or maintainer adminOrMaintainer: function () { if (Authentication.user && (Authentication.user.roles.indexOf('admin')> -1 || Authentication.user.roles.indexOf('maintainer')> -1)) { return true; } else { return false; } }, isPermissionGranted: function (role) { if (!Authentication.user || Authentication.user.roles.indexOf(role) === -1) { $location.path('/401'); } }, isAdmin: function () { if (Authentication.user && (Authentication.user.roles.indexOf('admin') > -1)) { return true; } else { return false; } } }; } ]);
hacor/gamwbras
public/modules/users/services/permissions.client.service.js
JavaScript
mit
1,228
import $ from 'jquery'; import keyboard from 'virtual-keyboard'; $.fn.addKeyboard = function () { return this.keyboard({ openOn: null, stayOpen: false, layout: 'custom', customLayout: { 'normal': ['7 8 9 {c}', '4 5 6 {del}', '1 2 3 {sign}', '0 0 {dec} {a}'], }, position: { // null (attach to input/textarea) or a jQuery object (attach elsewhere) of: null, my: 'center top', at: 'center top', // at2 is used when "usePreview" is false (centers keyboard at the bottom // of the input/textarea) at2: 'center top', collision: 'flipfit flipfit' }, reposition: true, css: { input: 'form-control input-sm', container: 'center-block dropdown-menu', buttonDefault: 'btn btn-default', buttonHover: 'btn-light', // used when disabling the decimal button {dec} // when a decimal exists in the input area buttonDisabled: 'enabled', }, }); };
kamillamagna/NMF_Tool
app/javascript/components/addKeyboard.js
JavaScript
mit
971
require 'nokogiri' require 'ostruct' require 'active_support/core_ext/string' require 'active_support/core_ext/date' module Lifebouy class MalformedRequestXml < StandardError def initialize(xml_errors) @xml_errors = xml_errors end def message "The request contains the following errors:\n\t#{@xml_errors.join("\n\t")}" end end class MalformedResponseData < MalformedRequestXml def message "The response contains the following errors:\n\t#{@xml_errors.join("\n\t")}" end end class RequestHandler attr_reader :request_error, :schema, :request_doc, :response_error attr_accessor :response_data def initialize(wsdl_file, request_xml) @wsdl = Nokogiri::XML(File.read(wsdl_file)) # Find the root schema node schema_namespace = @wsdl.namespaces.select { |k,v| v =~ /XMLSchema/ }.first target_namespace_url = @wsdl.root['targetNamespace'] @target_namespace = @wsdl.namespaces.select { |k,v| v == target_namespace_url}.first @schema_prefix = schema_namespace.first.split(/:/).last schema_root = @wsdl.at_xpath("//#{@schema_prefix}:schema").dup schema_root.add_namespace_definition(@target_namespace.first.split(/:/).last, @target_namespace.last) # Create a document to store the schema and the parse it into a Schema for validation @schema_doc = Nokogiri::XML::Document.new @schema_doc << schema_root @schema = Nokogiri::XML::Schema(@schema_doc.to_xml) envelope = Nokogiri::XML(request_xml) request_data = envelope.at_xpath("//#{envelope.root.namespace.prefix}:Body").first_element_child @request_doc = Nokogiri::XML::Document.new @request_doc << request_data @response_data = OpenStruct.new end def validate_request_xml? begin validate_request_xml! return true rescue MalformedRequestXml => e @request_error = e return false end end def validate_request_xml! request_errors = [] @schema.validate(request_doc).each do |error| request_errors << "Line #{error.line}: #{error.message}" end raise MalformedRequestXml.new(request_errors) unless request_errors.empty? end def request_data @request_data ||= build_request_data end def validate_response? begin validate_response! return true rescue MalformedResponseData => e @response_error = e return false end end def validate_response! raise MalformedResponseData.new(["Empty Responses Not Allowed"]) if response_data.to_h.empty? @response_xml = nil response_errors = [] @schema.validate(response_xml).each do |error| response_errors << "Line #{error.line}: #{error.message}" end raise MalformedResponseData.new(response_errors) unless response_errors.empty? end def response_xml @response_xml ||= build_response_xml end def response_soap end private def build_response_xml xml = Nokogiri::XML::Document.new symbols_and_names = {} @schema_doc.xpath("//#{@schema_prefix}:element").each do |e_node| symbols_and_names[e_node[:name].underscore.to_sym] = e_node[:name] end xml << ostruct_to_node(@response_data, xml, symbols_and_names) xml end def ostruct_to_node(ostruct, xml, symbols_and_names) raise MalformedResponseData.new(["Structure Must Contain a Node Name"]) if ostruct.name.blank? ele = xml.create_element(ostruct.name) ele.add_namespace_definition(nil, @target_namespace.last) ostruct.each_pair do |k,v| next if k == :name if v.is_a?(OpenStruct) ele << ostruct_to_node(v, xml, symbols_and_names) else ele << create_element_node(xml, symbols_and_names[k], v) end end ele end def create_element_node(xml, node_name, value) t_node = @schema_doc.at_xpath("//#{@schema_prefix}:element[@name='#{node_name}']") formatted_value = value.to_s begin case type_for_element_name(node_name) when 'integer', 'int' formatted_value = '%0d' % value when 'boolean' formatted_value = (value == true ? 'true' : 'false') when 'date', 'time', 'dateTime' formatted_value = value.strftime('%m-%d-%Y') end rescue Exception => e raise MalformedResponseException.new([e.message]) end to_add = xml.create_element(node_name, formatted_value) to_add.add_namespace_definition(nil, @target_namespace.last) to_add end def build_request_data @request_data = node_to_ostruct(@request_doc.first_element_child) end def node_to_ostruct(node) ret = OpenStruct.new ret[:name] = node.node_name node.element_children.each do |ele| if ele.element_children.count > 0 ret[ele.node_name.underscore.to_sym] = node_to_ostruct(ele) else ret[ele.node_name.underscore.to_sym] = xml_to_type(ele) end end ret end def xml_to_type(node) return nil if node.text.blank? case type_for_element_name(node.node_name) when 'decimal', 'float', 'double' node.text.to_f when 'integer', 'int' node.text.to_i when 'boolean' node.text == 'true' when 'date', 'time', 'dateTime' Date.parse(node.text) else node.text end end def type_for_element_name(node_name) t_node = @schema_doc.at_xpath("//#{@schema_prefix}:element[@name='#{node_name}']") raise "No type defined for #{node_name}" unless t_node t_node[:type].gsub(/#{@schema_prefix}:/, '') end end end
reedswenson/lifebouy
lib/lifebouy/request_handler.rb
Ruby
mit
5,812
/** * Trait class */ function Trait(methods, allTraits) { allTraits = allTraits || []; this.traits = [methods]; var extraTraits = methods.$traits; if (extraTraits) { if (typeof extraTraits === "string") { extraTraits = extraTraits.replace(/ /g, '').split(','); } for (var i = 0, c = extraTraits.length; i < c; i++) { this.use(allTraits[extraTraits[i]]); } } } Trait.prototype = { constructor: Trait, use: function (trait) { if (trait) { this.traits = this.traits.concat(trait.traits); } return this; }, useBy: function (obj) { for (var i = 0, c = this.traits.length; i < c; i++) { var methods = this.traits[i]; for (var prop in methods) { if (prop !== '$traits' && !obj[prop] && methods.hasOwnProperty(prop)) { obj[prop] = methods[prop]; } } } } }; module.exports = Trait;
azproduction/node-jet
lib/plugins/app/lib/Trait.js
JavaScript
mit
1,059
import {Component, Input} from '@angular/core'; import {CORE_DIRECTIVES} from '@angular/common'; import {ROUTER_DIRECTIVES, Router} from '@angular/router-deprecated'; import {AuthService} from '../common/auth.service'; @Component({ selector: 'todo-navbar', templateUrl: 'app/navbar/navbar.component.html', directives: [ROUTER_DIRECTIVES, CORE_DIRECTIVES] }) export class NavbarComponent { @Input() brand: string; @Input() routes: any[]; name: string; constructor(private _authService: AuthService, private _router: Router) { this._authService.profile.subscribe(profile => this.name = profile && profile.name); } getName() { console.log('getName'); return this.name; } logout($event: Event) { $event.preventDefault(); this._authService.logout(); this._router.navigateByUrl('/'); } isLoggedIn() { return Boolean(this.name); } }
Boychenko/sample-todo-2016
clients/angular2/app/navbar/navbar.component.ts
TypeScript
mit
889
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Game = mongoose.model('Game'), Team = mongoose.model('Team'), Player = mongoose.model('Player'), async = require('async'); exports.all = function(req, res) { Game.find({'played': true}).exec(function(err, games) { if (err) { return res.json(500, { error: 'fucked up grabbing dem games' }); } res.json(games); }); }; exports.logGame = function(req, res, next) { var loggedGame = req.body; Game.findAllMatchesBetweenTeams([loggedGame.teams[0].teamId, loggedGame.teams[1].teamId], function(err, games) { if (err) { console.log('error finding matchups\n' + err); res.json(500, 'fucked up finding dem games'); return; } var matchedGame; var teamOneIndex; var teamTwoIndex; for (var gameIdx = 0; gameIdx < games.length; gameIdx += 1) { if (games[gameIdx].teams[0].home === loggedGame.teams[0].home && games[gameIdx].teams[0].teamId.toString() === loggedGame.teams[0].teamId) { matchedGame = games[gameIdx]; teamOneIndex = 0; teamTwoIndex = 1; break; } else if (games[gameIdx].teams[1].home === loggedGame.teams[0].home && games[gameIdx].teams[1].teamId.toString() === loggedGame.teams[0].teamId) { matchedGame = games[gameIdx]; teamOneIndex = 1; teamTwoIndex = 0; break; } } if (!matchedGame) { res.json(500, 'no matchup between those teams found'); return; } if (matchedGame.played) { console.log('match already played!'); res.json(500, 'game already played'); return; } matchedGame.teams[teamOneIndex].goals = loggedGame.teams[0].goals; matchedGame.teams[teamOneIndex].events = loggedGame.teams[0].events; matchedGame.teams[teamTwoIndex].goals = loggedGame.teams[1].goals; matchedGame.teams[teamTwoIndex].events = loggedGame.teams[1].events; matchedGame.played = true; var datePlayed = new Date(); matchedGame.datePlayed = datePlayed; matchedGame.save(function(err) { if (err) { console.log('failed to save game -- ' + matchedGame + ' -- ' + err ); res.json(500, 'error saving game -- ' + err); } else { async.series([ function(callback) { console.log('PROCESSING EVENTS'); processEvents(matchedGame, callback); }, function(callback) { console.log('UPDATING STANDINGS'); updateStandings(callback); } ], function(err, results) { if (err) { res.sendStatus(400); console.log(err); } else { res.sendStatus(200); } }); } }); }); var processEvents = function(game, callback) { /*jshint -W083 */ var updatePlayerEvents = function(playerEvents, playerCallback) { console.log('UPDATING EVENTS FOR PLAYER ' + playerEvents.events[0].player); findOrCreateAndUpdatePlayer(playerEvents, playerEvents.teamId, playerCallback); }; var processEventsForTeam = function(team, teamCallback) { console.log('PROCESSING EVENTS FOR ' + team); var playerEventMap = {}; for (var eventIdx = 0; eventIdx < team.events.length; eventIdx += 1) { var playerEvent = team.events[eventIdx]; console.log('PROCESSING EVENT ' + playerEvent); if (playerEventMap[playerEvent.player] === undefined) { console.log('PLAYER NOT IN MAP, ADDING ' + playerEvent.player); playerEventMap[playerEvent.player] = {teamId: team.teamId, events: [], gameDate: game.datePlayed}; } playerEventMap[playerEvent.player].events.push(playerEvent); } console.log('player event map created: ' + playerEventMap); var playerEventMapValues = []; for (var key in playerEventMap) { playerEventMapValues.push(playerEventMap[key]); } async.each(playerEventMapValues, updatePlayerEvents, function(err) { if (err) { teamCallback(err); } else { teamCallback(); } }); }; async.each(game.teams, processEventsForTeam, function(err) { if (err) { callback(err); } else { callback(); } }); }; var findOrCreateAndUpdatePlayer = function(playerEvents, teamId, playerCallback) { console.log('finding/creating player -- ' + playerEvents + ' -- ' + teamId); Player.findOne({name: playerEvents.events[0].player, teamId: teamId}, function(err, player) { if (err) { console.log('error processing events -- ' + JSON.stringify(playerEvents) + ' -- ' + err); playerCallback(err); } if (!player) { createAndUpdatePlayer(playerEvents, teamId, playerCallback); } else { incrementEvents(player, playerEvents, playerCallback); } }); }; var createAndUpdatePlayer = function(playerEvents, teamId, playerCallback) { Player.create({name: playerEvents.events[0].player, teamId: teamId}, function(err, createdPlayer) { if (err) { console.log('error creating player while processing event -- ' + JSON.stringify(playerEvents) + ' -- ' + err); } incrementEvents(createdPlayer, playerEvents, playerCallback); }); }; var incrementEvents = function(player, playerEvents, playerCallback) { var suspended = false; for (var eventIdx = 0; eventIdx < playerEvents.events.length; eventIdx += 1) { var eventType = playerEvents.events[eventIdx].eventType; if (eventType === 'yellow card') { player.yellows += 1; if (player.yellows % 5 === 0) { suspended = true; } } else if (eventType === 'red card') { player.reds += 1; suspended = true; } else if (eventType === 'goal') { player.goals += 1; } else if (eventType === 'own goal') { player.ownGoals += 1; } } player.save(function(err) { if (err) { console.log('error incrementing event for player -- ' + JSON.stringify(player) + ' -- ' + eventType); playerCallback(err); } else { if (suspended) { suspendPlayer(player, playerEvents.gameDate, playerCallback); } else { playerCallback(); } } }); }; var updateStandings = function(callback) { Team.find({}, function(err, teams) { if (err) { console.log('error retrieving teams for standings update -- ' + err); callback(err); } else { resetStandings(teams); Game.find({'played': true}, null, {sort: {datePlayed : 1}}, function(err, games) { if (err) { console.log('error retrieving played games for standings update -- ' + err); callback(err); } else { for (var gameIdx = 0; gameIdx < games.length; gameIdx += 1) { processGameForStandings(games[gameIdx], teams); } saveStandings(teams, callback); } }); } }); }; var saveStandings = function(teams, standingsCallback) { var saveTeam = function(team, saveCallback) { team.save(function(err){ if (err) { console.log('error saving team -- ' + team + ' -- ' + err); saveCallback(err); } else { saveCallback(); } }); }; async.each(teams, saveTeam, function(err) { if (err) { standingsCallback(err); } else { standingsCallback(); } }); }; var resetStandings = function(teams) { for (var teamIdx in teams) { teams[teamIdx].wins = 0; teams[teamIdx].losses = 0; teams[teamIdx].draws = 0; teams[teamIdx].points = 0; teams[teamIdx].goalsFor = 0; teams[teamIdx].goalsAgainst = 0; //teams[teamIdx].suspensions = []; } }; var processGameForStandings = function(game, teams) { for (var teamResultIdx = 0; teamResultIdx < game.teams.length; teamResultIdx += 1) { var teamResult = game.teams[teamResultIdx]; var opponentResult = game.teams[1 - teamResultIdx]; var team; for (var teamIdx = 0; teamIdx < teams.length; teamIdx += 1) { if (teams[teamIdx]._id.equals(teamResult.teamId)) { team = teams[teamIdx]; break; } } team.lastGamePlayed = game.datePlayed; team.goalsFor += teamResult.goals; team.goalsAgainst += opponentResult.goals; if (teamResult.goals > opponentResult.goals) { team.wins += 1; team.points += 3; } else if (teamResult.goals === opponentResult.goals) { team.draws += 1; team.points += 1; } else { team.losses += 1; } } // game.played=false; // game.datePlayed=undefined; // for (var teamIdx = 0; teamIdx < game.teams.length; teamIdx += 1) { // game.teams[teamIdx].goals = 0; // game.teams[teamIdx].events = []; // } // game.save(); }; var suspendPlayer = function(player, gameDate, suspensionCallback) { Team.findOne({_id: player.teamId}, function(err, team){ if (err) { console.log('error loading team to suspend a dude -- ' + player); suspensionCallback(err); } else { if (!team.suspensions) { team.suspensions = []; } team.suspensions.push({player: player.name, dateSuspended: gameDate}); team.save(function(err) { if (err) { console.log('error saving suspension 4 dude -- ' + player + ' -- ' + team); suspensionCallback(err); } else { suspensionCallback(); } }); } }); }; };
javi7/epl-98
packages/custom/league/server/controllers/games.js
JavaScript
mit
9,754
package championpicker.console; import com.googlecode.lanterna.gui.*; import com.googlecode.lanterna.TerminalFacade; import com.googlecode.lanterna.terminal.Terminal; import com.googlecode.lanterna.terminal.TerminalSize; import com.googlecode.lanterna.terminal.swing.SwingTerminal; import com.googlecode.lanterna.gui.GUIScreen; import com.googlecode.lanterna.gui.dialog.DialogButtons; import com.googlecode.lanterna.gui.component.Button; import com.googlecode.lanterna.gui.component.Panel; import com.googlecode.lanterna.gui.component.Label; import com.googlecode.lanterna.gui.Window; import com.googlecode.lanterna.screen.Screen; import com.googlecode.lanterna.screen.Screen; import championpicker.Main; import championpicker.console.mainStartUp; import championpicker.console.queueWindow; import javax.swing.JFrame; public class mainMenu extends Window{ public mainMenu(String name){ super(name); queueWindow win = new queueWindow(); addComponent(new Button("Queue!", new Action(){ public void doAction(){ System.out.println("Success!"); mainStartUp.gui.showWindow(win, GUIScreen.Position.CENTER); }})); } }
DanielBoerlage/champion-picker
src/championpicker/console/mainMenu.java
Java
mit
1,150
(function(){ 'use strict'; angular.module('GamemasterApp') .controller('DashboardCtrl', function ($scope, $timeout, $mdSidenav, $http) { $scope.users = ['Fabio', 'Leonardo', 'Thomas', 'Gabriele', 'Fabrizio', 'John', 'Luis', 'Kate', 'Max']; }) })();
jswaldon/gamemaster
public/app/dashboard/dashboard.ctrl.js
JavaScript
mit
273
require 'byebug' module Vorm module Validatable class ValidationError def clear_all @errors = Hash.new { |k, v| k[v] = [] } end end end end class Valid include Vorm::Validatable def self.reset! @validators = nil end end describe Vorm::Validatable do before { Valid.reset! } context "class methods" do subject { Valid } describe ".validates" do it { is_expected.to respond_to(:validates) } it "raises argument error when given arg is not string" do expect { subject.validates(:email) } .to raise_error(ArgumentError, "Field name must be a string") end it "raises argument error when no block given" do expect { subject.validates("email") } .to raise_error(ArgumentError, "You must provide a block") end it "stores a validator" do subject.validates("email") { "required" } expect(subject.instance_variable_get('@validators')["email"].length).to be(1) end it "stores multiple validators" do subject.validates("email") { "required" } subject.validates("email") { "not valid" } subject.validates("password") { "required" } expect(subject.instance_variable_get('@validators')["email"].length).to be(2) expect(subject.instance_variable_get('@validators')["password"].length).to be(1) end end end context "instance methods" do subject { Valid.new } before { subject.errors.clear_all } describe ".validate!" do it { is_expected.to respond_to(:validate!) } it "adds errors when invalid" do Valid.validates("email") { true } expect { subject.validate! }.to change { subject.errors.on("email").length }.by(1) end it "adds the validation messages to errors for the right field" do Valid.validates("email") { "not valid" } subject.valid? expect(subject.errors.on("email")).to eq(["not valid"]) end it "adds validation messages to each field when invalid" do Valid.validates("email") { "required" } Valid.validates("email") { "not valid" } Valid.validates("password") { "too short" } subject.validate! expect(subject.errors.on("email").length).to be(2) expect(subject.errors.on("password").length).to be(1) expect(subject.errors.on("email")).to eq(["required", "not valid"]) expect(subject.errors.on("password")).to eq(["too short"]) end end describe ".valid?" do it { is_expected.to respond_to(:valid?) } it "calls .validate!" do expect(subject).to receive(:validate!) subject.valid? end it "calls .errors.empty?" do expect(subject.errors).to receive(:empty?) subject.valid? end it "returns true when no validations" do expect(subject).to be_valid end it "returns true when validations pass" do Valid.validates("email") { nil } expect(subject).to be_valid end it "returns false when validations fail" do Valid.validates("email") { "required" } expect(subject).not_to be_valid end end end end
vastus/vorm
spec/lib/vorm/validatable_spec.rb
Ruby
mit
3,216
module Embratel class PhoneBill attr_reader :payables def initialize(path) @payables = CSVParser.parse(path) end def calls @calls ||= payables.select(&:call?) end def fees @fees ||= payables.select(&:fee?) end def total @total ||= payables.inject(0) { |sum, payable| sum += payable.cost.to_f } end end end
mpereira/embratel
lib/embratel/phone_bill.rb
Ruby
mit
374
const express = require('express'); const router = express.Router(); const routes = require('./routes')(router); module.exports = router;
abhaydgarg/Simplenote
api/v1/index.js
JavaScript
mit
139
package simulation.generators; import simulation.data.PetrolStation; import simulation.data.Road; /** * Created by user on 03.06.2017. */ public class PetrolStationGenerator { private Road road; private int minimalDistanceBetweenStations = 50; private int maximumDistanceBetweenStations = 200; private float minimalFuelPrice = 3.5f; private float maximumFuelPrice = 4f; public PetrolStationGenerator(Road road) { this.road = road; } public void generateStationsOnTheRoad(){ RandomIntegerGenerator generator = new RandomIntegerGenerator(); int lastStationPosition = 0; road.addPetrolStation(generateStation(lastStationPosition)); while (lastStationPosition < road.getDistance()){ int nextStationDistance = generator.generateNumberFromRange(minimalDistanceBetweenStations,maximumDistanceBetweenStations); if(lastStationPosition+nextStationDistance <= road.getDistance()){ road.addPetrolStation(generateStation(lastStationPosition+nextStationDistance)); lastStationPosition += nextStationDistance; }else{ break; } } } private PetrolStation generateStation(int positionOnRoad){ float fuelPrice = new RandomFloatGenerator().generateNumberFromRange(minimalFuelPrice,maximumFuelPrice); return new PetrolStation(positionOnRoad,fuelPrice); } public Road getRoad() { return road; } public void setRoad(Road road) { this.road = road; } public int getMinimalDistanceBetweenStations() { return minimalDistanceBetweenStations; } public void setMinimalDistanceBetweenStations(int minimalDistanceBetweenStations) { this.minimalDistanceBetweenStations = minimalDistanceBetweenStations; } public int getMaximumDistanceBetweenStations() { return maximumDistanceBetweenStations; } public void setMaximumDistanceBetweenStations(int maximumDistanceBetweenStations) { this.maximumDistanceBetweenStations = maximumDistanceBetweenStations; } public float getMinimalFuelPrice() { return minimalFuelPrice; } public void setMinimalFuelPrice(float minimalFuelPrice) { this.minimalFuelPrice = minimalFuelPrice; } public float getMaximumFuelPrice() { return maximumFuelPrice; } public void setMaximumFuelPrice(float maximumFuelPrice) { this.maximumFuelPrice = maximumFuelPrice; } }
MiszelHub/FuzzyDriverRefueling
Fuzzy-Driver/src/main/java/simulation/generators/PetrolStationGenerator.java
Java
mit
2,533
var HDWalletProvider = require("truffle-hdwallet-provider"); var mnemonic = "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat"; module.exports = { networks: { development: { provider: function () { return new HDWalletProvider(mnemonic, "http://127.0.0.1:7545/", 0, 50); }, network_id: "*", }, }, compilers: { solc: { version: "^0.5.2", }, }, };
manishbisht/Competitive-Programming
Hiring Challenges/Bosch/Blockchain Developer Hiring/Round 2/truffle.js
JavaScript
mit
484
var h = require('hyperscript') var human = require('human-time') exports.needs = {} exports.gives = 'message_meta' exports.create = function () { function updateTimestampEl(el) { el.firstChild.nodeValue = human(new Date(el.timestamp)) return el } setInterval(function () { var els = [].slice.call(document.querySelectorAll('.timestamp')) els.forEach(updateTimestampEl) }, 60e3) return function (msg) { return updateTimestampEl(h('a.enter.timestamp', { href: '#'+msg.key, timestamp: msg.value.timestamp, title: new Date(msg.value.timestamp) }, '')) } }
cryptix/talebay
modules_basic/timestamp.js
JavaScript
mit
613
import { HookContext, Application, createContext, getServiceOptions } from '@feathersjs/feathers'; import { NotFound, MethodNotAllowed, BadRequest } from '@feathersjs/errors'; import { createDebug } from '@feathersjs/commons'; import isEqual from 'lodash/isEqual'; import { CombinedChannel } from '../channels/channel/combined'; import { RealTimeConnection } from '../channels/channel/base'; const debug = createDebug('@feathersjs/transport-commons'); export const DEFAULT_PARAMS_POSITION = 1; export const paramsPositions: { [key: string]: number } = { find: 0, update: 2, patch: 2 }; export function normalizeError (e: any) { const hasToJSON = typeof e.toJSON === 'function'; const result = hasToJSON ? e.toJSON() : {}; if (!hasToJSON) { Object.getOwnPropertyNames(e).forEach(key => { result[key] = e[key]; }); } if (process.env.NODE_ENV === 'production') { delete result.stack; } delete result.hook; return result; } export function getDispatcher (emit: string, socketMap: WeakMap<RealTimeConnection, any>, socketKey?: any) { return function (event: string, channel: CombinedChannel, context: HookContext, data?: any) { debug(`Dispatching '${event}' to ${channel.length} connections`); channel.connections.forEach(connection => { // The reference between connection and socket is set in `app.setup` const socket = socketKey ? connection[socketKey] : socketMap.get(connection); if (socket) { const eventName = `${context.path || ''} ${event}`.trim(); let result = channel.dataFor(connection) || context.dispatch || context.result; // If we are getting events from an array but try to dispatch individual data // try to get the individual item to dispatch from the correct index. if (!Array.isArray(data) && Array.isArray(context.result) && Array.isArray(result)) { result = context.result.find(resultData => isEqual(resultData, data)); } debug(`Dispatching '${eventName}' to Socket ${socket.id} with`, result); socket[emit](eventName, result); } }); }; } export async function runMethod (app: Application, connection: RealTimeConnection, path: string, method: string, args: any[]) { const trace = `method '${method}' on service '${path}'`; const methodArgs = args.slice(0); const callback = typeof methodArgs[methodArgs.length - 1] === 'function' ? methodArgs.pop() : function () {}; debug(`Running ${trace}`, connection, args); const handleError = (error: any) => { debug(`Error in ${trace}`, error); callback(normalizeError(error)); }; try { const lookup = app.lookup(path); // No valid service was found throw a NotFound error if (lookup === null) { throw new NotFound(`Service '${path}' not found`); } const { service, params: route = {} } = lookup; const { methods } = getServiceOptions(service); // Only service methods are allowed if (!methods.includes(method)) { throw new MethodNotAllowed(`Method '${method}' not allowed on service '${path}'`); } const position = paramsPositions[method] !== undefined ? paramsPositions[method] : DEFAULT_PARAMS_POSITION; const query = methodArgs[position] || {}; // `params` have to be re-mapped to the query and added with the route const params = Object.assign({ query, route, connection }, connection); // `params` is always the last parameter. Error if we got more arguments. if (methodArgs.length > (position + 1)) { throw new BadRequest(`Too many arguments for '${method}' method`); } methodArgs[position] = params; const ctx = createContext(service, method); const returnedCtx: HookContext = await (service as any)[method](...methodArgs, ctx); const result = returnedCtx.dispatch || returnedCtx.result; debug(`Returned successfully ${trace}`, result); callback(null, result); } catch (error: any) { handleError(error); } }
feathersjs/feathers
packages/transport-commons/src/socket/utils.ts
TypeScript
mit
3,996
version https://git-lfs.github.com/spec/v1 oid sha256:e40a08695f05163cfb0eaeeef4588fcfad55a6576cfadfb079505495605beb33 size 27133
yogeshsaroya/new-cdnjs
ajax/libs/fuelux/2.5.0/datepicker.js
JavaScript
mit
130
<?php class Thread extends Eloquent { public static $table = 'threads'; public static $timestamps = true; public function replies() { return $this->has_many('Reply'); } }
hassan-c/laravelapp
application/models/thread.php
PHP
mit
193
#!/usr/bin/env python from hdf5handler import HDF5Handler handler = HDF5Handler('mydata.hdf5') handler.open() for i in range(100): handler.put(i, 'numbers') handler.close()
iambernie/hdf5handler
examples/opening.py
Python
mit
183
/** * The MIT License (MIT) * * Copyright (c) 2015 Famous Industries Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ 'use strict'; import { Geometry } from '../Geometry'; import { GeometryHelper } from '../GeometryHelper'; /** * This function generates custom buffers and passes them to * a new static geometry, which is returned to the user. * * @class Tetrahedron * @constructor * * @param {Object} options Parameters that alter the * vertex buffers of the generated geometry. * * @return {Object} constructed geometry */ class Tetrahedron extends Geometry { constructor(options) { //handled by es6 transpiler //if (!(this instanceof Tetrahedron)) return new Tetrahedron(options); var textureCoords = []; var normals = []; var detail; var i; var t = Math.sqrt(3); var vertices = [ // Back 1, -1, -1 / t, -1, -1, -1 / t, 0, 1, 0, // Right 0, 1, 0, 0, -1, t - 1 / t, 1, -1, -1 / t, // Left 0, 1, 0, -1, -1, -1 / t, 0, -1, t - 1 / t, // Bottom 0, -1, t - 1 / t, -1, -1, -1 / t, 1, -1, -1 / t ]; var indices = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]; for (i = 0; i < 4; i++) { textureCoords.push( 0.0, 0.0, 0.5, 1.0, 1.0, 0.0 ); } options = options || {}; while (--detail) GeometryHelper.subdivide(indices, vertices, textureCoords); normals = GeometryHelper.computeNormals(vertices, indices); options.buffers = [ { name: 'a_pos', data: vertices }, { name: 'a_texCoord', data: textureCoords, size: 2 }, { name: 'a_normals', data: normals }, { name: 'indices', data: indices, size: 1 } ]; super(options); } } export { Tetrahedron };
talves/famous-engine
src/webgl-geometries/primitives/Tetrahedron.js
JavaScript
mit
2,960
/* * Copyright 2016 Christoph Brill <egore911@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Text; using libldt3.attributes; using libldt3.model.enums; using libldt3.model.regel; using libldt3.model.regel.kontext; using libldt3.model.saetze; using NodaTime; namespace libldt3 { /** * Simple, reflection and annotation based reader for LDT 3.0. * * @author Christoph Brill &lt;egore911@gmail.com&gt; */ public class LdtReader { readonly IDictionary<Type, Regel> regelCache = new Dictionary<Type, Regel>(); readonly LdtConstants.Mode mode; public LdtReader(LdtConstants.Mode mode) { this.mode = mode; } /** * Read the LDT found on a given path. * * @param path * the path of the LDT file (any format handled by NIO * {@link Path}) * @return the list of Satz elements found in the LDT file * @throws IOException * thrown if reading the file failed */ public IList<Satz> Read(string path) { using (var f = File.Open(path, FileMode.Open)) { return Read(f); } } /** * Read the LDT found on a given path. * * @param path * the path of the LDT file * @return the list of Satz elements found in the LDT file * @throws IOException * thrown if reading the file failed */ public IList<Satz> Read(FileStream path) { var stream = new StreamReader(path, Encoding.GetEncoding("ISO-8859-1")); return Read(stream); } /** * Read the LDT from a given string stream. * * @param stream * the LDT lines as string stream * @return the list of Satz elements found in the LDT file */ public IList<Satz> Read(StreamReader stream) { Stack<object> stack = new Stack<object>(); IList<Satz> data = new List<Satz>(); string line; int integer = 0; while ((line = stream.ReadLine()) != null) { HandleInput(line, stack, data, integer++); } return data; } void HandleInput(string line, Stack<object> stack, IList<Satz> data, int lineNo) { Trace.TraceInformation("Reading line {0}", line); // Check if the line meets the minimum requirements (3 digits for // length, 4 digits for the identifier) if (line.Length < 7) { if (mode == LdtConstants.Mode.STRICT) { throw new ArgumentException("Line '" + line + "' (" + lineNo + ") was less than 7 characters, aborting"); } else { Trace.TraceInformation("Line '{0}' ({1}) was less than 7 characters, continuing anyway", line, lineNo); } } // Read the length and check whether it had the correct length int length = int.Parse(line.Substring(0, 3)); if (length != line.Length + 2) { if (mode == LdtConstants.Mode.STRICT) { throw new ArgumentException( "Line '" + line + "' (" + lineNo + ") should have length " + (line.Length + 2) + ", but was " + length); } else { Trace.TraceInformation("Line '{0}' ({1}) should have length {2}, but was {3}. Ignoring specified length", line, lineNo, (line.Length + 2), length); length = line.Length + 2; } } // Read identifier and payload string identifier = line.Substring(3, 7 - 3); string payload = line.Substring(7, length - 2 - 7); switch (identifier) { case "8000": { // Start: Satz AssureLength(line, length, 13); if (stack.Count > 0) { if (mode == LdtConstants.Mode.STRICT) { throw new InvalidOperationException( "Stack must be empty when starting a new Satz, but was " + stack.Count + " long"); } else { Trace.TraceInformation("Stack must be empty when starting a new Satz, but was {0}. Clearing and continuing", stack); stack.Clear(); } } // Extract Satzart from payload and create Satz matching it Satzart satzart = GetSatzart(payload); switch (satzart) { case Satzart.Befund: stack.Push(new Befund()); break; case Satzart.Auftrag: stack.Push(new Auftrag()); break; case Satzart.LaborDatenpaketHeader: stack.Push(new LaborDatenpaketHeader()); break; case Satzart.LaborDatenpaketAbschluss: stack.Push(new LaborDatenpaketAbschluss()); break; case Satzart.PraxisDatenpaketHeader: stack.Push(new PraxisDatenpaketHeader()); break; case Satzart.PraxisDatenpaketAbschluss: stack.Push(new PraxisDatenpaketAbschluss()); break; default: throw new ArgumentException("Unsupported Satzart '" + payload + "' found"); } break; } case "8001": { // End: Satz AssureLength(line, length, 13); object o = stack.Pop(); Datenpaket datenpaket = o.GetType().GetCustomAttribute<Datenpaket>(); if (datenpaket != null) { EvaluateContextRules(o, datenpaket.Kontextregeln); } if (stack.Count == 0) { data.Add((Satz)o); } break; } case "8002": { // Start: Objekt AssureLength(line, length, 17); object currentObject1 = PeekCurrentObject(stack); Objekt annotation1 = currentObject1.GetType().GetCustomAttribute<Objekt>(); if (annotation1 != null) { if (annotation1.Value.Length == 0) { // If annotation is empty, the parent object would actually // be the one to deal with } else { // Match found, everything is fine if (payload.Equals("Obj_" + annotation1.Value)) { break; } // No match found, abort or inform the developer if (mode == LdtConstants.Mode.STRICT) { throw new ArgumentException( "In line '" + line + "' (" + lineNo + ") expected Obj_" + annotation1.Value + ", got " + payload); } else { Trace.TraceError("In line {0} ({1}) expected Obj_{2}, got {3}", line, lineNo, annotation1.Value, payload); break; } } } if (mode == LdtConstants.Mode.STRICT) { throw new ArgumentException("Line '" + line + "' (" + lineNo + ") started an unexpeted object, stack was " + stack.ToArray()); } else { Trace.TraceWarning("Line '{0}' ({1}) started an unexpeted object, stack was {2}", line, lineNo, stack); } break; } case "8003": { // End: Objekt AssureLength(line, length, 17); object o; Objekt annotation1; do { o = stack.Pop(); annotation1 = o.GetType().GetCustomAttribute<Objekt>(); if (annotation1 != null) { if (annotation1.Value.Length != 0 && !("Obj_" + annotation1.Value).Equals(payload)) { Trace.TraceWarning("Line: {0} ({1}), annotation {2}, payload {3}", line, lineNo, annotation1.Value, payload); } EvaluateContextRules(o, annotation1.Kontextregeln); } } while (annotation1 != null && annotation1.Value.Length == 0); if (stack.Count == 0) { data.Add((Satz)o); } break; } default: // Any line not starting or completing a Satz or Objekt object currentObject = PeekCurrentObject(stack); if (currentObject == null) { throw new InvalidOperationException("No object when appplying line " + line + " (" + lineNo + ")"); } // XXX iterating the fields could be replaced by a map to be a bit // faster when dealing with the same class foreach (FieldInfo info in currentObject.GetType().GetFields()) { // Check if we found a Feld annotation, if not this is not our // field Feld annotation2 = info.GetCustomAttribute<Feld>(); if (annotation2 == null) { continue; } // Check if the annotation matches the identifier, if not, this // is not our field if (!identifier.Equals(annotation2.Value)) { continue; } try { // Check if there is currently a value set object o = info.GetValue(currentObject); if (o != null && GetGenericList(info.FieldType) == null) { if (mode == LdtConstants.Mode.STRICT) { throw new InvalidOperationException( "Line '" + line + "' (" + lineNo + ") would overwrite existing value " + o + " of " + currentObject + "." + info.Name); } else { Trace.TraceWarning("Line '{0}' ({1}) would overwrite existing value {2} in object {3}.{4}", line, lineNo, o, currentObject, info); } } ValidateFieldPayload(info, payload); // Convert the value to its target type ... object value = ConvertType(info, info.FieldType, payload, stack); // .. and set the value on the target object info.SetValue(currentObject, value); } catch (Exception e) { if (mode == LdtConstants.Mode.STRICT) { throw new InvalidOperationException(e.Message, e); } else { Trace.TraceError(e.Message); } } // We are done with this line return; } // No field with a matching Feld annotation found, check if we are // an Objekt with an empty value (anonymous object), if so try our // parent Objekt annotation = currentObject.GetType().GetCustomAttribute<Objekt>(); if (annotation != null && annotation.Value.Length == 0) { stack.Pop(); HandleInput(line, stack, data, lineNo); return; } // Neither we nor our parent could deal with this line if (mode == LdtConstants.Mode.STRICT) { throw new ArgumentException("Failed reading line " + line + " (" + lineNo + "), current stack: " + string.Join(" ", stack.ToArray())); } else { Trace.TraceWarning("Failed reading line {0} ({1}), current stack: {2}, skipping line", line, lineNo, string.Join(" ", stack.ToArray())); } break; } } private void EvaluateContextRules(object o, Type[] kontextRegeln) { foreach (Type kontextregel in kontextRegeln) { try { if (!((Kontextregel)Activator.CreateInstance(kontextregel)).IsValid(o)) { if (mode == LdtConstants.Mode.STRICT) { throw new ArgumentException("Context rule " + kontextregel.Name + " failed on object " + o); } else { Trace.TraceWarning("Context rule {} failed on object {}", kontextregel.Name, o); } } } catch (Exception e) { if (mode == LdtConstants.Mode.STRICT) { throw new ArgumentException("Context rule " + kontextregel.Name + " failed on object " + o, e); } else { Trace.TraceWarning("Context rule {} failed on object {}", kontextregel.Name, o, e); } } } } void ValidateFieldPayload(FieldInfo field, string payload) { foreach (Regelsatz regelsatz in field.GetCustomAttributes<Regelsatz>()) { if (regelsatz.Laenge >= 0) { if (payload.Length != regelsatz.Laenge) { ValidationFailed(field.DeclaringType.Name + "." + field.Name + ": Value " + payload + " did not match expected length " + regelsatz.Laenge + ", was " + payload.Length); } } if (regelsatz.MinLaenge >= 0) { if (payload.Length < regelsatz.MinLaenge) { ValidationFailed(field.DeclaringType.Name + "." + field.Name + ": Value " + payload + " did not match expected minimum length " + regelsatz.MinLaenge + ", was " + payload.Length); } } if (regelsatz.MaxLaenge >= 0) { if (payload.Length > regelsatz.MaxLaenge) { ValidationFailed(field.DeclaringType.Name + "." + field.Name + ": Value " + payload + " did not match expected maximum length " + regelsatz.MaxLaenge + ", was " + payload.Length); } } // No specific rules given, likely only length checks if (regelsatz.Value.Length == 0) { continue; } bool found = false; foreach (Type regel in regelsatz.Value) { if (GetRegel(regel).IsValid(payload)) { found = true; break; } } if (!found) { ValidationFailed(field.DeclaringType.Name + "." + field.Name + ": Value " + payload + " did not confirm to any rule of " + ToString(regelsatz.Value)); } } } void ValidationFailed(string message) { if (mode == LdtConstants.Mode.STRICT) { throw new InvalidOperationException(message); } else { Trace.TraceWarning(message); } } string ToString(Type[] regeln) { StringBuilder buffer = new StringBuilder(); foreach (Type regel in regeln) { if (buffer.Length > 0) { buffer.Append(" or "); } buffer.Append(regel.Name); } return buffer.ToString(); } Regel GetRegel(Type regel) { Regel instance; regelCache.TryGetValue(regel, out instance); if (instance == null) { instance = (Regel)Activator.CreateInstance(regel); regelCache[regel] = instance; } return instance; } /** * Extract the Satzart form a given payload * * @param payload * the payload of the line * @return the Satzart or {@code null} */ Satzart GetSatzart(string payload) { foreach (Satzart sa in Enum.GetValues(typeof(Satzart)).Cast<Satzart>()) { if (sa.GetCode().Equals(payload)) { return sa; } } throw new ArgumentException("Unsupported Satzart '" + payload + "' found"); } /** * Peek the current objekt from the stack, if any. * * @param stack * the stack to peek the object from * @return the current top level element of the stack or {@code null} */ static object PeekCurrentObject(Stack<object> stack) { if (stack.Count == 0) { return null; } return stack.Peek(); } /** * Check if the line matches the expected length. * * @param line * the line to check * @param length * the actual length * @param target * the length specified by the line */ void AssureLength(string line, int length, int target) { if (length != target) { if (mode == LdtConstants.Mode.STRICT) { throw new ArgumentException( "Line '" + line + "' must have length " + target + ", was " + length); } else { Trace.TraceInformation("Line '{0}' must have length {1}, was {2}", line, target, length); } } } /** * Convert the string payload into a target class. (Note: There are * certainly better options out there but this one is simple enough for our * needs.) */ static object ConvertType(FieldInfo field, Type type, string payload, Stack<object> stack) { if (type == typeof(string)) { return payload; } if (type == typeof(float) || type == typeof(float?)) { return float.Parse(payload); } if (type == typeof(int) || type == typeof(int?)) { return int.Parse(payload); } if (type == typeof(long) || type == typeof(long?)) { return long.Parse(payload); } if (type == typeof(bool) || type == typeof(bool?)) { return "1".Equals(payload); } if (type == typeof(LocalDate?)) { return LdtConstants.FORMAT_DATE.Parse(payload).Value; } if (type == typeof(LocalTime?)) { return LdtConstants.FORMAT_TIME.Parse(payload).Value; } if (IsNullableEnum(type)) { Type enumType = Nullable.GetUnderlyingType(type); MethodInfo method = Type.GetType(enumType.FullName + "Extensions").GetMethod("GetCode"); if (method != null) { foreach (object e in Enum.GetValues(enumType)) { string code = (string)method.Invoke(e, new object[] { e }); if (payload.Equals(code)) { return e; } } return null; } } if (type.IsEnum) { MethodInfo method = Type.GetType(type.FullName + "Extensions").GetMethod("GetCode"); if (method != null) { foreach (object e in Enum.GetValues(type)) { string code = (string)method.Invoke(e, new object[] { e }); if (payload.Equals(code)) { return e; } } return null; } } Type genericType = GetGenericList(type); if (genericType != null) { object currentObject = PeekCurrentObject(stack); var o = (System.Collections.IList) field.GetValue(currentObject); if (o == null) { o = (System.Collections.IList) Activator.CreateInstance(typeof(List<>).MakeGenericType(genericType.GetGenericArguments()[0])); field.SetValue(currentObject, o); } o.Add(ConvertType(field, type.GenericTypeArguments[0], payload, stack)); return o; } if (type.GetCustomAttribute<Objekt>() != null) { object instance = Activator.CreateInstance(type); stack.Push(instance); FieldInfo declaredField = type.GetField("Value"); if (declaredField != null) { declaredField.SetValue(instance, ConvertType(declaredField, declaredField.FieldType, payload, stack)); } return instance; } throw new ArgumentException("Don't know how to handle type " + type); } static bool IsNullableEnum(Type t) { Type u = Nullable.GetUnderlyingType(t); return (u != null) && u.IsEnum; } static Type GetGenericList(Type type) { if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(IList<>)) { return type; } foreach (Type interfaceType in type.GetInterfaces()) { if (interfaceType.IsGenericType && interfaceType.GetGenericTypeDefinition() == typeof(IList<>)) { return interfaceType; } } return null; } } }
egore/libldt3-cs
libldt3/LdtReader.cs
C#
mit
18,803
var map; var bounds; var markers = {}; var cluster_polygons = {}; var zoomTimeout; var cluster_center_overlay; var white_overlay; var overlay_opacity = 50; var OPACITY_MAX_PIXELS = 57; var active_cluster_poly; var marker_image; var center_marker; var cluster_center_marker_icon; function createMap() { bounds = new google.maps.LatLngBounds (); markers; cluster_polygons; marker_image = { url: STATIC_URL + "images/red_marker.png", anchor: new google.maps.Point(4,4)}; center_marker = { url: STATIC_URL + "images/black_marker.png", size: new google.maps.Size(20, 20), anchor: new google.maps.Point(10,10)}; cluster_center_marker_icon = { url: STATIC_URL + "images/transparent_marker_20_20.gif", size: new google.maps.Size(20, 20), anchor: new google.maps.Point(10,10)}; var mapOptions = { center: new google.maps.LatLng(0, 0), zoom: 4, mapTypeId: google.maps.MapTypeId.ROADMAP, scaleControl: true }; map = new google.maps.Map(document.getElementById("canvas"), mapOptions); // google.maps.event.addListener(map, 'bounds_changed', function(e) { // if (zoomTimeout) { // window.clearTimeout(zoomTimeout); // } // zoomTimeout = window.setTimeout(query_points_for_view, 5000); // }) $.getScript(STATIC_URL + "script/CustomTileOverlay.js", function() { white_overlay = new CustomTileOverlay(map, overlay_opacity); white_overlay.show(); google.maps.event.addListener(map, 'tilesloaded', function () { white_overlay.deleteHiddenTiles(map.getZoom()); }); createOpacityControl(map, overlay_opacity); }); } // Thanks https://github.com/gavinharriss/google-maps-v3-opacity-control/! function createOpacityControl(map, opacity) { var sliderImageUrl = STATIC_URL + "images/opacity-slider3d14.png"; // Create main div to hold the control. var opacityDiv = document.createElement('DIV'); opacityDiv.setAttribute("style", "margin:5px;overflow-x:hidden;overflow-y:hidden;background:url(" + sliderImageUrl + ") no-repeat;width:71px;height:21px;cursor:pointer;"); // Create knob var opacityKnobDiv = document.createElement('DIV'); opacityKnobDiv.setAttribute("style", "padding:0;margin:0;overflow-x:hidden;overflow-y:hidden;background:url(" + sliderImageUrl + ") no-repeat -71px 0;width:14px;height:21px;"); opacityDiv.appendChild(opacityKnobDiv); var opacityCtrlKnob = new ExtDraggableObject(opacityKnobDiv, { restrictY: true, container: opacityDiv }); google.maps.event.addListener(opacityCtrlKnob, "dragend", function () { set_overlay_opacity(opacityCtrlKnob.valueX()); }); // google.maps.event.addDomListener(opacityDiv, "click", function (e) { // var left = findPosLeft(this); // var x = e.pageX - left - 5; // - 5 as we're using a margin of 5px on the div // opacityCtrlKnob.setValueX(x); // set_overlay_opacity(x); // }); map.controls[google.maps.ControlPosition.TOP_RIGHT].push(opacityDiv); // Set initial value var initialValue = OPACITY_MAX_PIXELS / (100 / opacity); opacityCtrlKnob.setValueX(initialValue); set_overlay_opacity(initialValue); } // Thanks https://github.com/gavinharriss/google-maps-v3-opacity-control/! function findPosLeft(obj) { var curleft = 0; if (obj.offsetParent) { do { curleft += obj.offsetLeft; } while (obj = obj.offsetParent); return curleft; } return undefined; } function set_overlay_opacity(value) { overlay_opacity = (100.0 / OPACITY_MAX_PIXELS) * value; if (value < 0) value = 0; if (value == 0) { if (white_overlay.visible == true) { white_overlay.hide(); } } else { white_overlay.setOpacity(overlay_opacity); if (white_overlay.visible == false) { white_overlay.show(); } } } function query_points_for_view() { var bounds = map.getBounds(); var x0 = bounds.getNorthEast().lng(); var y0 = bounds.getNorthEast().lat(); var x1 = bounds.getSouthWest().lng(); var y1 = bounds.getSouthWest().lat(); // Remove stuff off screen var to_remove = []; // What to remove $.each(markers, function(idx, marker){ if (!bounds.contains(marker.getPosition())) { marker.setMap(null); to_remove.push(idx); } }); $.each(to_remove, function(i, idx){ delete markers[idx]; }) // $.getJSON("/rest/photos_box_contains?x0=" + x0 + "&y0=" + y0 + "&x1=" + x1 + "&y1=" + y1, function(data){ // console.log("got " + data.features.length); // add_photo_to_map(data.features, 0, 128); // }) $.getJSON("/rest/clusters_box_contains?x0=" + x0 + "&y0=" + y0 + "&x1=" + x1 + "&y1=" + y1, function(data){ console.log("got " + data.features.length); add_cluster_to_map(data.features, 0); }) } function create_photo_marker(photo_info) { var loc = new google.maps.LatLng(photo_info.geometry.coordinates[1], photo_info.geometry.coordinates[0]); var marker = new google.maps.Marker({ map: map, position: loc, icon: marker_image }); var infowindow = new google.maps.InfoWindow({ content: "<div style='width:200px;height:200px'><a href='" + photo_info.properties.photo_url + "'><img src='" + photo_info.properties.photo_thumb_url + "' style='max-width:100%;max-height:100%;'/></div>" }); google.maps.event.addListener(marker, 'click', function() { infowindow.open(map,marker); }); markers[photo_info.id] = marker; } function add_photo_to_map(photos, i, step) { for (var j = 0; j < step; j++) { if (i + j >= photos.length) { break; } var photo_info = photos[i + j]; if (!markers[photo_info.id]) { create_photo_marker(photo_info); } } i += step; if (i < photos.length) { window.setTimeout(function(){add_photo_to_map(photos, i, step);}, 1); } } function add_clustering_run_to_map(data){ $.each(cluster_polygons, function(idx, poly){ poly.setMap(null); }); bounds = new google.maps.LatLngBounds (); cluster_polygons = []; cluster_center_overlay = new google.maps.OverlayView(); cluster_center_overlay.onAdd = function() { var layer = d3.select(this.getPanes().overlayMouseTarget).append("div") .attr("class", "cluster_center"); var projection = this.getProjection(); var max_size = 300; var max_size_per_2 = max_size / 2; var marker = layer.selectAll("svg") .data(data.features) .each(transform) .enter().append("svg:svg") .each(transform) .each(tie_to_g_marker) .attr("class", "marker") .style("z-index", function(cluster) { return set_default_z_index(cluster); }) .append("svg:g"); function set_default_z_index(cluster) { return parseInt(cluster.properties.point_count_relative * 1000 + 100000); } marker.append("svg:polygon") .attr("points", function(cluster){ var out = []; var last_phase = 0.0; var last_length = 1.0 / 12.0 * (max_size_per_2 - 1); var min_l = 0.0;//0.3 * max_size_per_2 * (Math.sqrt(cluster.properties.point_count_relative) * 0.7 + 0.3); for (var j = 1.0; j <= 12.0; j += 1.0){ var phase = j / 12.0 * 2 * Math.PI; out.push([max_size_per_2 + Math.sin(last_phase) * min_l, max_size_per_2 - Math.cos(last_phase) * min_l]); out.push([max_size_per_2 + Math.sin(phase) * min_l, max_size_per_2 - Math.cos(phase) * min_l]); var second_poly = []; var l = ( (cluster.properties["points_month_" + parseInt(j) + "_relative"]) * 0.9 + 0.1) * max_size_per_2 * (cluster.properties.point_count_relative * 0.8 + 0.2); second_poly.push([max_size_per_2 + Math.sin(last_phase) * min_l, max_size_per_2 - Math.cos(last_phase) * min_l]); second_poly.push([max_size_per_2 + Math.sin(last_phase) * l, max_size_per_2 - Math.cos(last_phase) * l]); second_poly.push([max_size_per_2 + Math.sin(phase) * l, max_size_per_2 - Math.cos(phase) * l]); second_poly.push([max_size_per_2 + Math.sin(phase) * min_l, max_size_per_2 - Math.cos(phase) * min_l]); second_poly.push(second_poly[0]); last_phase = phase; d3.select(this.parentElement) .append("svg:polygon") .attr("points", second_poly.join(" ")) .attr("class", "month_" + parseInt(j)); } return out.join(" "); }) .attr("class", "cluster_center_marker"); function transform(cluster) { var coords = cluster.geometry.geometries[0].coordinates; var d = new google.maps.LatLng(coords[1], coords[0]); d = projection.fromLatLngToDivPixel(d); return d3.select(this) .style("left", (d.x - max_size_per_2) + "px") .style("top", (d.y - max_size_per_2) + "px"); } function tie_to_g_marker(cluster){ var coords = cluster.geometry.geometries[0].coordinates; var d = new google.maps.LatLng(coords[1], coords[0]); var marker = new google.maps.Marker({ map: map, position: d, icon: cluster_center_marker_icon, zIndex: set_default_z_index(d3.select(this).data()[0]) }); var cluster_center = this; google.maps.event.addListener(marker, 'mouseover', function() { d3_cluster_center = d3.select(cluster_center); d3_cluster_center .style("transform", "scale(3.0)") .style("animation-name", "cluster_center_highlight") .style("z-index", 1001001); }); google.maps.event.addListener(marker, 'click', function() { if (active_cluster_poly) { active_cluster_poly.setMap(null); } sidebar_display_cluster_info(d3_cluster_center.data()[0]["id"]); d3_cluster_center = d3.select(cluster_center); poly_bounds = new google.maps.LatLngBounds (); // Define the LatLng coordinates for the polygon's path. var coords = d3_cluster_center.data()[0].geometry.geometries[1].coordinates[0]; var g_coords = []; for (j in coords) { var c = coords[j]; var co = new google.maps.LatLng(c[1], c[0]); g_coords.push(co); poly_bounds.extend(co); } // Construct the polygon. var poly = new google.maps.Polygon({ paths: g_coords, strokeColor: '#FF0000', strokeOpacity: 0.8, strokeWeight: 2, fillColor: '#FF0000', fillOpacity: 0.35 }); poly.setMap(map); active_cluster_poly = poly; map.fitBounds(poly_bounds); }); google.maps.event.addListener(marker, 'mouseout', function() { d3.select(cluster_center) .style("transform", "scale(1.0)") .style("animation-name", "cluster_center_unhighlight") .style("z-index", function(cluster) { return set_default_z_index(cluster); }); }); bounds.extend(d); } map.fitBounds(bounds); cluster_center_overlay.draw = function() { var projection = this.getProjection(); layer.selectAll("svg") .data(data.features) .each(transform); }; }; cluster_center_overlay.setMap(map); } function finalize_clustering_run_to_map(clusters){ console.log("finalizing"); map.fitBounds(bounds); } function show_clusters_lame() { var $form = $("#clustering_run_get_form"), url = $form.attr("action"); // Fire some AJAX! $.ajax({ type: "GET", url: url, dataType: "json", data: {id: $("#clustering_run_get_form_select").val()} }) .done(function(msg){ add_cluster_to_map(msg.features, 0); }); } function show_cluster_centers_lame() { var $form = $("#clustering_run_get_form"), url = $form.attr("action"); // Fire some AJAX! $.ajax({ type: "GET", url: url, dataType: "json", data: {id: $("#clustering_run_get_form_select").val()} }) .done(function(msg){ add_cluster_center_to_map(msg.features, 0); }); } function add_cluster_to_map(clusters, i){ // Define the LatLng coordinates for the polygon's path. var cluster = clusters[i]; var coords = []; var points = cluster.geometry.geometries[1].coordinates[0]; for (var j = 0; j < points.length; j += 1) { coords.push(new google.maps.LatLng( points[j][1], points[j][0])); } var center = cluster.geometry.geometries[0].coordinates; var loc = new google.maps.LatLng( center[1], center[0]) bounds.extend(loc); // Construct the polygon. var poly = new google.maps.Polygon({ paths: coords, strokeColor: '#000000', strokeOpacity: 1.0, strokeWeight: 1, fillColor: '#FF0000', fillOpacity: 0.1 }); poly.setMap(map); // cluster_polygons.push(poly); if (i < clusters.length - 1) { window.setTimeout(function(){add_cluster_to_map(clusters, i + 1);}, 1); } else { finalize_clustering_run_to_map(clusters); } } function add_cluster_center_to_map(clusters, i){ // Define the LatLng coordinates for the polygon's path. var cluster = clusters[i]; var coords = []; var center = cluster.geometry.geometries[0].coordinates; var loc = new google.maps.LatLng( center[1], center[0]) bounds.extend(loc); var marker = new google.maps.Marker({ map: map, position: loc }); if (i < clusters.length - 1) { window.setTimeout(function(){add_cluster_center_to_map(clusters, i + 1);}, 1); } else { finalize_clustering_run_to_map(clusters); } } function show_all() { map.fitBounds(bounds); }
joonamo/photoplaces
photoplaces/static/script/map.js
JavaScript
mit
15,053
#include "sendcoinsdialog.h" #include "ui_sendcoinsdialog.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "addressbookpage.h" #include "optionsmodel.h" #include "sendcoinsentry.h" #include "guiutil.h" #include "askpassphrasedialog.h" #include "base58.h" #include <QMessageBox> #include <QLocale> #include <QTextDocument> #include <QScrollBar> SendCoinsDialog::SendCoinsDialog(QWidget *parent) : QDialog(parent), ui(new Ui::SendCoinsDialog), model(0) { ui->setupUi(this); #ifdef Q_OS_MAC // Icons on push buttons are very uncommon on Mac ui->addButton->setIcon(QIcon()); ui->clearButton->setIcon(QIcon()); ui->sendButton->setIcon(QIcon()); #endif addEntry(); connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addEntry())); connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear())); fNewRecipientAllowed = true; } void SendCoinsDialog::setModel(WalletModel *model) { this->model = model; for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) { entry->setModel(model); } } if(model && model->getOptionsModel()) { setBalance(model->getBalance(), model->getStake(), model->getUnconfirmedBalance(), model->getImmatureBalance()); connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64, qint64)), this, SLOT(setBalance(qint64, qint64, qint64, qint64))); connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit())); } } SendCoinsDialog::~SendCoinsDialog() { delete ui; } void SendCoinsDialog::on_sendButton_clicked() { QList<SendCoinsRecipient> recipients; bool valid = true; if(!model) return; for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) { if(entry->validate()) { recipients.append(entry->getValue()); } else { valid = false; } } } if(!valid || recipients.isEmpty()) { return; } // Format confirmation message QStringList formatted; foreach(const SendCoinsRecipient &rcp, recipients) { #if QT_VERSION < 0x050000 formatted.append(tr("<b>%1</b> to %2 (%3)").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, rcp.amount), Qt::escape(rcp.label), rcp.address)); #else formatted.append(tr("<b>%1</b> to %2 (%3)").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, rcp.amount), rcp.label.toHtmlEscaped(), rcp.address)); #endif } fNewRecipientAllowed = false; QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm send coins"), tr("Are you sure you want to send %1?").arg(formatted.join(tr(" and "))), QMessageBox::Yes|QMessageBox::Cancel, QMessageBox::Cancel); if(retval != QMessageBox::Yes) { fNewRecipientAllowed = true; return; } WalletModel::UnlockContext ctx(model->requestUnlock()); if(!ctx.isValid()) { // Unlock wallet was cancelled fNewRecipientAllowed = true; return; } WalletModel::SendCoinsReturn sendstatus = model->sendCoins(recipients); switch(sendstatus.status) { case WalletModel::InvalidAddress: QMessageBox::warning(this, tr("Send Coins"), tr("The recipient address is not valid, please recheck."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::InvalidAmount: QMessageBox::warning(this, tr("Send Coins"), tr("The amount to pay must be larger than 0."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::AmountExceedsBalance: QMessageBox::warning(this, tr("Send Coins"), tr("The amount exceeds your balance."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::AmountWithFeeExceedsBalance: QMessageBox::warning(this, tr("Send Coins"), tr("The total exceeds your balance when the %1 transaction fee is included."). arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, sendstatus.fee)), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::DuplicateAddress: QMessageBox::warning(this, tr("Send Coins"), tr("Duplicate address found, can only send to each address once per send operation."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::TransactionCreationFailed: QMessageBox::warning(this, tr("Send Coins"), tr("Error: Transaction creation failed."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::TransactionCommitFailed: QMessageBox::warning(this, tr("Send Coins"), tr("Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here."), QMessageBox::Ok, QMessageBox::Ok); break; case WalletModel::Aborted: // User aborted, nothing to do break; case WalletModel::OK: accept(); break; } fNewRecipientAllowed = true; } void SendCoinsDialog::clear() { // Remove entries until only one left while(ui->entries->count()) { delete ui->entries->takeAt(0)->widget(); } addEntry(); updateRemoveEnabled(); ui->sendButton->setDefault(true); } void SendCoinsDialog::reject() { clear(); } void SendCoinsDialog::accept() { clear(); } SendCoinsEntry *SendCoinsDialog::addEntry() { SendCoinsEntry *entry = new SendCoinsEntry(this); entry->setModel(model); ui->entries->addWidget(entry); connect(entry, SIGNAL(removeEntry(SendCoinsEntry*)), this, SLOT(removeEntry(SendCoinsEntry*))); updateRemoveEnabled(); // Focus the field, so that entry can start immediately entry->clear(); entry->setFocus(); ui->scrollAreaWidgetContents->resize(ui->scrollAreaWidgetContents->sizeHint()); QCoreApplication::instance()->processEvents(); QScrollBar* bar = ui->scrollArea->verticalScrollBar(); if(bar) bar->setSliderPosition(bar->maximum()); return entry; } void SendCoinsDialog::updateRemoveEnabled() { // Remove buttons are enabled as soon as there is more than one send-entry bool enabled = (ui->entries->count() > 1); for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) { entry->setRemoveEnabled(enabled); } } setupTabChain(0); } void SendCoinsDialog::removeEntry(SendCoinsEntry* entry) { delete entry; updateRemoveEnabled(); } QWidget *SendCoinsDialog::setupTabChain(QWidget *prev) { for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry) { prev = entry->setupTabChain(prev); } } QWidget::setTabOrder(prev, ui->addButton); QWidget::setTabOrder(ui->addButton, ui->sendButton); return ui->sendButton; } void SendCoinsDialog::pasteEntry(const SendCoinsRecipient &rv) { if(!fNewRecipientAllowed) return; SendCoinsEntry *entry = 0; // Replace the first entry if it is still unused if(ui->entries->count() == 1) { SendCoinsEntry *first = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(0)->widget()); if(first->isClear()) { entry = first; } } if(!entry) { entry = addEntry(); } entry->setValue(rv); } bool SendCoinsDialog::handleURI(const QString &uri) { SendCoinsRecipient rv; // URI has to be valid if (GUIUtil::parseBitcoinURI(uri, &rv)) { CBitcoinAddress address(rv.address.toStdString()); if (!address.IsValid()) return false; pasteEntry(rv); return true; } return false; } void SendCoinsDialog::setBalance(qint64 balance, qint64 stake, qint64 unconfirmedBalance, qint64 immatureBalance) { Q_UNUSED(stake); Q_UNUSED(unconfirmedBalance); Q_UNUSED(immatureBalance); if(!model || !model->getOptionsModel()) return; int unit = model->getOptionsModel()->getDisplayUnit(); ui->labelBalance->setText(BitcoinUnits::formatWithUnit(unit, balance)); } void SendCoinsDialog::updateDisplayUnit() { if(model && model->getOptionsModel()) { // Update labelBalance with the current balance and the current unit ui->labelBalance->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), model->getBalance())); } }
devxxxcoin/xxxcoin
src/qt/sendcoinsdialog.cpp
C++
mit
9,070
{!! Form::select( 'routes[]', $allRoutes, (isset($routes) ? array_keys($routes) : []), array( 'class' => 'form-control select2', 'placeholder' => 'Enter Routes', 'multiple' => true ) ) !!}
stevebauman/maintenance
resources/views/select/routes.blade.php
PHP
mit
273
<?php namespace Aquatic; use Aquatic\FedEx\Contract\Address; use Aquatic\FedEx\Contract\Shipment; use Aquatic\FedEx\Response\Contract as ResponseContract; use Aquatic\FedEx\Request\ValidateAddress as ValidateAddressRequest; use Aquatic\FedEx\Response\ValidateAddress as ValidateAddressResponse; use Aquatic\FedEx\Request\Shipment\Track as TrackShipmentRequest; use Aquatic\FedEx\Response\Shipment\Track as TrackShipmentResponse; use Aquatic\FedEx\Request\Shipment\CustomsAndDuties as CustomsAndDutiesRequest; use Aquatic\FedEx\Response\Shipment\CustomsAndDuties as CustomsAndDutiesResponse; // Facade for FedEx requests class FedEx { public static function trackShipment(int $tracking_number): ResponseContract { return (new TrackShipmentRequest($tracking_number)) ->setCredentials(getenv('FEDEX_KEY'), getenv('FEDEX_PASSWORD'), getenv('FEDEX_ACCOUNT_NUMBER'), getenv('FEDEX_METER_NUMBER')) ->send(new TrackShipmentResponse); } public static function customsAndDuties(Shipment $shipment, Address $shipper) { return (new CustomsAndDutiesRequest($shipment, $shipper)) ->setCredentials(getenv('FEDEX_KEY'), getenv('FEDEX_PASSWORD'), getenv('FEDEX_ACCOUNT_NUMBER'), getenv('FEDEX_METER_NUMBER')) ->send(new CustomsAndDutiesResponse($shipment->getItems())); } public static function validateAddress(Address $address) { return (new ValidateAddressRequest($address)) ->setCredentials(getenv('FEDEX_KEY'), getenv('FEDEX_PASSWORD'), getenv('FEDEX_ACCOUNT_NUMBER'), getenv('FEDEX_METER_NUMBER')) ->send(new ValidateAddressResponse); } }
aquaticpond/fedex
src/Aquatic/FedEx.php
PHP
mit
1,667
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Pesho")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Pesho")] [assembly: AssemblyCopyright("Copyright © 2013")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("fc740c6d-ec21-40c6-ad6d-6823d61e8446")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
d-georgiev-91/TelerikAcademy
Programming/HighQualityProgrammingCode/ConsoleApplication1/Pesho/Properties/AssemblyInfo.cs
C#
mit
1,346
import React, { Component } from 'react' import PropTypes from 'prop-types' import { MultiSelect } from '../../src' class MultiSelectWithStringValues extends Component { constructor(props) { super(props) this.state = { value: [] } } handleChange = (event) => { const { valueKey } = this.props this.setState({ value: event.value.map((val) => val[valueKey]) }) } render() { const { value } = this.state return <MultiSelect {...this.props} onChange={this.handleChange} value={value} /> } } MultiSelectWithStringValues.propTypes = { valueKey: PropTypes.string.isRequired } export default MultiSelectWithStringValues
sthomas1618/react-crane
stories/components/MultiSelectWithStringValues.js
JavaScript
mit
667
/* util/operators.hpp * * Copyright (C) 2007 Antonio Di Monaco * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #ifndef __OPERATORS_HPP__ #define __OPERATORS_HPP__ template< typename T > struct EqualComparable { friend bool operator!=(const T &a,const T &b) { return !(a == b); } }; template< typename T > struct Comparable : public EqualComparable< T > { friend bool operator<=(const T &a, const T &b) { return (a < b) || (a == b); } friend bool operator>(const T &a,const T &b) { return !(a <= b); } friend bool operator>=(const T &a,const T &b) { return !(a < b); } }; #endif
becrux/xfspp
util/operators.hpp
C++
mit
700
""" [2015-07-13] Challenge #223 [Easy] Garland words https://www.reddit.com/r/dailyprogrammer/comments/3d4fwj/20150713_challenge_223_easy_garland_words/ # Description A [_garland word_](http://blog.vivekhaldar.com/post/89763722591/garland-words) is one that starts and ends with the same N letters in the same order, for some N greater than 0, but less than the length of the word. I'll call the maximum N for which this works the garland word's _degree_. For instance, "onion" is a garland word of degree 2, because its first 2 letters "on" are the same as its last 2 letters. The name "garland word" comes from the fact that you can make chains of the word in this manner: onionionionionionionionionionion... Today's challenge is to write a function `garland` that, given a lowercase word, returns the degree of the word if it's a garland word, and 0 otherwise. # Examples garland("programmer") -> 0 garland("ceramic") -> 1 garland("onion") -> 2 garland("alfalfa") -> 4 # Optional challenges 1. Given a garland word, print out the chain using that word, as with "onion" above. You can make it as long or short as you like, even infinite. 1. Find the largest degree of any garland word in the [enable1 English word list](https://code.google.com/p/dotnetperls-controls/downloads/detail?name=enable1.txt). 1. Find a word list for some other language, and see if you can find a language with a garland word with a higher degree. *Thanks to /u/skeeto for submitting this challenge on /r/dailyprogrammer_ideas!* """ def main(): pass if __name__ == "__main__": main()
DayGitH/Python-Challenges
DailyProgrammer/DP20150713A.py
Python
mit
1,597
/** * * Licensed Property to China UnionPay Co., Ltd. * * (C) Copyright of China UnionPay Co., Ltd. 2010 * All Rights Reserved. * * * Modification History: * ============================================================================= * Author Date Description * ------------ ---------- --------------------------------------------------- * xshu 2014-05-28 MPI插件包常量定义 * ============================================================================= */ package com.boyuanitsm.pay.unionpay.config; public class SDKConstants { public final static String COLUMN_DEFAULT = "-"; public final static String KEY_DELIMITER = "#"; /** memeber variable: blank. */ public static final String BLANK = ""; /** member variabel: space. */ public static final String SPACE = " "; /** memeber variable: unline. */ public static final String UNLINE = "_"; /** memeber varibale: star. */ public static final String STAR = "*"; /** memeber variable: line. */ public static final String LINE = "-"; /** memeber variable: add. */ public static final String ADD = "+"; /** memeber variable: colon. */ public final static String COLON = "|"; /** memeber variable: point. */ public final static String POINT = "."; /** memeber variable: comma. */ public final static String COMMA = ","; /** memeber variable: slash. */ public final static String SLASH = "/"; /** memeber variable: div. */ public final static String DIV = "/"; /** memeber variable: left . */ public final static String LB = "("; /** memeber variable: right. */ public final static String RB = ")"; /** memeber variable: rmb. */ public final static String CUR_RMB = "RMB"; /** memeber variable: .page size */ public static final int PAGE_SIZE = 10; /** memeber variable: String ONE. */ public static final String ONE = "1"; /** memeber variable: String ZERO. */ public static final String ZERO = "0"; /** memeber variable: number six. */ public static final int NUM_SIX = 6; /** memeber variable: equal mark. */ public static final String EQUAL = "="; /** memeber variable: operation ne. */ public static final String NE = "!="; /** memeber variable: operation le. */ public static final String LE = "<="; /** memeber variable: operation ge. */ public static final String GE = ">="; /** memeber variable: operation lt. */ public static final String LT = "<"; /** memeber variable: operation gt. */ public static final String GT = ">"; /** memeber variable: list separator. */ public static final String SEP = "./"; /** memeber variable: Y. */ public static final String Y = "Y"; /** memeber variable: AMPERSAND. */ public static final String AMPERSAND = "&"; /** memeber variable: SQL_LIKE_TAG. */ public static final String SQL_LIKE_TAG = "%"; /** memeber variable: @. */ public static final String MAIL = "@"; /** memeber variable: number zero. */ public static final int NZERO = 0; public static final String LEFT_BRACE = "{"; public static final String RIGHT_BRACE = "}"; /** memeber variable: string true. */ public static final String TRUE_STRING = "true"; /** memeber variable: string false. */ public static final String FALSE_STRING = "false"; /** memeber variable: forward success. */ public static final String SUCCESS = "success"; /** memeber variable: forward fail. */ public static final String FAIL = "fail"; /** memeber variable: global forward success. */ public static final String GLOBAL_SUCCESS = "$success"; /** memeber variable: global forward fail. */ public static final String GLOBAL_FAIL = "$fail"; public static final String UTF_8_ENCODING = "UTF-8"; public static final String GBK_ENCODING = "GBK"; public static final String CONTENT_TYPE = "Content-type"; public static final String APP_XML_TYPE = "application/xml;charset=utf-8"; public static final String APP_FORM_TYPE = "application/x-www-form-urlencoded;charset="; /******************************************** 5.0报文接口定义 ********************************************/ /** 版本号. */ public static final String param_version = "version"; /** 证书ID. */ public static final String param_certId = "certId"; /** 签名. */ public static final String param_signature = "signature"; /** 编码方式. */ public static final String param_encoding = "encoding"; /** 交易类型. */ public static final String param_txnType = "txnType"; /** 交易子类. */ public static final String param_txnSubType = "txnSubType"; /** 业务类型. */ public static final String param_bizType = "bizType"; /** 前台通知地址 . */ public static final String param_frontUrl = "frontUrl"; /** 后台通知地址. */ public static final String param_backUrl = "backUrl"; /** 接入类型. */ public static final String param_accessType = "accessType"; /** 收单机构代码. */ public static final String param_acqInsCode = "acqInsCode"; /** 商户类别. */ public static final String param_merCatCode = "merCatCode"; /** 商户类型. */ public static final String param_merType = "merType"; /** 商户代码. */ public static final String param_merId = "merId"; /** 商户名称. */ public static final String param_merName = "merName"; /** 商户简称. */ public static final String param_merAbbr = "merAbbr"; /** 二级商户代码. */ public static final String param_subMerId = "subMerId"; /** 二级商户名称. */ public static final String param_subMerName = "subMerName"; /** 二级商户简称. */ public static final String param_subMerAbbr = "subMerAbbr"; /** Cupsecure 商户代码. */ public static final String param_csMerId = "csMerId"; /** 商户订单号. */ public static final String param_orderId = "orderId"; /** 交易时间. */ public static final String param_txnTime = "txnTime"; /** 发送时间. */ public static final String param_txnSendTime = "txnSendTime"; /** 订单超时时间间隔. */ public static final String param_orderTimeoutInterval = "orderTimeoutInterval"; /** 支付超时时间. */ public static final String param_payTimeoutTime = "payTimeoutTime"; /** 默认支付方式. */ public static final String param_defaultPayType = "defaultPayType"; /** 支持支付方式. */ public static final String param_supPayType = "supPayType"; /** 支付方式. */ public static final String param_payType = "payType"; /** 自定义支付方式. */ public static final String param_customPayType = "customPayType"; /** 物流标识. */ public static final String param_shippingFlag = "shippingFlag"; /** 收货地址-国家. */ public static final String param_shippingCountryCode = "shippingCountryCode"; /** 收货地址-省. */ public static final String param_shippingProvinceCode = "shippingProvinceCode"; /** 收货地址-市. */ public static final String param_shippingCityCode = "shippingCityCode"; /** 收货地址-地区. */ public static final String param_shippingDistrictCode = "shippingDistrictCode"; /** 收货地址-详细. */ public static final String param_shippingStreet = "shippingStreet"; /** 商品总类. */ public static final String param_commodityCategory = "commodityCategory"; /** 商品名称. */ public static final String param_commodityName = "commodityName"; /** 商品URL. */ public static final String param_commodityUrl = "commodityUrl"; /** 商品单价. */ public static final String param_commodityUnitPrice = "commodityUnitPrice"; /** 商品数量. */ public static final String param_commodityQty = "commodityQty"; /** 是否预授权. */ public static final String param_isPreAuth = "isPreAuth"; /** 币种. */ public static final String param_currencyCode = "currencyCode"; /** 账户类型. */ public static final String param_accType = "accType"; /** 账号. */ public static final String param_accNo = "accNo"; /** 支付卡类型. */ public static final String param_payCardType = "payCardType"; /** 发卡机构代码. */ public static final String param_issInsCode = "issInsCode"; /** 持卡人信息. */ public static final String param_customerInfo = "customerInfo"; /** 交易金额. */ public static final String param_txnAmt = "txnAmt"; /** 余额. */ public static final String param_balance = "balance"; /** 地区代码. */ public static final String param_districtCode = "districtCode"; /** 附加地区代码. */ public static final String param_additionalDistrictCode = "additionalDistrictCode"; /** 账单类型. */ public static final String param_billType = "billType"; /** 账单号码. */ public static final String param_billNo = "billNo"; /** 账单月份. */ public static final String param_billMonth = "billMonth"; /** 账单查询要素. */ public static final String param_billQueryInfo = "billQueryInfo"; /** 账单详情. */ public static final String param_billDetailInfo = "billDetailInfo"; /** 账单金额. */ public static final String param_billAmt = "billAmt"; /** 账单金额符号. */ public static final String param_billAmtSign = "billAmtSign"; /** 绑定标识号. */ public static final String param_bindId = "bindId"; /** 风险级别. */ public static final String param_riskLevel = "riskLevel"; /** 绑定信息条数. */ public static final String param_bindInfoQty = "bindInfoQty"; /** 绑定信息集. */ public static final String param_bindInfoList = "bindInfoList"; /** 批次号. */ public static final String param_batchNo = "batchNo"; /** 总笔数. */ public static final String param_totalQty = "totalQty"; /** 总金额. */ public static final String param_totalAmt = "totalAmt"; /** 文件类型. */ public static final String param_fileType = "fileType"; /** 文件名称. */ public static final String param_fileName = "fileName"; /** 批量文件内容. */ public static final String param_fileContent = "fileContent"; /** 商户摘要. */ public static final String param_merNote = "merNote"; /** 商户自定义域. */ // public static final String param_merReserved = "merReserved";//接口变更删除 /** 请求方保留域. */ public static final String param_reqReserved = "reqReserved";// 新增接口 /** 保留域. */ public static final String param_reserved = "reserved"; /** 终端号. */ public static final String param_termId = "termId"; /** 终端类型. */ public static final String param_termType = "termType"; /** 交互模式. */ public static final String param_interactMode = "interactMode"; /** 发卡机构识别模式. */ // public static final String param_recognitionMode = "recognitionMode"; public static final String param_issuerIdentifyMode = "issuerIdentifyMode";// 接口名称变更 /** 商户端用户号. */ public static final String param_merUserId = "merUserId"; /** 持卡人IP. */ public static final String param_customerIp = "customerIp"; /** 查询流水号. */ public static final String param_queryId = "queryId"; /** 原交易查询流水号. */ public static final String param_origQryId = "origQryId"; /** 系统跟踪号. */ public static final String param_traceNo = "traceNo"; /** 交易传输时间. */ public static final String param_traceTime = "traceTime"; /** 清算日期. */ public static final String param_settleDate = "settleDate"; /** 清算币种. */ public static final String param_settleCurrencyCode = "settleCurrencyCode"; /** 清算金额. */ public static final String param_settleAmt = "settleAmt"; /** 清算汇率. */ public static final String param_exchangeRate = "exchangeRate"; /** 兑换日期. */ public static final String param_exchangeDate = "exchangeDate"; /** 响应时间. */ public static final String param_respTime = "respTime"; /** 原交易应答码. */ public static final String param_origRespCode = "origRespCode"; /** 原交易应答信息. */ public static final String param_origRespMsg = "origRespMsg"; /** 应答码. */ public static final String param_respCode = "respCode"; /** 应答码信息. */ public static final String param_respMsg = "respMsg"; // 新增四个报文字段merUserRegDt merUserEmail checkFlag activateStatus /** 商户端用户注册时间. */ public static final String param_merUserRegDt = "merUserRegDt"; /** 商户端用户注册邮箱. */ public static final String param_merUserEmail = "merUserEmail"; /** 验证标识. */ public static final String param_checkFlag = "checkFlag"; /** 开通状态. */ public static final String param_activateStatus = "activateStatus"; /** 加密证书ID. */ public static final String param_encryptCertId = "encryptCertId"; /** 用户MAC、IMEI串号、SSID. */ public static final String param_userMac = "userMac"; /** 关联交易. */ // public static final String param_relationTxnType = "relationTxnType"; /** 短信类型 */ public static final String param_smsType = "smsType"; /** 风控信息域 */ public static final String param_riskCtrlInfo = "riskCtrlInfo"; /** IC卡交易信息域 */ public static final String param_ICTransData = "ICTransData"; /** VPC交易信息域 */ public static final String param_VPCTransData = "VPCTransData"; /** 安全类型 */ public static final String param_securityType = "securityType"; /** 银联订单号 */ public static final String param_tn = "tn"; /** 分期付款手续费率 */ public static final String param_instalRate = "instalRate"; /** 分期付款手续费率 */ public static final String param_mchntFeeSubsidy = "mchntFeeSubsidy"; }
smjie2800/spring-cloud-microservice-redis-activemq-hibernate-mysql
microservice-provider-pay/src/main/java/com/boyuanitsm/pay/unionpay/config/SDKConstants.java
Java
mit
13,548
require 'faraday' require 'simple_ratings/foursquare/meta/venue' module SimpleRatings class Foursquare < Faraday::Connection def initialize super(url: 'https://api.foursquare.com/v2/') end def default_params { client_id: ENV['FOURSQUARE_CLIENT_ID'], client_secret: ENV['FOURSQUARE_CLIENT_SECRET'], v: 20130214 } end def search(params) get('venues/search', default_params.merge(params)) end def get(url = nil, params = nil, headers = nil) params ||= {} params = default_params.merge(params) super(url, params, headers) end # def get(*args) # super(*build_default_request_arguments(*args)) # end # def build_default_request_arguments(url = nil, params = nil, headers = nil) # params ||= {} # params = default_params.merge(params) # [url, params, headers] # end end end
benastan/simple_ratings
lib/simple_ratings/foursquare.rb
Ruby
mit
918
using System; using System.Text; namespace ExifLibrary { /// <summary> /// Represents an enumerated value. /// </summary> public class ExifEnumProperty<T> : ExifProperty { protected T mValue; protected bool mIsBitField; protected override object _Value { get { return Value; } set { Value = (T)value; } } public new T Value { get { return mValue; } set { mValue = value; } } public bool IsBitField { get { return mIsBitField; } } static public implicit operator T(ExifEnumProperty<T> obj) { return (T)obj.mValue; } public override string ToString() { return mValue.ToString(); } public ExifEnumProperty(ExifTag tag, T value, bool isbitfield) : base(tag) { mValue = value; mIsBitField = isbitfield; } public ExifEnumProperty(ExifTag tag, T value) : this(tag, value, false) { ; } public override ExifInterOperability Interoperability { get { ushort tagid = ExifTagFactory.GetTagID(mTag); Type type = typeof(T); Type basetype = Enum.GetUnderlyingType(type); if (type == typeof(FileSource) || type == typeof(SceneType)) { // UNDEFINED return new ExifInterOperability(tagid, 7, 1, new byte[] { (byte)((object)mValue) }); } else if (type == typeof(GPSLatitudeRef) || type == typeof(GPSLongitudeRef) || type == typeof(GPSStatus) || type == typeof(GPSMeasureMode) || type == typeof(GPSSpeedRef) || type == typeof(GPSDirectionRef) || type == typeof(GPSDistanceRef)) { // ASCII return new ExifInterOperability(tagid, 2, 2, new byte[] { (byte)((object)mValue), 0 }); } else if (basetype == typeof(byte)) { // BYTE return new ExifInterOperability(tagid, 1, 1, new byte[] { (byte)((object)mValue) }); } else if (basetype == typeof(ushort)) { // SHORT return new ExifInterOperability(tagid, 3, 1, ExifBitConverter.GetBytes((ushort)((object)mValue), BitConverterEx.SystemByteOrder, BitConverterEx.SystemByteOrder)); } else throw new UnknownEnumTypeException(); } } } /// <summary> /// Represents an ASCII string. (EXIF Specification: UNDEFINED) Used for the UserComment field. /// </summary> public class ExifEncodedString : ExifProperty { protected string mValue; private Encoding mEncoding; protected override object _Value { get { return Value; } set { Value = (string)value; } } public new string Value { get { return mValue; } set { mValue = value; } } public Encoding Encoding { get { return mEncoding; } set { mEncoding = value; } } static public implicit operator string(ExifEncodedString obj) { return obj.mValue; } public override string ToString() { return mValue; } public ExifEncodedString(ExifTag tag, string value, Encoding encoding) : base(tag) { mValue = value; mEncoding = encoding; } public override ExifInterOperability Interoperability { get { string enc = ""; if (mEncoding == null) enc = "\0\0\0\0\0\0\0\0"; else if (mEncoding.EncodingName == "US-ASCII") enc = "ASCII\0\0\0"; else if (mEncoding.EncodingName == "Japanese (JIS 0208-1990 and 0212-1990)") enc = "JIS\0\0\0\0\0"; else if (mEncoding.EncodingName == "Unicode") enc = "Unicode\0"; else enc = "\0\0\0\0\0\0\0\0"; byte[] benc = Encoding.ASCII.GetBytes(enc); byte[] bstr = (mEncoding == null ? Encoding.ASCII.GetBytes(mValue) : mEncoding.GetBytes(mValue)); byte[] data = new byte[benc.Length + bstr.Length]; Array.Copy(benc, 0, data, 0, benc.Length); Array.Copy(bstr, 0, data, benc.Length, bstr.Length); return new ExifInterOperability(ExifTagFactory.GetTagID(mTag), 7, (uint)data.Length, data); } } } /// <summary> /// Represents an ASCII string formatted as DateTime. (EXIF Specification: ASCII) Used for the date time fields. /// </summary> public class ExifDateTime : ExifProperty { protected DateTime mValue; protected override object _Value { get { return Value; } set { Value = (DateTime)value; } } public new DateTime Value { get { return mValue; } set { mValue = value; } } static public implicit operator DateTime(ExifDateTime obj) { return obj.mValue; } public override string ToString() { return mValue.ToString("yyyy.MM.dd HH:mm:ss"); } public ExifDateTime(ExifTag tag, DateTime value) : base(tag) { mValue = value; } public override ExifInterOperability Interoperability { get { return new ExifInterOperability(ExifTagFactory.GetTagID(mTag), 2, (uint)20, ExifBitConverter.GetBytes(mValue, true)); } } } /// <summary> /// Represents the exif version as a 4 byte ASCII string. (EXIF Specification: UNDEFINED) /// Used for the ExifVersion, FlashpixVersion, InteroperabilityVersion and GPSVersionID fields. /// </summary> public class ExifVersion : ExifProperty { protected string mValue; protected override object _Value { get { return Value; } set { Value = (string)value; } } public new string Value { get { return mValue; } set { mValue = value.Substring(0, 4); } } public ExifVersion(ExifTag tag, string value) : base(tag) { if (value.Length > 4) mValue = value.Substring(0, 4); else if (value.Length < 4) mValue = value + new string(' ', 4 - value.Length); else mValue = value; } public override string ToString() { return mValue; } public override ExifInterOperability Interoperability { get { if (mTag == ExifTag.ExifVersion || mTag == ExifTag.FlashpixVersion || mTag == ExifTag.InteroperabilityVersion) return new ExifInterOperability(ExifTagFactory.GetTagID(mTag), 7, 4, Encoding.ASCII.GetBytes(mValue)); else { byte[] data = new byte[4]; for (int i = 0; i < 4; i++) data[i] = byte.Parse(mValue[0].ToString()); return new ExifInterOperability(ExifTagFactory.GetTagID(mTag), 7, 4, data); } } } } /// <summary> /// Represents the location and area of the subject (EXIF Specification: 2xSHORT) /// The coordinate values, width, and height are expressed in relation to the /// upper left as origin, prior to rotation processing as per the Rotation tag. /// </summary> public class ExifPointSubjectArea : ExifUShortArray { protected new ushort[] Value { get { return mValue; } set { mValue = value; } } public ushort X { get { return mValue[0]; } set { mValue[0] = value; } } public ushort Y { get { return mValue[1]; } set { mValue[1] = value; } } public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendFormat("({0:d}, {1:d})", mValue[0], mValue[1]); return sb.ToString(); } public ExifPointSubjectArea(ExifTag tag, ushort[] value) : base(tag, value) { ; } public ExifPointSubjectArea(ExifTag tag, ushort x, ushort y) : base(tag, new ushort[] { x, y }) { ; } } /// <summary> /// Represents the location and area of the subject (EXIF Specification: 3xSHORT) /// The coordinate values, width, and height are expressed in relation to the /// upper left as origin, prior to rotation processing as per the Rotation tag. /// </summary> public class ExifCircularSubjectArea : ExifPointSubjectArea { public ushort Diamater { get { return mValue[2]; } set { mValue[2] = value; } } public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendFormat("({0:d}, {1:d}) {2:d}", mValue[0], mValue[1], mValue[2]); return sb.ToString(); } public ExifCircularSubjectArea(ExifTag tag, ushort[] value) : base(tag, value) { ; } public ExifCircularSubjectArea(ExifTag tag, ushort x, ushort y, ushort d) : base(tag, new ushort[] { x, y, d }) { ; } } /// <summary> /// Represents the location and area of the subject (EXIF Specification: 4xSHORT) /// The coordinate values, width, and height are expressed in relation to the /// upper left as origin, prior to rotation processing as per the Rotation tag. /// </summary> public class ExifRectangularSubjectArea : ExifPointSubjectArea { public ushort Width { get { return mValue[2]; } set { mValue[2] = value; } } public ushort Height { get { return mValue[3]; } set { mValue[3] = value; } } public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendFormat("({0:d}, {1:d}) ({2:d} x {3:d})", mValue[0], mValue[1], mValue[2], mValue[3]); return sb.ToString(); } public ExifRectangularSubjectArea(ExifTag tag, ushort[] value) : base(tag, value) { ; } public ExifRectangularSubjectArea(ExifTag tag, ushort x, ushort y, ushort w, ushort h) : base(tag, new ushort[] { x, y, w, h }) { ; } } /// <summary> /// Represents GPS latitudes and longitudes (EXIF Specification: 3xRATIONAL) /// </summary> public class GPSLatitudeLongitude : ExifURationalArray { protected new MathEx.UFraction32[] Value { get { return mValue; } set { mValue = value; } } public MathEx.UFraction32 Degrees { get { return mValue[0]; } set { mValue[0] = value; } } public MathEx.UFraction32 Minutes { get { return mValue[1]; } set { mValue[1] = value; } } public MathEx.UFraction32 Seconds { get { return mValue[2]; } set { mValue[2] = value; } } public static explicit operator float(GPSLatitudeLongitude obj) { return obj.ToFloat(); } public float ToFloat() { return (float)Degrees + ((float)Minutes) / 60.0f + ((float)Seconds) / 3600.0f; } public override string ToString() { return string.Format("{0:F2}°{1:F2}'{2:F2}\"", (float)Degrees, (float)Minutes, (float)Seconds); } public GPSLatitudeLongitude(ExifTag tag, MathEx.UFraction32[] value) : base(tag, value) { ; } public GPSLatitudeLongitude(ExifTag tag, float d, float m, float s) : base(tag, new MathEx.UFraction32[] { new MathEx.UFraction32(d), new MathEx.UFraction32(m), new MathEx.UFraction32(s) }) { ; } } /// <summary> /// Represents a GPS time stamp as UTC (EXIF Specification: 3xRATIONAL) /// </summary> public class GPSTimeStamp : ExifURationalArray { protected new MathEx.UFraction32[] Value { get { return mValue; } set { mValue = value; } } public MathEx.UFraction32 Hour { get { return mValue[0]; } set { mValue[0] = value; } } public MathEx.UFraction32 Minute { get { return mValue[1]; } set { mValue[1] = value; } } public MathEx.UFraction32 Second { get { return mValue[2]; } set { mValue[2] = value; } } public override string ToString() { return string.Format("{0:F2}:{1:F2}:{2:F2}\"", (float)Hour, (float)Minute, (float)Second); } public GPSTimeStamp(ExifTag tag, MathEx.UFraction32[] value) : base(tag, value) { ; } public GPSTimeStamp(ExifTag tag, float h, float m, float s) : base(tag, new MathEx.UFraction32[] { new MathEx.UFraction32(h), new MathEx.UFraction32(m), new MathEx.UFraction32(s) }) { ; } } /// <summary> /// Represents an ASCII string. (EXIF Specification: BYTE) /// Used by Windows XP. /// </summary> public class WindowsByteString : ExifProperty { protected string mValue; protected override object _Value { get { return Value; } set { Value = (string)value; } } public new string Value { get { return mValue; } set { mValue = value; } } static public implicit operator string(WindowsByteString obj) { return obj.mValue; } public override string ToString() { return mValue; } public WindowsByteString(ExifTag tag, string value) : base(tag) { mValue = value; } public override ExifInterOperability Interoperability { get { byte[] data = Encoding.Unicode.GetBytes(mValue); return new ExifInterOperability(ExifTagFactory.GetTagID(mTag), 1, (uint)data.Length, data); } } } }
ahzf/ExifLibrary
ExifLibrary/ExifExtendedProperty.cs
C#
mit
13,977
using System.Collections.Generic; using System.Threading.Tasks; using MongoDB.Bson; using MongoDB.Driver; using ShowFinder.Models; namespace ShowFinder.Repositories.Interfaces { public interface IMongoRepository { IMongoDatabase Database(string name); Task<BsonDocument> GetUserProfile(IMongoCollection<BsonDocument> userProfilesCollection, string hash); Task<bool> UpdateShows(IMongoCollection<BsonDocument> userProfilesCollection, string userHash, IEnumerable<string> showList); Task<bool> UpdateDownloadedEpisode(IMongoCollection<BsonDocument> userProfilesCollection, string profileId, string episodeId, string filteredShowName, DownloadedEpisode downloadedEpisodeData); Task<bool> DeleteDownloadedEpisode(IMongoCollection<BsonDocument> userProfilesCollection, string profileId, string episodeId, string filtereShowdName); Task<bool> UpdateTimeSpan(IMongoCollection<BsonDocument> userProfilesCollection, UserProfile profile); Task<BsonDocument> GetFromCache(IMongoCollection<BsonDocument> collection, string id); Task<bool> SetToCache(IMongoCollection<BsonDocument> collection, string id, BsonDocument doc, int daysToExpire); } }
YanivHaramati/ShowFinder
ShowFinder/Repositories/Interfaces/IMongoRepository.cs
C#
mit
1,257
/*! * Module dependencies. */ var util = require('util'), moment = require('moment'), super_ = require('../Type'); /** * Date FieldType Constructor * @extends Field * @api public */ function datearray(list, path, options) { this._nativeType = [Date]; this._defaultSize = 'medium'; this._underscoreMethods = ['format']; this._properties = ['formatString']; this.parseFormatString = options.parseFormat || 'YYYY-MM-DD'; this.formatString = (options.format === false) ? false : (options.format || 'Do MMM YYYY'); if (this.formatString && 'string' !== typeof this.formatString) { throw new Error('FieldType.Date: options.format must be a string.'); } datearray.super_.call(this, list, path, options); } /*! * Inherit from Field */ util.inherits(datearray, super_); /** * Formats the field value * * @api public */ datearray.prototype.format = function(item, format) { if (format || this.formatString) { return item.get(this.path) ? moment(item.get(this.path)).format(format || this.formatString) : ''; } else { return item.get(this.path) || ''; } }; /** * Checks that a valid array of dates has been provided in a data object * * An empty value clears the stored value and is considered valid * * @api public */ datearray.prototype.inputIsValid = function(data, required, item) { var value = this.getValueFromData(data); var parseFormatString = this.parseFormatString; if ('string' === typeof value) { if (!moment(value, parseFormatString).isValid()) { return false; } value = [value]; } if (required) { if (value === undefined && item && item.get(this.path) && item.get(this.path).length) { return true; } if (value === undefined || !Array.isArray(value)) { return false; } if (Array.isArray(value) && !value.length) { return false; } } if (Array.isArray(value)) { // filter out empty fields value = value.filter(function(date) { return date.trim() !== ''; }); // if there are no values left, and requried is true, return false if (required && !value.length) { return false; } // if any date in the array is invalid, return false if (value.some(function (dateValue) { return !moment(dateValue, parseFormatString).isValid(); })) { return false; } } return (value === undefined || Array.isArray(value)); }; /** * Updates the value for this field in the item from a data object * * @api public */ datearray.prototype.updateItem = function(item, data, callback) { var value = this.getValueFromData(data); if (value !== undefined) { if (Array.isArray(value)) { // Only save valid dates value = value.filter(function(date) { return moment(date).isValid(); }); } if (value === null) { value = []; } if ('string' === typeof value) { if (moment(value).isValid()) { value = [value]; } } if (Array.isArray(value)) { item.set(this.path, value); } } else item.set(this.path, []); process.nextTick(callback); }; /*! * Export class */ module.exports = datearray;
riyadhalnur/keystone
fields/types/datearray/DateArrayType.js
JavaScript
mit
3,038