Skip to content

Instantly share code, notes, and snippets.

View torlanco's full-sized avatar

Francisco Tirado torlanco

  • San juan, Puerto Rico
View GitHub Profile
Constants.REFUND_TYPE = {
PARTIAL: 'PARTIAL',
FULL: 'FULL',
BY_PLATE: 'BY_PLATE'
};
Constants.REFUND_REASON = {
[Constants.REFUND_TYPE.FULL]: {
zeroItems: {
value: '0 items',
status: Constants.ORDER_STATUS.CANCELLED,
{
"total": 4,
"pages": 1,
"results": [
{
"id": 100464,
"item_id": 211705,
"order_id": 100033,
"qty": 1,
"unit_cost": 11.47,
@torlanco
torlanco / request to Price endpoint
Last active September 5, 2018 12:05
Failed request to price endpoint
{"PickupAddress":"1124 Avenida Juan Ponce de León, San Juan, 00925, Puerto Rico","PickupCity":"San Juan","PickupState":"PR","PickupCountry":"PR","PickupZipCode":"00925","PickupCoordinates":"18.3977012,-66.052807","DestinationAddress":"1124 Avenida Doctor Ashford, San Juan, 00907, Puerto Rico","DestinationCity":"San Juan","DestinationZipCode":"00907","DestinationCoordinates":"18.4561962,-66.0726303","IsRoundTrip":false,"Ramp":false,"TripDateTime":"","PromoCode":"","InfoMessage":""}
{"Message":"An error has occurred.","ExceptionMessage":"Object reference not set to an instance of an object.","ExceptionType":"System.NullReferenceException","StackTrace":" at TransCitaMobile.WebAPI.Controllers.PriceController.<CalculateServicePrice>d__2.MoveNext() in C:\\Users\\ARosa\\Workspace-local\\TransCitaMobileAPISolution\\TransCitaMobile.WebAPI\\Controllers\\PriceController.cs:line 27\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Co
{{#if order.deliverymap}}
<img src="{{order.deliverymap}}" width="300" alt="" border="0" style="width: 100%; max-width: 300px; height: auto; display: block;" class="" mc:edit="imgHero">
{{else}}
{{order.deliveryAddress}}
{{/if}}
## Corporate Info
### Slogan
Let the Sunshine Power Your Savings
### Contact
Phone: 407-308-0099
Web: windmarhome.com
Email: florida@windmarhome.com
Facebook: WindMarFlorida
@torlanco
torlanco / gist:e14300d1274105bbec59e839cb28b2c5
Created December 19, 2017 17:03
added deleting event that fires just before removing the area
/* global window, Image, jQuery */
/**
* @author 360Learning
* @author Catalin Dogaru (https://github.com/cdog - http://code.tutsplus.com/tutorials/how-to-create-a-jquery-image-cropping-plugin-from-scratch-part-i--net-20994)
* @author Adrien David-Sivelle (https://github.com/AdrienDS - Refactoring, Multiselections & Mobile compatibility)
*/
(function($) {
$.imageArea = function(parent, id) {
var options = parent.options,
$image = parent.$image,
var query = new Parse.Query(Parse.Installation);
query.equalTo('channels', 'uc' + following.id);
return Parse.Push.send({
where: query,
data: {
message: user.get("username") + " comenzó a seguirte.",
alert: user.get("username") + " comenzó a seguirte.",
actor: user,
actorImage: (!user.get("avatar")) ? "" : user.get("avatar").url()
}
Franciscos-MacBook-Pro:uvaWebsite torlanco$ npm install
uva-website@0.1.0 /Users/torlanco/Documents/wwwReact/uvaWebsite
└─┬ react-scripts@1.0.7
├─┬ eslint@3.19.0
│ └─┬ table@3.8.3
│ └─┬ ajv@4.11.8
│ └── co@4.6.0
└─┬ fsevents@1.0.17
├── nan@2.6.2
└─┬ node-pre-gyp@0.6.36
@torlanco
torlanco / gist:9fab0d9016b9fab1fd4f392d08bd3d20
Created June 8, 2017 15:27
price endpoint expected response
{
"PickupAddress": null,
"PickupCity": "San Juan",
"PickupState": null,