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
[user] | |
email = [email protected] | |
name = Clément Baconnier | |
[alias] | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
recent-branches = "!git for-each-ref --count=30 --sort=-committerdate refs/heads/ --format='%(refname:short)' | nl -w2 -s'> ' " | |
r = "!f() { git for-each-ref --count=30 --sort=-committerdate refs/heads/ --format='%(refname:short)' | awk -v var=\"$1\" 'NR==var' | xargs git checkout ; }; f" | |
pushf = push --force-with-lease | |
recent-branches = "!git for-each-ref --count=30 --sort=-committerdate refs/heads/ --format='%(refname:short)' | nl -w2 -s'> ' " |
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
vapor () { | |
local VAPOR_PATH=~/.config/composer/vendor/bin/vapor | |
if [[ "$*" == *"production"* ]]; then | |
/bin/echo -n "Enter \"${PWD##*/}\" to confirm: " | |
read answer | |
if [ "$answer" = ${PWD##*/} ]; then | |
$VAPOR_PATH "$@" | |
else | |
echo "Failed" | |
fi |
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
#!/bin/bash | |
CURRENT_COLOR_SCHEME=$(gsettings get org.gnome.desktop.interface color-scheme) | |
if [ "$CURRENT_COLOR_SCHEME" = "'prefer-dark'" ]; then | |
THEME="light" | |
GTK_THEME="Adwaita" | |
TERMINAL_THEME="solarized-light" | |
else | |
THEME="dark" |
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 Sortable from '@shopify/draggable/lib/sortable' | |
if (typeof window.livewire === 'undefined') { | |
throw 'Livewire Sortable Plugin: window.livewire is undefined. Make sure @livewireScripts is placed above this script include' | |
} | |
window.livewire.directive('sortable-group', (el, directive, component) => { | |
if (directive.modifiers.includes('item-group')) { | |
// This will take care of new items added from Livewire during runtime. | |
el.closest('[wire\\:sortable-group]').livewire_sortable.addContainer(el) |
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\Livewire\Auth; | |
use Illuminate\Foundation\Auth\AuthenticatesUsers; | |
use Illuminate\Foundation\Auth\ThrottlesLogins; | |
use Illuminate\Http\Request; | |
use Livewire\Component; | |
class Login extends Component |
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\Components; | |
use Livewire\Component; | |
class Flash extends Component | |
{ | |
public $message = ''; |
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
/* | |
* Will not work as expected | |
* Please refer to this: https://github.com/sharbelfs/pixi-game-template/issues/1 | |
*/ | |
import { utils, loader } from 'pixi.js' | |
import { Howler, Howl } from 'howler' | |
// import * as ResourceLoader from 'resource-loader' | |
class SoundManager extends utils.EventEmitter { |