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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Threading.Tasks; | |
| using System.Web.Http; | |
| using API.Models; | |
| using System.Diagnostics; |
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
| package com.curt.images; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Bitmap.Config; | |
| import android.graphics.Canvas; | |
| import android.graphics.Paint; | |
| import android.graphics.PorterDuff.Mode; | |
| import android.graphics.PorterDuffXfermode; | |
| import android.graphics.Rect; | |
| import android.graphics.RectF; |
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
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservice.vindecoder.polk.com/"> | |
| <soapenv:Header/> | |
| <soapenv:Body> | |
| <web:decodeVin> | |
| <VinRequest> | |
| <vin>1FAHP2FW5AG100583</vin> | |
| </VinRequest> | |
| <RequestedFields>MDL_YR,MAK_NM,MDL_DESC,ACES_VEHICLE_ID,ACES_BASE_VEHICLE</RequestedFields> | |
| </web:decodeVin> | |
| </soapenv:Body> |
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
| <?xml version='1.0' encoding='UTF-8'?> | |
| <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> | |
| <S:Body> | |
| <ns2:decodeVinResponse xmlns:ns2="http://webservice.vindecoder.polk.com/"> | |
| <VinResponse> | |
| <vin>1FAHP2FW5AG100583</vin> | |
| <returnCode>0</returnCode> | |
| <correctedVin></correctedVin> | |
| <errorBytes> </errorBytes> | |
| <fields name="MAK_NM">FORD</fields> |
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
| return (from mo in db.vcdb_Models | |
| join bv in db.BaseVehicles on mo.ID equals bv.MakeID | |
| join v in db.vcdb_Vehicles on bv.ID equals v.BaseVehicleID | |
| join vp in db.vcdb_VehicleParts on v.ID equals vp.VehicleID | |
| join ma in db.vcdb_Makes on bv.MakeID equals ma.ID | |
| where bv.YearID.Equals(year.Year) && ma.MakeName.Equals(make.Make) | |
| select new VehicleModel { | |
| Model = mo.ModelName | |
| }).Distinct().OrderBy(x => x.Model).ToList(); |
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
| server { | |
| listen 80; ## listen for ipv4; this line is default and implied | |
| #listen [::]:80 default ipv6only=on; ## listen for ipv6 | |
| access_log logs/localhost.access.log; | |
| # Make site accessible from http://localhost/ | |
| server_name ninnemana.xen.prgmr.com; | |
| index index.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
| package code | |
| import org.squeryl._ | |
| import org.squeryl.adapters.MSSQLServer | |
| import org.squeryl.PrimitiveTypeMode._ | |
| object Main { | |
| def main(args: Array[String]) { |
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
| use CurtDev | |
| create table ApiKeyType( | |
| id uniqueidentifier default(newid()) primary key not null, | |
| type varchar(500), | |
| date_added datetime default(GETDATE()) not null | |
| ) | |
| go | |
| create table ApiModules( |
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
| $.support.cors = true; | |
| var req = $.ajax({ | |
| url: 'http://api.example.com', | |
| type: 'GET', | |
| dataType: 'json', | |
| data: {}, | |
| beforeSend: function(xhr,settings){ | |
| }, | |
| success: function(resp, textStatus, xhr){ |
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
| package controllers | |
| import ( | |
| "gophers/plate" | |
| "html/template" | |
| "net/http" | |
| "time" | |
| ) | |
| func Index(w http.ResponseWriter, r *http.Request) { |