This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'mysql' | |
require 'csv' | |
require 'uuid' | |
Uuid = UUID.new | |
DBh = nil | |
DBh = Mysql.real_connect("localhost", "root", "", "openbravopos") | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <event key="ticket.close" code="Update.Pole"/> | |
String displayOut = "Welcome to Om Spices!"; | |
index = sales.getSelectedIndex(); | |
if (index >= 0) { | |
line = ticket.getLine(index); | |
if (value != null) { | |
displayOut = line.printName() + "\n" + | |
line.printPrice() + " x " + line.printMultiply() + " = " + line.printSubValue() +"\u0003"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function speak(text) { | |
session.speak("flite", "kal", text); | |
} | |
function getNumber() { | |
speak("Enter the number then press pound"); | |
number = ''; | |
while((digit = session.getDigits(1, '', 20000)) != '#') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Thanks to http://latenitesoft.blogspot.com/2008/10/iphone-programming-tips-building-unix.html | |
export DEVROOT=/Developer/Platforms/iPhoneOS.platform/Developer | |
export SDKROOT=$DEVROOT/SDKs/iPhoneOS2.2.sdk | |
export LIBNAME="osip" | |
U_CC=$CC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[12pt]{article} | |
\usepackage[hmargin=1.0in,vmargin=1.0in]{geometry} | |
\usepackage{setspace} | |
\usepackage{alltt} | |
\begin{document} | |
\begin{flushright} | |
Kesava Yerra\\ | |
Janurary 1, 2009\\ | |
Humanities 101 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
latex paper | |
bibtex paper | |
latex paper | |
pdflatex paper | |
cat paper.tex | sed 's/^.*bibliography/%/g' | sed 's/^.*setspace/%/g' | sed 's/^.*biblatex/%/g' | sed 's/^.*singlespacing/%/g' | sed 's/^.*doublespacing/%/g' > paper2.tex | |
latex paper2.tex | |
latex2rtf -o paper.rtf paper2.tex | |
rm paper2.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "jdbc/mysql" | |
require "java" | |
require 'RedCloth' | |
require 'net/http' | |
require 'uri' | |
def post_entries | |
begin | |
# Prep the connection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rexml/document' | |
REXML::Document.new(open(ARGV[0]).read).write($stdout, 4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rexml/document' | |
REXML::Document.new(open(ARGV[0]).read).write($stdout, 4) |
OlderNewer