Skip to content

Instantly share code, notes, and snippets.

View krvajal's full-sized avatar
:electron:
What's happening?

Miguel Carvajal krvajal

:electron:
What's happening?
  • @wearesinch
  • Antwerpen, Belgium
View GitHub Profile
// V1
export class NotificationsRequests extends SweepbrightCrudRequest {
constructor() {
super();
// @ts-ignore
this.setMiddlewares([parseJson, response => response.data]);
}
getAll = (attributes: { page: number }): Promise<NotificationsResponse> => {
---
layout: default
title: For Sale
section: for-sale
nofooter: true
---
{% include components.breadcrumb.html %}
<div class="c-properties">

Keybase proof

I hereby claim:

  • I am krvajal on github.
  • I am krvajal (https://keybase.io/krvajal) on keybase.
  • I have a public key ASDHNuzGcu7gUTXEEihUhMGUoazv-SGuW0EG48Ukd7duXgo

To claim this, I am signing this object:

@krvajal
krvajal / IAMCredentials.json
Last active March 11, 2019 19:07 — forked from ServerlessBot/IAMCredentials.json
Minimum credential set for Serverless Framework
{
"Statement": [
{
"Action": [
"apigateway:*",
"cloudformation:CancelUpdateStack",
"cloudformation:ContinueUpdateRollback",
"cloudformation:CreateChangeSet",
"cloudformation:CreateStack",
"cloudformation:CreateUploadBucket",
animated.DialogOverlay = animated(DialogOverlay)
animated.DialogContent = animated(DialogContent)
function NewPostDialog({ date, show, onDismiss }) {
const rootRef = useRef(null)
const transitions = useTransition(show, null, {
from: { opacity: 0, y: -10, blur: 0 },
enter: { opacity: 1, y: 0, blur: 8 },
leave: { opacity: 0, y: -10, blur: 0 },

Everything I Know About UI Routing

Ingredients

  1. Location
    1. pathname
    2. state
    3. search/query
    4. hash
  2. Path
@krvajal
krvajal / imagemagick.bash
Created August 5, 2019 19:32 — forked from bensie/imagemagick.bash
ImageMagick Static Binaries for AWS Lambda
#!/usr/bin/env bash
# Must be run on an Amazon Linux AMI that matches AWS Lambda's runtime which can be found at:
# https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html
#
# As of May 21, 2019, this is:
# Amazon Linux AMI 2018.03.0 (ami-0756fbca465a59a30)
#
# You need to prepend PATH with the folder containing these binaries in your Lambda function
# to ensure these newer binaries are used.
#include <cstdio>
class Command
{
public:
virtual void execute() = 0;
virtual ~Command();
protected:
2020-05-25T10:00:09.641Z eaa7d278-4132-469e-a458-4eafeefb8f20 ERROR {"message":"error executing the function","errorName":"Error","errorMessage":"404: {\"errors\":[{\"code\":0,\"status\":404,\"title\":\"\",\"meta\":{\"type\":\"Sweepbright\\\\Exceptions\\\\NotFoundHttpException\",\"trace\":[{\"file\":\"/var/www/noproject/releases/20200525084603/app/Exceptions/Handler.php\",\"line\":98,\"function\":\"render\",\"class\":\"Sweepbright\\\\Exceptions\\\\Renderers\\\\ModelNotFoundRenderer\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},{}]},{\"file\":\"/var/www/noproject/releases/20200525084603/app/Exceptions/Handler.php\",\"line\":66,\"function\":\"handleException\",\"class\":\"Sweepbright\\\\Exceptions\\\\Handler\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},{}]},{\"file\":\"/var/www/noproject/releases/20200525084603/vendor/laravel/framework/src
2020-05-25T10:00:09.641Z eaa7d278-4132-469e-a458-4eafeefb8f20 ERROR {"message":"error executing the function","errorName":"Error","errorMessage":"404: {\"errors\":[{\"code\":0,\"status\":404,\"title\":\"\",\"meta\":{\"type\":\"Sweepbright\\\\Exceptions\\\\NotFoundHttpException\",\"trace\":[{\"file\":\"/var/www/noproject/releases/20200525084603/app/Exceptions/Handler.php\",\"line\":98,\"function\":\"render\",\"class\":\"Sweepbright\\\\Exceptions\\\\Renderers\\\\ModelNotFoundRenderer\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},{}]},{\"file\":\"/var/www/noproject/releases/20200525084603/app/Exceptions/Handler.php\",\"line\":66,\"function\":\"handleException\",\"class\":\"Sweepbright\\\\Exceptions\\\\Handler\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},{}]},{\"file\":\"/var/www/noproject/releases/20200525084603/vendor/laravel/framework/src