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
<?php | |
namespace App\Http\Middleware; | |
/** | |
* When using pingpong-labs/modules, you may want to override app config when the request is made | |
* in the context of a module. | |
* | |
* This middleware will do that. For example, if the module/MyModule/Config/config.php has the code: | |
* |
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
<?php | |
use App\Entities\User; | |
class ProfileApiTest extends TestCase | |
{ | |
/** | |
* @test | |
* | |
* Get user profile. |
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
<?php | |
use Illuminate\Support\Facades\Config; | |
class TestCase extends Laravel\Lumen\Testing\TestCase | |
{ | |
/** | |
* Create a mock of a Storage disk. | |
* | |
* Usage: |
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
var getTableSize = function(db, dbName){ | |
return new Promise((resolve,reject) => { | |
if (db == null) { | |
return reject(); | |
} | |
var size = 0; | |
db = event.target.result; | |
var transaction = db.transaction([dbName]) | |
.objectStore(dbName) | |
.openCursor(); |
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
[ | |
{ | |
"id": 1, | |
"name": { | |
"first": "Alfreda", | |
"last": "Ferreira" | |
}, | |
"location": { | |
"street": "4127 Rua Mato Grosso ", | |
"city": "Bagé", |
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
[ | |
{ | |
"title": "Special Tagliatele al Pomodoro", | |
"likes": 8093, | |
"duration": "1:15", | |
"liked": true | |
}, | |
{ | |
"title": "Special Ravioli Nero di Sepia al Pomodoro", | |
"likes": 10435, |
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
{ | |
"windowTitle": "IRC.com - TEST", | |
"startupOptions.server": "irc.com" | |
} |
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
<a href="irccom://com.irc.ircclient/register/confirm?a=tiagotest3&c=eEQ78B765">TEST LINK</a> |
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
/* Pretty scrollbars */ | |
@-moz-document url-prefix() { | |
.pretty-scrollbar { | |
scrollbar-width: thin; | |
scrollbar-color: rgba(0, 0, 0, 0.5) transparent; | |
} | |
} | |
.pretty-scrollbar { | |
-ms-overflow-style: none; | |
} |