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
location.href="http://www.appannie.com/apps/google-play/app/" + new RegExp("[\\?&]id=([^&#]*)").exec(location.search)[1] + "/app-ranking/"; |
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
server { | |
listen %ip%:%httpport%; | |
listen %ip%:%httpsport% ssl; | |
server_name %host% %aliases%; | |
# if ($request_method !~* ^(GET|HEAD|POST)$ ){return 403;} | |
location ~ /\. {deny all;} | |
location / { |
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
Илья Муромец скакал три дня и три ночи, пока у него не отобрали скакалку. | |
Налоговая полиция всегда приходит на выручку. | |
Возле пивзавода была задержана банда ракоторговцев. | |
Только 5% белорусов правильно ответили на вопрос социологов «Нравится ли Вам наш Президент?» | |
Колобок долго ворочался, перед тем, как заснуть. |
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
«Фразы-поздравления» Ведущий напоминает, что Новогодняя ночь в самом разгаре, а кое-кто уже с трудом может вспомнить последнюю букву алфавита. Гостям предлагается наполнить бокалы и произнести новогодний тост, но с одним условием. Каждый присутствующий начинает фразу-поздравление с буквы А, и далее по алфавиту. Например: А — Абсолютно счастлив выпить за Новый год! Б — Будьте бдительны, скоро Новый год! В — Выпьем за дам! Особенно весело, когда игра доходит до Г, Ж, П, Ы, Ь, Ъ. Приз получает тот, кто придумал самую смешную фразу.... | |
Все гости на маленьких листочках пишут предложение | |
«А я в следующем году…» и дописывают, то, | |
что он хочет иметь или сделать в следующем году. | |
Все бумажки кладут в шапку Деда Мороза, перемешивают. | |
После этого каждый участник вынимает бумажку и читает вслух. | |
Получается очень смешно. |
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
Utils.waitElement(new String[]{"firstElementId", "secondElemntId"}); | |
public class Utils { | |
public static WebDriver driver; | |
public static WebElement waitElement(final String[] elementIds, int timeout) { | |
return (new WebDriverWait(driver, timeout)) | |
.until(new ExpectedCondition<WebElement>() { | |
@Override |
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
package utils; | |
import java.io.InputStream; | |
import java.util.Vector; | |
import android.graphics.Bitmap; | |
import android.graphics.Bitmap.Config; | |
public class GifDecoder { |
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 delete_broken_files($data_filename){ | |
if (file_exists( $data_filename ) ){ | |
$data = file($data_filename); | |
foreach( $data as $line ){ | |
$line_parts = explode(', CorruptJPEGChecker.exe', $line); | |
if (count($line_parts) > 1 && file_exists( $line_parts[0] ) ){ | |
unlink( $line_parts[0] ); | |
echo 'delete ' . $line_parts[0] . "\n"; | |
} |
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
text = (TextView) findViewById(R.id.text); | |
text.setMovementMethod(ScrollingMovementMethod.getInstance()); | |
text.setClickable(false); | |
text.setLongClickable(false); |
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 replaceLinkToIframe($text, $width = 480, $height = 390) | |
{ | |
$text = preg_replace('~ | |
# Match non-linked youtube URL in the wild. (Rev:20111012) | |
https?:// # Required scheme. Either http or https. | |
(?:[0-9A-Z-]+\.)? # Optional subdomain. | |
(?: # Group host alternatives. | |
youtu\.be/ # Either youtu.be, | |
| youtube\.com # or youtube.com followed by | |
\S* # Allow anything up to VIDEO_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
HTTP/1.1 200 OK | |
Date: Mon, 15 Oct 2012 10:53:49 GMT | |
Server: nginx/0.7.67 | |
Content-Type: application/json; charset=utf-8 | |
X-Powered-By: PHP/5.3.3-7+squeeze3 | |
Via: 1.1 duhnich.in.sports.ru | |
Transfer-Encoding: chunked | |
{ | |
"status": "success", |