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
type SetPriceData struct { | |
CustomerID int `schema:"customerID"` | |
PartID int `schema:"partID"` | |
Price float64 `schema:"price"` | |
IsSale int `schema:"isSale"` | |
SaleStart string `schema:"sale_start"` | |
SaleEnd string `schema:"sale_end"` | |
} | |
func SetPrice(rw http.ResponseWriter, req *http.Request) { |
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
<div id="configurator" wiring="true" accessories="true" lookupstyle="alex2" buynow="false"></div> | |
<script type="text/javascript" src="http://labs.curtmfg.com/widget_v2/hitch-widget_v2.js"></script> |
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
func MysqlError(err error) (ret bool) { | |
ret = (err != nil) | |
if ret { | |
log.Println("MySQL error: ", err) | |
} | |
return | |
} | |
func (v Vehicle) GetVcdbVehicle() (Vehicle, error) { |
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 Vehicle(id){ | |
this.ID = id || 0; | |
this.BaseVehicle = {}; | |
this.Submodel = ''; | |
this.SubmodelID = 0; | |
this.Configurations = []; | |
this.Bound = false; | |
this.RegionAbbr = ''; | |
this.Parts = []; | |
this.Configurations = []; |
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
var stmt *thrsafe.Stmt | |
var err error | |
switch strings.ToLower(strings.Replace(vc.Type, " ", "", -1)) { | |
case "abbreviations": | |
stmt, err = database.GetStatement("vcdb_GetAbbreviations") | |
break | |
case "aspiration": | |
stmt, err = database.GetStatement("vcdb_GetAspiration") | |
break | |
case "bedlength": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"github.com/gin-gonic/gin" | |
"log" | |
"net/http" | |
"os" | |
"time" | |
) |
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
var stmt *thrsafe.Stmt | |
switch strings.ToLower(strings.Replace(v.Type, " ", "", -1)) { | |
case "aspiration": | |
stmt, err = database.GetStatement("vcdb_GetAspiration") | |
case "bedlength": | |
stmt, err = database.GetStatement("vcdb_GetBedLength") | |
case "bedtype": | |
stmt, err = database.GetStatement("vcdb_GetBedType") | |
case "bodytype": | |
stmt, err = database.GetStatement("vcdb_GetBodyType") |
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
<div id="configurator" wiring="true" accessories="true" lookupstyle="alex2" buynow="true" checkout="rackwarehouse" customer_id="10598601"></div> | |
<script type="text/javascript" src="http://labs.curtmfg.com/widget_v2/hitch-widget_v2.js"></script> |
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
cookbook_path ["cookbooks", "site-cookbooks"] | |
node_path "nodes" | |
role_path "roles" | |
environment_path "environments" | |
data_bag_path "data_bags" | |
#encrypted_data_bag_secret "data_bag_key" | |
knife[:berkshelf_path] = "cookbooks" |
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
<div id="configurator" wiring="true" accessories="true" lookupstyle="alex2" buynow="true" checkout="paypal" customer_email="adhinc1@gmail.com" merchant_id="adhinc1@gmail.com" customer_id="10282801"></div> | |
<script type="text/javascript" src="http://labs.curtmfg.com/widget_v2/hitch-widget_v2.js"></script> |
OlderNewer