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
Packets: | |
package Control | |
BracketHighlighter | |
SideBarEnhancements | |
Theme - Spacegray | |
jsFormat | |
GoSublime | |
Fonts: | |
https://drive.google.com/open?id=0B91XXENgXqcRcXByZWNPSHFVbmc |
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 go="~/go/bin/go" | |
export GOROOT=/home/ivan/go | |
export GOPATH=/home/ivan/go/packages | |
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin | |
export HISTTIMEFORMAT="%h %d %H:%M:%S " | |
export HISTFILESIZE=10000 | |
shopt -s histappend | |
PROMPT_COMMAND='history -a' |
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
\* @JMSAnnotation\\Type\("(.*?)"\) | |
\* @JMSAnnotation\\Type\("integer"\)\n\t \* @JmsAnnotation\\Sinse\("1.0"\) | |
use Doctrine\ORM\Mapping as ORM; | |
use JMS\Serializer\Annotation\Since; |
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
if ($request_uri ~* "\/\/") { | |
rewrite ^/(.*) $scheme://$host/$1 permanent; | |
} |
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->get('request')->getBasePath(); | |
$this->get('kernel')->getRootDir(); | |
$this->getContainer()->getParameter('kernel.root_dir') | |
$this->container->getParameter('kernel.root_dir') |
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
twig: | |
# ... | |
paths: | |
"%kernel.root_dir%/../vendor/acme/foo-bar/templates": foo_bar |
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
$bar = $foo ?? 'default'; |
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 | |
$qb = $this->container->get('doctrine.orm.entity_manager')->createQueryBuilder(); | |
$qb->update(UserAddressBookArchive::class, 'ab') | |
->set('ab.parsedAt', ':current_date') | |
->where($qb->expr()->in('ab.id', $ids)) | |
->setParameter(':current_date', new \DateTime('NOW'), Type::DATETIME) | |
->getQuery() | |
->execute(); |
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
fmt.Printf("%T\n", val) //Type of val |
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 someVar = 'hello'; | |
setTimeout((function(someVar) { | |
return function() { alert(someVar); } | |
})(someVar), 1000); | |
var someVar = 'goodbye'; |
OlderNewer