Skip to content

Instantly share code, notes, and snippets.

View morcmarc's full-sized avatar

Marcell Jusztin morcmarc

View GitHub Profile
### Keybase proof
I hereby claim:
* I am morcmarc on github.
* I am morcmarc (https://keybase.io/morcmarc) on keybase.
* I have a public key ASBoBF07UFIUvrFqZPD-39kBTKn0nVwYbjIVLDYFTcl4LQo
To claim this, I am signing this object:
@morcmarc
morcmarc / main.go
Last active September 30, 2020 11:43
Unmarshaling a DynamoDB Stream event into a custom struct inside a Lambda Go function
package main
import (
"context"
"github.com/aws/aws-lambda-go/lambda"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
)
@morcmarc
morcmarc / gist:31a02dbbd9aad2955f47
Created June 3, 2015 19:08
framebuffer post processing
type Square struct {
program uint32
vbo uint32
vao uint32
vertices []float32
vrtx uint32
}
const (
squareVS = `#version 330
def configure
Deprecations.new.call
configurator = Configurator.new
paths = Rails.application.config.paths
paths.add "config/database", :with => configurator.config
paths.add "db/migrate", :with => configurator.migrate_dir
paths.add "db/seeds", :with => configurator.seeds
end
@morcmarc
morcmarc / gist:5245228
Created March 26, 2013 13:09
Resizable grid overlay in CSS. The `background-size` attribute controls the dimension.
.grid {
background-color: #222222;
background-image: -webkit-linear-gradient(#444444 1px, transparent 1px), -webkit-linear-gradient(0deg, #444444 1px, transparent 1px);
background-image: linear-gradient(#444444 1px, transparent 1px), linear-gradient(90deg, #444444 1px, transparent 1px);
background-size: 10px 10px, 10px 10px;
border: 1px solid #444444;
border-width: 0 1px 1px 0;
}