Skip to content

Instantly share code, notes, and snippets.

View scorredoira's full-sized avatar

Santiago Corredoira scorredoira

View GitHub Profile
let data = { "email_address": time.unixNano() + "@prueba.com", "status": "subscribed" };
let r = http.newRequest("POST", "https://us19.api.mailchimp.com/3.0/lists/1652876acb/members", data)
r.setBasicAuth("xx", "xx")
r.execute()
r = http.newRequest("GET", "https://us19.api.mailchimp.com/3.0/lists/1652876acb/members", data)
r.setBasicAuth("xxx", "xx")
let res = json.unmarshal(r.execute())
fmt.println(res.total_items)
import "stdlib/native"
/**
* ------------------------------------------------------------------
* Extract databases and tables from dump files
*
* usage: amura extract -f foo.sql -d bardb
* ------------------------------------------------------------------
*/
import "stdlib/native"
import * as cli from "stdlib/cmdline"
/**
* ------------------------------------------------------------------
* Extract databases and tables from dump files
*
* usage: amura extract -f foo.sql -d bardb
* ------------------------------------------------------------------
*/
{
"files": [
"/public/vendor/Chart.bundle.min.js"
],
"path": "/crud",
"title": "Entidades",
"mainMenu": "/apps/main/menus/mainMenu.json",
"settingsMenu": "/apps/main/menus/settingsMenu.json",
"type": "amura.adminview",
"children": {

Events

    class MyWidget extends S.Widget {
        constructor(w: S.WidgetInfo) {
            super(w)

            this.sendEvent("load")
        }
 }
{
"type": "amura.adminview",
"path": "/timetable2",
"title": "@@Ocupación",
"children": {
"body": {
"type": "dashboard",
"children": [
{
"type": "row",
{
"type": "a.adminview",
"path": "/timetable2",
"title": "@@Ocupación",
"children": {
"body": {
"type": "dashboard",
"children": [
{
"type": "row",
{
"path": "/cashregister",
"type": "a.adminview",
"title": "@@Caja",
"children": {
"body": {
"type": "dashboard",
"children": [
{
"type": "row",
{
"path": "/dashboard",
"type": "a.adminview",
"title": "@@Caja",
"children": {
"body": {
"type": "dashboard",
"children": [
{
"type": "row",
{
"path": "/cashregister",
"type": "a.adminview",
"title": "@@Ocupación",
"children": {
"body": {
"type": "dashboard",
"children": [
{
"type": "row",