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 | |
| /** | |
| * Created by PhpStorm. | |
| * User: morontt | |
| * Date: 29.07.14 | |
| * Time: 0:32 | |
| */ | |
| namespace PuperSoft\FrontendBundle\EventListener; |
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 | |
| class QuestionController extends BaseController | |
| { | |
| /** | |
| * @param Request $request | |
| * @return JsonResponse | |
| */ | |
| public function saveSessionAction(Request $request) |
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
| $(function () { | |
| var hotel_image = $('#hotelImage'); | |
| var current_index = 0; | |
| var gal_height = 370; | |
| var gal_width = 570; | |
| var ratio = gal_width / gal_height; | |
| function imageHandler(current_element, url) { | |
| var image; |
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
| /** | |
| * @param ${TYPE_HINT} $${PARAM_NAME} | |
| #if (${STATIC} != "static") | |
| * @return $this | |
| #end | |
| */ | |
| public ${STATIC} function set${NAME}($${PARAM_NAME}) | |
| { | |
| #if (${STATIC} == "static") | |
| self::$${FIELD_NAME} = $${PARAM_NAME}; |
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 XtrCommunity\QuBundle\DataFixtures\ORM; | |
| use Doctrine\Common\DataFixtures\AbstractFixture; | |
| use Doctrine\Common\DataFixtures\OrderedFixtureInterface; | |
| use Doctrine\Common\Persistence\ObjectManager; | |
| use XtrCommunity\QuBundle\Entity\Tag; | |
| class LoadTagData extends AbstractFixture implements OrderedFixtureInterface |
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
| script/build | |
| Node: v0.10.33 | |
| npm: v1.4.10 | |
| Installing build modules... | |
| Usage: gyp_main.py [options ...] [build_file ...] | |
| gyp_main.py: error: no such option: --no-parallel | |
| gyp ERR! configure error | |
| gyp ERR! stack Error: `gyp` failed with exit code: 2 | |
| gyp ERR! stack at ChildProcess.onCpExit (/home/morontt/libs/atom/build/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16) |
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
| #!/bin/bash | |
| # mount Popcorn Hour A300 | |
| # nfs | |
| sudo mount -t nfs -o vers=3 192.168.1.69:/share ~/nfs/A300 |
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
| var t = []; | |
| for (var i = 0; i < 43; i++) { | |
| (function (idx) { | |
| $.ajax({ | |
| data: data, | |
| success: function (rez) { | |
| t[idx] = rez; | |
| } | |
| }); | |
| })(i); |
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
| export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql93/bin:/usr/local/go/bin:$PATH | |
| source ~/.git-prompt.sh | |
| export GOPATH=~/gocode | |
| #color for terminal | |
| export PS1="\[\e]0;\u@\h: \w\a\]\[\033[01;36m\]\u@\h \[\033[01;33m\]\w\[\033[33m\]\$(__git_ps1 ' git:(%s)')\n\[\033[01;35m\]\$ \[\033[00m\]" | |
| source ~/.git-completion.bash |
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
| <VirtualHost *:80> | |
| ServerName example.loc | |
| ServerAlias www.example.com | |
| DocumentRoot "/path/to/httpdocs/web" | |
| ErrorLog "/path/to/logs/error.log" | |
| CustomLog "/path/to/logs/access.log" common | |
| <Directory "/path/to/httpdocs/web"> | |
| DirectoryIndex index.php index.html | |
| Options FollowSymLinks |