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 | |
function rsum($v, $w) | |
{ | |
$v += $w; | |
return $v; | |
} | |
function rmul($v, $w) | |
{ | |
$v *= $w; |
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 | |
//BAD PHP runs out of memory on 120 iterations | |
public function fire() | |
{ | |
set_time_limit(0); | |
DB::connection('mongodb')->disableQueryLog(); |
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 InfinitiWeb\Services; | |
use XMLReader; | |
use DOMDocument; | |
class AdmitADYMLParserService { | |
private $xml_reader = null; | |
private $offer = null; |
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
# Èíäåêñàöèÿ îôôåðîâ | |
source discash_offers : base_conect | |
{ | |
#sql_query_range = SELECT MIN(id), MAX(id) FROM offers | |
#sql_range_step = 500 | |
sql_query = \ | |
SELECT id, name , description , internal_id, updated_at, 'offer' as model_name \ | |
FROM offers | |
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 | |
return array ( | |
'host' => '127.0.0.1', | |
'port' => 9312, | |
'indexes' => array ( | |
'discash_offers' => array ( 'table' => 'offers', 'column' => 'id' ), | |
'discash_products' => array ( 'table' => 'products', 'column' => 'id' ), | |
) | |
); |
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 | |
/* | |
* Locale checker | |
*/ | |
\App::setLocale('ru'); | |
$languages = array('ru', 'en', 'ua', 'by', 'kz', 'md'); | |
$locale = Request::segment(1); |
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
<script> | |
/*jslint unparam: true */ | |
/*global window, $ */ | |
$(function () { | |
'use strict'; | |
// Change this to the location of your server-side upload handler: | |
function removeErrorLabels() { | |
$('label.error-message').remove(); | |
} |
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
$scope.specialist.photoUrl = false; | |
//Workaround for issue described here: https://issues.apache.org/jira/browse/CB-7131 | |
var imgLoadErr = function () { | |
$scope.specialist.photoUrl = false; | |
}; | |
var img = new Image(); | |
img.onerror = imgLoadErr; | |
img.onabort = imgLoadErr; | |
img.onload = function () { |
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/sh | |
# Just copy and paste the lines below (all at once, it won't work line by line!) | |
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
function abort { | |
echo "$1" | |
exit 1 | |
} | |
set -e |
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
{ | |
"generator-gulp-angular": { | |
"version": "0.11.0", | |
"props": { | |
"angularVersion": "~1.3.4", | |
"angularModules": [ | |
{ | |
"key": "animate", | |
"module": "ngAnimate" | |
}, |
OlderNewer