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 | |
| /** | |
| * OpenPayU | |
| * | |
| * @copyright Copyright (c) 2014 PayU | |
| */ | |
| class OpenPayU_Util | |
| { | |
| /** |
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
| "use strict"; | |
| var EventEmitter = require('events').EventEmitter; | |
| var CHANGE_EVENT = 'change'; | |
| var breakpoints = [0, 768, 992, 1200, Infinity]; | |
| var indexes; | |
| var getSize = function() { | |
| // http://stackoverflow.com/a/11744120/808657 |
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 | |
| /** | |
| * glob() does not normally work if the path contains brackets "[" and "]". | |
| * For example, this will make it fail: | |
| * $files = glob("[myfolder]/*.txt"); | |
| * No error is returned, just an empty array! | |
| * We need to replace that brackets with [] prefix and [] suffix. | |
| * $files = glob("[[]myfolder[]]/*.txt"); | |
| * ta da.. | |
| **/ |
Aims to deobfuscate the result of JavascriptObfuscator free version.
To tun the script, you should have had node.js installed first. Requires node.js and following npm modules:
- esprima
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 isElectron = (window && window.process && window.process.type === 'renderer'); | |
| if (isElectron) { | |
| // keep Electron's require so we can load its modules | |
| window.electronRequire = window.require; | |
| window.electronModule = window.module; | |
| // clear window.require so Ember can load if wrapped in Electron | |
| // issue explained on https://github.com/atom/electron/issues/303 | |
| window.require = undefined; | |
| window.module = undefined; | |
| } |
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 | |
| function getGUID(){ | |
| if (function_exists('com_create_guid')){ | |
| return com_create_guid(); | |
| }else{ | |
| mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up. | |
| $charid = strtoupper(md5(uniqid(rand(), true))); | |
| $hyphen = chr(45);// "-" | |
| $uuid = chr(123)// "{" |
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 | |
| /** | |
| * Kullanicinin kullandigi isletim sistemi bilgisini alir. | |
| * | |
| * @since 2.0 | |
| */ | |
| function getOS() { | |
| $user_agent = $_SERVER['HTTP_USER_AGENT']; |
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 | |
| /** | |
| * Dizi verisinin icinde, dizi olarak verilen elemanlari arar. | |
| * | |
| * strpos fonksiyonun array surumudur. Veriler array ya da string olabilir. | |
| * Deger bulunamazsa false, aksi taktirde bulundugu pozisyon doner. | |
| * | |
| * @param array|string $haystack Icinde arama yapilacak array ya da string | |
| * @param array|string $needles Aranacak array ya da string | |
| * @param integer $offset |
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
| import ast | |
| from cStringIO import StringIO | |
| import sys | |
| INFSTR = '1e308' | |
| def interleave(inter, f, seq): | |
| seq = iter(seq) | |
| try: | |
| f(next(seq)) |

