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
https://tour.golang.org/welcome/1 | |
http://devs.cloudimmunity.com/gotchas-and-common-mistakes-in-go-golang/ | |
https://golang.org/doc/effective_go | |
https://blog.golang.org/io2013-talk-concurrency | |
https://github.com/golang/go/wiki/CodeReviewComments | |
https://golang.org/doc/code |
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 Lvlp\MapcontBundle\Command; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\ORM\Internal\Hydration\ArrayHydrator; | |
use Doctrine\ORM\Query; | |
use Doctrine\ORM\Query\Parser; | |
use Lvlp\MapcontBundle\Repository\PresetRepository; | |
use Symfony\Component\Console\Command\Command; |
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 | |
# Recursive file convertion windows-1251 --> utf-8 | |
# Place this file in the root of your site, add execute permission and run | |
# Converts *.php, *.html, *.css, *.js files. | |
# To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command | |
find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f | | |
while read file | |
do |
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
$._data(document, "events") |
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 | |
# Get current swap usage for all running processes | |
# Erik Ljungstrom 27/05/2011 | |
# Modified by Mikko Rantalainen 2012-08-09 | |
# Pipe the output to "sort -nk3" to get sorted output | |
SUM=0 | |
OVERALL=0 | |
for DIR in `find /proc/ -maxdepth 1 -type d -regex "^/proc/[0-9]+"` | |
do | |
PID=`echo $DIR | cut -d / -f 3` |
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
lg1 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) — %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative |
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
array( | |
'select' => array( | |
"COALESCE( | |
{$this->translationClass}1.name, | |
{$this->translationClass}3.name, | |
{$this->translationClass}2.name | |
) AS name", | |
"COALESCE( | |
{$this->translationClass}1.description, | |
{$this->translationClass}3.description, |
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
Dmitriy_Garanzha |
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
MainQuery -> minimunmatch = 2 | |
LuceneComponent -> disable escaping "iphone" |
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
{!df=manufacturer_s q.op=OR}\AND Apple |
NewerOlder