A service that exposes a REST API which allows to create, update, delete and retrieve answers as key-value pairs.
Tech: Go, REST, MongoDB, EventStoreDB, Docker, Kubernetes
Design Patterns: CQRS, Event Sourcing
package main | |
import ( | |
"fmt" | |
"net/http" | |
"github.com/gorilla/mux" | |
"github.com/gorilla/sessions" | |
) |
<!-- | |
# Caffeinated # | |
ToDo app made with Vue.js | |
to sample Caffeine backend (https://github.com/rehacktive/caffeine) | |
Created on Oct 24, 2021 | |
by Calogero Miraglia (https://github.com/calogxro) | |
GitHub: https://gist.github.com/calogxro/6e601e07c2a937df4418d104fb717570 |
from cpuid import * | |
def _is_set(id, reg_idx, bit): | |
regs = cpuid(id) | |
if (1 << bit) & regs[reg_idx]: | |
return "Yes" | |
else: | |
return "--" |
<?php | |
function mailpoet_subscribe($list_ids = array()) { | |
$current_user = wp_get_current_user(); | |
$helper_user = WYSIJA::get('user','helper'); | |
$helper_user->addSubscriber([ | |
'user' => [ | |
'email' => $current_user->user_email, | |
'firstname' => $current_user->user_firstname, | |
'lastname' => $current_user->user_lastname |
now = Date.now() | |
today = new Date(now) | |
today.toLocaleDateString("it-IT", {year:'numeric', month:'2-digit', day:'2-digit'}) | |
yesterday = new Date(now) | |
yesterday.setDate(yesterday.getDate() - 1) | |
yesterday.toLocaleDateString("it-IT", {year:'numeric', month:'2-digit', day:'2-digit'}) |
// http://stackoverflow.com/questions/13325158/contributing-to-open-source-bundles-from-vendor-directory | |
"repositories": [ { | |
"type": "vcs", | |
"url": "https://github.com/calog3r0/laravel-api-generator.git" | |
} ], | |
"require": { | |
// ... | |
"mitulgolakiya/laravel-api-generator": "dev-plural_option" | |
}, |