These rules are adopted from the AngularJS commit conventions.
This file contains hidden or 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
| activerehashing yes | |
| appendfsync everysec | |
| appendonly no | |
| bind 0.0.0.0 | |
| daemonize yes | |
| databases 1 | |
| dbfilename dump_1.rdb | |
| dir /var/redis/ | |
| glueoutputbuf yes | |
| hash-max-zipmap-entries 512 |
This file contains hidden or 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 | |
| protected function _editAction(Post $post) | |
| { | |
| $em = $this->get('doctrine.orm.default_entity_manager'); | |
| $factory = $this->get('form.factory'); | |
| $form = $factory->create(new PostFormType()); | |
| $form->setData($post); | |
| if ($this->get('request')->getMethod() === 'POST') { |
This file contains hidden or 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 Security\Authentication; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Symfony\Component\Security\Core\Exception\AuthenticationException; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface; | |
| class AjaxFailureHandler implements AuthenticationFailureHandlerInterface |
This file contains hidden or 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
| if [ "$1" == "--rollback" ] | |
| then | |
| echo "> Rolling back to the previous version" | |
| ssh -p $port $target " | |
| DIRS=(\`ls $parentDir | grep $childDir-[0-9] | sort -r\`); | |
| if [ \"\${DIRS[0]}\" = \"\" ]; then echo \"! No rollback dir available\"; exit; fi | |
| mv $targetDir $targetDir-tmp | |
| mv $parentDir/\${DIRS[0]} $targetDir | |
| chmod -R +w $targetDir-tmp 2>/dev/null; |
This file contains hidden or 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
| " Background colors for active vs inactive windows | |
| hi ActiveWindow guibg=#17252c | |
| hi InactiveWindow guibg=#0D1B22 | |
| hi ActiveTerminal guibg=#333333 | |
| " Call method on window enter | |
| augroup WindowManagement | |
| autocmd! | |
| autocmd WinEnter * call Handle_Win_Enter() | |
| augroup END |
This file contains hidden or 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
| # Luke's config for the Zoomer Shell | |
| # Enable colors and change prompt: | |
| autoload -U colors && colors | |
| PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " | |
| # History in cache directory: | |
| HISTSIZE=10000 | |
| SAVEHIST=10000 | |
| HISTFILE=~/.cache/zsh/history |
In the last years I've been asked multiple times about the comparison between raylib and SDL libraries. Unfortunately, my experience with SDL was quite limited so I couldn't provide a good comparison. In the last two years I've learned about SDL and used it to teach at University so I feel that now I can provide a good comparison between both.
Hope it helps future users to better understand this two libraries internals and functionality.

