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 {Plugin, PluginKey, Transaction} from "prosemirror-state"; | |
import {Decoration, DecorationSet} from "prosemirror-view"; | |
import {Mappable, Step, StepResult} from "prosemirror-transform"; | |
import {Node, Schema} from "prosemirror-model"; | |
export const cursorPluginKey = new PluginKey<PluginState>("cursorPlugin"); | |
export interface CursorPosition { | |
clientID: string | number; | |
from: number; |
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
[alias] | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
up = pull --rebase --autostash | |
ds = diff --staged | |
lg = log --oneline --graph --decorate | |
[core] | |
excludesfile = ~/.gitignore |
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
public function getCacheDir() | |
{ | |
$dir = getenv('SYMFONY__CACHE_DIR') ?: dirname(__DIR__).'/var/cache'; | |
return $dir.'/'.$this->getEnvironment(); | |
} | |
public function getLogDir() | |
{ | |
$dir = getenv('SYMFONY__LOGS_DIR') ?: dirname(__DIR__).'/var/logs'; |
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 | |
# | |
# Clipboard Editor - edit your clipboard in your favorite editor | |
set -e | |
# xclip command to execute | |
XCLIP_COMMAND="xclip -sel clipboard" # works on Xubuntu | |
# editor to use |
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 | |
<<<CONFIG | |
packages: | |
- symfony/security | |
CONFIG; | |
use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder; | |
use Symfony\Component\Security\Core\Encoder\PlaintextPasswordEncoder; | |
# $encoder = new MessageDigestPasswordEncoder(); |
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 | |
gource -a 0.1 -s 1 -i 0 |
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 Symfony\Component\Console\Application; | |
use Symfony\Component\Console\ConsoleEvents; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\EventDispatcher\EventDispatcher; | |
require_once __DIR__.'/vendor/autoload.php'; |
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 | |
# | |
# Clipboard Editor - edit your clipboard in your favorite editor | |
set -e | |
# xclip command to execute | |
XCLIP_COMMAND="xclip -sel clipboard" # works on Xubuntu | |
# editor to use |
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 |
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
This SublimeText macro will generate your PHP getters and setters automatically. | |
Just create a list of attributes you want to generate getters and setters for: | |
class User | |
{ | |
firstname | |
lastname | |
} |
NewerOlder