This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head><meta http-equiv="Content-type" content="text/html; charset=utf-8"/> | |
<title>RepairShopr Invoice Template 6</title> | |
<style type="text/css">html, body { | |
font-family: Arial, "Arial Unicode", "Arial Unicode MS", Helvetica, sans-serif; | |
font-size: 12px; | |
line-height: 16px; | |
word-wrap: break-word; |
This file contains hidden or 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
[troy@repairshopr-one BackOffice (master *)]$ wget http://admin.repairshopr.com/users/sign_in | |
--2015-05-20 13:20:55-- http://admin.repairshopr.com/users/sign_in | |
Resolving admin.repairshopr.com... 162.159.240.103, 198.41.249.102 | |
Connecting to admin.repairshopr.com|162.159.240.103|:80... connected. | |
HTTP request sent, awaiting response... 302 Found | |
Location: https://admin.repairshopr.com/users/sign_in [following] | |
--2015-05-20 13:20:55-- https://admin.repairshopr.com/users/sign_in | |
Connecting to admin.repairshopr.com|162.159.240.103|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: unspecified [text/html] |
This file contains hidden or 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
[default] | |
access_key = REPLACE_ME | |
add_encoding_exts = | |
add_headers = | |
bucket_location = US | |
cache_file = | |
cloudfront_host = cloudfront.amazonaws.com | |
default_mime_type = binary/octet-stream | |
delay_updates = False | |
delete_after = False |
This file contains hidden or 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
class Woocommercer | |
require "digest/sha1" | |
require "cgi" | |
require "json" | |
require "base64" | |
require "openssl" | |
require "net/http" | |
require "net/https" | |
attr_accessor :consumer_key, :consumer_secret, :api_url, :is_ssl |
This file contains hidden or 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
class Cloudberry | |
attr_accessor :access_token, :base_url, :api_version, :account | |
def initialize(account) | |
@api_version = "/api" | |
@account = account | |
@access_token = @account.settings.cloudberry_access_token | |
refresh_token! if have_credentials? && !valid_access_token? | |
end |
This file contains hidden or 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
<script type="text/javascript"> | |
var tmr; | |
function onSign() | |
{ | |
var ctx = document.getElementById('cnv').getContext('2d'); | |
SetDisplayXSize( 500 ); | |
SetDisplayYSize( 100 ); | |
SetJustifyMode(0); |
This file contains hidden or 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
context "second tax inclusive calculations" do | |
before :each do | |
@account = singleton_account | |
allow(@account).to receive_message_chain(:settings, :tax_inclusive).and_return(true) | |
@user ||= User.create email: '[email protected]', full_name: 'Bat Man', group: 'Admins', password: 'pppppp', password_confirm: 'pppppp' | |
@customer ||= FactoryGirl.create(:singleton_customer, account: singleton_account) | |
@invoice ||= Invoice.create number: '1234', customer_id: @customer.id, account_id: @account.id, date: Time.now.to_date | |
allow(@invoice.account.settings).to receive(:tax_inclusive).and_return(true) | |
allow(@invoice).to receive(:applied_tax_rate).and_return(0.10) |
This file contains hidden or 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
class SearchResultFormatr | |
attr_accessor :type, :fields | |
def initialize(result) | |
@result = result | |
@type = result._type | |
setup_fields | |
end |
This file contains hidden or 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
curl --data "message=Welcome to 5 Guys Burgers" 10.0.201.133:3000/weather/morelia,mx | |
curl --data "message=Welcome to 5 Guys Burgers" 10.0.201.133:3000/weather/98034 | |
curl --data "message=Total: 1.99 .&line=1" 10.0.201.133:3000/message | |
This file contains hidden or 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 writeToScreen(screen, message) { | |
screen.setCursor(0,0); | |
screen.write(message); | |
} | |
function postDataNow() { | |
// Build the post string from an object | |
var post_data = { | |
'device': 'edison', |