Skip to content

Instantly share code, notes, and snippets.

View milkmeowo's full-sized avatar

milkmeowo

View GitHub Profile
@milkmeowo
milkmeowo / hosts
Created July 29, 2018 08:27 — forked from cute-angelia/hosts
hosts for OpenWRT, for disable AD in xiaomi TV
127.0.0.1 api.ad.xiaomi.com
127.0.0.1 sdkconfig.ad.xiaomi.com
127.0.0.1 ad.mi.com
127.0.0.1 ad.xiaomi.com
127.0.0.1 ad1.xiaomi.com
127.0.0.1 adv.sec.miui.com
127.0.0.1 test.ad.xiaomi.com
127.0.0.1 new.api.ad.xiaomi.com
<?php
namespace Tests\Feature;
use Illuminate\Support\Collection;
use Tests\TestCase;
class HOMCollectionTest extends TestCase
{
@milkmeowo
milkmeowo / Blueprint.php
Created January 11, 2017 08:05 — forked from m4grio/Blueprint.php
Extending Laravel 5 Blueprint for MySqlConnection
<?php
namespace App\Database\Schema;
use Illuminate\Database\Schema\Blueprint as ParentBlueprint;
use Illuminate\Support\Facades\DB;
/**
* Class Blueprint
*
// 1: template strings - basics
// To do: make all tests pass, leave the asserts unchanged!
describe('a template string, is wrapped in ` (backticks) instead of \' or "', function() {
describe('by default, behaves like a normal string', function() {
it('just surrounded by backticks', function() {
var str = `like a string`;
assert.equal(str, 'like a string');