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
class Yangutu_Payment_Action_F2fUp extends Yangutu_Payment_Action_Simple | |
{ | |
protected $defaultReturnUrl = '/face-to-face'; | |
protected $message = 'You are now promoted in face-to-face'; | |
} |
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 (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () { | |
var Storage = function (type) { | |
function createCookie(name, value, days) { | |
var date, expires; | |
if (days) { | |
date = new Date(); | |
date.setTime(date.getTime()+(days*24*60*60*1000)); | |
expires = "; expires="+date.toGMTString(); |
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 | |
/** | |
* Zend Framework | |
* | |
* LICENSE | |
* | |
* This source file is subject to the new BSD license that is bundled | |
* with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://framework.zend.com/license/new-bsd |
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 | |
class Yangutu_Util_Xml | |
{ | |
public static function arrayToXml(array $array, $attrTypeMap = array(), $returnAsString = true) | |
{ | |
$xml = new SimpleXMLElement("<?xml version=\"1.0\"?><transaction></transaction>"); |
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 | |
# MySQL root password | |
ROOTPASS="password" | |
TIMEZONE="Europe/Moscow" | |
MYSQLPASS=`< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c12` | |
SFTPPASS=`< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c12` | |
############## |
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
import re | |
import sys | |
import random | |
import string | |
import numpy as np | |
import MySQLdb | |
import MySQLdb.cursors | |
DB_HOST = "localhost" | |
DB_USER = "root" |
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 | |
$secret = base64_decode('kAIthWJeZ3UoS4k6qLIbfA=='); | |
$label = base64_decode('L3JLyhzv0VTomcnzcDjoAhaMNCk='); | |
$seed = base64_decode('yP9lu4OUF1ah534Re/ZfcQ=='); | |
$newSeed = $label . $seed; // concat as strings | |
$length = 16; | |
// $p_sha1 |
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
autocomplete.directive('suggest', ['$compile', 'AutocompleteService', function ($compile, AutocompleteService) { | |
var cnt = 0; | |
return { | |
require: '', | |
restrict: 'A', | |
replace: true, | |
transclude: true, | |
template: '<input ng-transclude type="text" autocomplete="off" typeahead="item for item in items" />', | |
compile: function (elm, attrs) { |
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
autocomplete.directive('typeahead', ['$compile', 'AutocompleteService', function ($compile, AutocompleteService) { | |
return { | |
restrict: 'A', | |
priority: 999, | |
link: function ($scope, elm, attrs) { | |
$scope.getItems = function (filter, type, autocompletItems) { | |
var fn = AutocompleteService.getLookupFunction(type, autocompletItems); | |
return fn(filter); | |
} | |
} |
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 http = require('http'), | |
xml2js = require('xml2js'), | |
MongoClient = require('mongodb').MongoClient; | |
var reqOptions = { | |
host: "streamdb4web.securenetsystems.net", | |
port: 80, | |
path: "/player_status_update/KMYZ.xml?randStr=", | |
method: "GET" | |
}; |
OlderNewer