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
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |
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
.label-highlighted:before { | |
font-family: FontAwesome; | |
content: "\f006"; | |
} | |
.checkbox-highlighted:checked + .label-highlighted:before { | |
content: "\f005"; | |
} | |
.checkbox-highlighted { | |
display: none; | |
} |
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
document.querySelector('form').addEventListener('input', (event) => { | |
let match; | |
if (match = /child-(\d+)/.exec(event.target.id) && event.target.checked) { | |
document.querySelector(`#parent-${match[1]}`).checked = true; | |
} | |
if (match = /parent-(\d+)/.exec(event.target.id) && !event.target.checked) { | |
document.querySelector(`#child-${match[1]}`).checked = false; | |
} | |
}); |
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\Services\Stripe; | |
class HighOrderProxy | |
{ | |
private $class; | |
public function __construct($stripeObject) | |
{ |
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 | |
// \App\Providers\AppServiceProvider::boot | |
if ($this->app->runningInConsole() && !$this->app->runningUnitTests()) { | |
$this->dumpAllSqlQueries(); | |
} | |
private function dumpAllSqlQueries() | |
{ | |
DB::listen(function ($query) { |
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\Models; | |
abtract class Model extends \Illuminate\Database\Eloquent\Model | |
{ | |
public function getLinkAttribute(): string | |
{ | |
return route($this->getRouteName() . '.show', $this, false); | |
} |
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 sys | |
import glob | |
import json | |
from workflow import Workflow, ICON_WEB, web | |
def getProjectDirectories(): | |
with open('config.json') as data_file: | |
data = json.load(data_file) | |
projects = {} |
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\Infrastructure\Http; | |
use Exception; | |
use GuzzleHttp\Exception\RequestException; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\HttpFoundation\JsonResponse; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; |
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 parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
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
<template> | |
<component :is="props.component" v-bind="props.attributes"> | |
<slot/> | |
</component> | |
</template> | |
<script> | |
import keysIn from 'lodash/keysIn'; | |
export default { |
OlderNewer