Skip to content

Instantly share code, notes, and snippets.

/*
WiFi Web Server
A simple web server that shows the value of the analog input pins.
using a WiFi shield.
This example is written for a network using WPA encryption. For
WEP or WPA, change the Wifi.begin() call accordingly.
<?php
namespace App\Traits\Models;
use Illuminate\Database\Eloquent\Model;
use App\Models\Translation;
use \LaravelLocalization;
use DB;
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTranslationsTable extends Migration
{
/**
* Run the migrations.
*
(function () {
var SHOULD_SAVE = 0,
progress;
return {
events: {
'app.activated': 'init',
'ticket.save': 'saveHook',
'click .cancel_button': 'cancelButton',
/*
The MIT License (MIT)
Copyright (c) 2019 Camisa Dimona e Malhas LTDA
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
//inspired by https://www.benlcollins.com/apps-script/api-tutorial-for-beginners/
// custom menu
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Load Corona')
.addItem('Get New Data','loadAllData')
.addToUi();
}