show dbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
expect.extend({ | |
toBeISODate(received) { | |
// This regexp checks for formatting | |
if ( | |
!/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(received) | |
) { | |
return { | |
pass: false, | |
message: `Expected ${received} to be a valid ISO date string`, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const stream = require("stream"); | |
/** Simplified version of split() on npm. */ | |
const split = new stream.Transform({ | |
/** | |
* @param {Buffer | string} chunk is the data from the Readable Stream. | |
* @param {string} encoding is the file encoding, but isn't used here. | |
* @param {() => void} next is a callback function called when you finish working | |
* with this chunk. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_headers.c> | |
Header always set Access-Control-Allow-Origin: "*" | |
Header always set Access-Control-Allow-Methods: "POST, OPTIONS" | |
Header always set Access-Control-Allow-Headers: "Accept, Content-Type, Content-Length, X-Requested-With" | |
</IfModule> | |
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews -Indexes | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To disable foreign key constraints when you want to truncate a table: | |
Use FOREIGN_KEY_CHECKS | |
SET FOREIGN_KEY_CHECKS=0; | |
and remember to enable it when you’re done: | |
SET FOREIGN_KEY_CHECKS=1; | |
Or you can use DISABLE KEYS: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"version":1,"resource":"file:///Users/jose/Code/DJ/wsj_article.app/lib/article.app/lib/module/shared/universalAd.js","entries":[{"id":"XxVa.js","timestamp":1649791838204},{"id":"Kjr1.js","timestamp":1649792201355},{"id":"9aEI.js","timestamp":1649792219444},{"id":"eay2.js","timestamp":1649792606482},{"id":"lRQ9.js","timestamp":1649939832132},{"id":"CkFV.js","timestamp":1649942144865},{"id":"JLXx.js","timestamp":1649942261205},{"id":"Uisx.js","timestamp":1649943427385},{"id":"rtN0.js","timestamp":1649943483970},{"id":"C2jP.js","timestamp":1649943584188},{"id":"Qgsl.js","timestamp":1650903156594},{"id":"E4oh.js","timestamp":1650903278221},{"id":"EG8H.js","timestamp":1650903507650}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// URL: http://xxx.test/calendar?filter[id]=1&anotherparam=2 | |
$cc = app()->make('App\Http\Controllers\CalendarController'); | |
app()->call([$cc, 'getCalendarV2'], ['filter[id]'=>1, 'anotherparam' => '2']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": "success", | |
"result": [ | |
{ | |
"id": 7, | |
"name": "penna", | |
"email": "[email protected]", | |
"email_verified_at": null, | |
"locale": "es", | |
"is_admin": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Model} from '@vuex-orm/core' | |
// model declaration | |
export class Media extends Model { | |
static entity = 'medias' | |
static fields() { | |
return { | |
id: this.attr(null), | |
disk: this.string(''), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<v-app id="inspire"> | |
<v-data-table | |
v-bind:headers="headers" | |
:items="items" | |
hide-actions | |
class="elevation-1" | |
ref="sortableTable" | |
> | |
<template slot="items" slot-scope="props"> |
NewerOlder