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 s = $("input[name=secret-key]").val(); | |
| var id = $("input[name=id]").val(); | |
| $.each( $("input[name=outlet-id]"), function( key, value ) { | |
| var oid = $(value).val(); | |
| var a = { | |
| "secret-key": s, | |
| outletId: oid, | |
| id: id, |
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 getBetween($string, $start = "", $end = "", $include_start_end=false){ | |
| $pos1 = strpos($string, $start); | |
| if($pos === false) return ''; | |
| $apos1 = $pos1+strlen($start); | |
| $pos2 = strpos($string, $end, $apos1); | |
| $apos2 = $pos2+strlen($end); | |
| if($include_start_end) | |
| return substr($string, $pos1, max(0, $apos2-$pos1)); |
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 l($s) { | |
| $fp = fopen(dirname(__FILE__)."/request.log", "a+"); | |
| fputs($fp, print_r($s, true)); | |
| fputs($fp, "\r\n\r\n"); | |
| fclose($fp); | |
| } |
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
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| error_reporting(E_ALL); | |
| // |
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
| If I had the time, I'd make a rhyme |
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
| lalala |
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
| // Demo code (the actual new parser character stream implementation) | |
| function StringStream(string) { | |
| this.pos = 0; | |
| this.string = string; | |
| } | |
| StringStream.prototype = { | |
| done: function() {return this.pos >= this.string.length;}, | |
| peek: function() {return this.string.charAt(this.pos);}, |
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
| sample | |
| asd | |
| asd | |
| asd | |
| as | |
| das | |
| d | |
| as | |
| da | |
| sd |
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
| // write your bookmarklet here gdfgdfg |
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
| // write your bookmarklet here gdfgdfg fghfghfg fghfghfgh |
OlderNewer