Skip to content

Instantly share code, notes, and snippets.

View monteiro's full-sized avatar
🏠
Working from home

Hugo Monteiro monteiro

🏠
Working from home
View GitHub Profile
@monteiro
monteiro / Application.java
Last active February 14, 2017 21:54
Adding Play! Framework 2.0 (2.0.4-Java) pagination with Bootstrap (http://twitter.github.com/bootstrap/) tables using EHCache (http://ehcache.org/).
package controllers;
public class Application extends Controller {
// in cache during 1800 seconds (30 min)
@Cached(key = "pagingList", duration = 1800)
public static Result index(Integer page) {
String uuid = session("uuid");
if (uuid == null) {
uuid = java.util.UUID.randomUUID().toString();
@staltz
staltz / introrx.md
Last active November 17, 2024 01:08
The introduction to Reactive Programming you've been missing
@addyosmani
addyosmani / README.md
Last active October 17, 2024 13:41 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@CarlosEduardo
CarlosEduardo / Doctrine-Multi-Tenancy.md
Last active June 19, 2024 14:36
Multi-Tenancy (tenant) Strategy for Doctrine ORM
@BizarroDavid
BizarroDavid / send-sms.go
Last active November 10, 2022 05:14
Sending an SMS Text Message using AWS SNS service in GoLang
//assumes you have the following environment variables setup for AWS session creation
// AWS_SDK_LOAD_CONFIG=1
// AWS_ACCESS_KEY_ID=XXXXXXXXXX
// AWS_SECRET_ACCESS_KEY=XXXXXXXX
// AWS_REGION=us-west-2( or AWS_DEFAULT_REGION=us-east-1 if you are having trouble)
package main
import (
"fmt"