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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import traceback | |
import threading | |
from telegram.ext import Updater, CommandHandler | |
def start(bot, update): | |
s = "" | |
for line in traceback.format_stack(): | |
s = s + line.strip() +"\n" |
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
/*Функция возвращет объект Date. В нем записано сколько времени до полуночи в часовом поясе пользователя*/ | |
function datetimeUntilMidnight() { | |
var midnight = new Date(); | |
midnight.setHours( 24 ); | |
midnight.setMinutes( 0 ); | |
midnight.setSeconds( 0 ); | |
midnight.setMilliseconds( 0 ); | |
return ( midnight - new Date() ); | |
} |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<widget xmlns = "http://www.w3.org/ns/widgets" | |
xmlns:gap = "http://phonegap.com/ns/1.0" | |
id = "com.the21.green" | |
versionCode="10" | |
version = "1.0.0"> | |
<!-- versionCode is optional and Android only --> | |
<name>com.the21.green</name> |
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
| | # of Comparisons with | | |
| Array | first | last | median | | |
| | pivot | | |
|-------------+-------+------+--------| | |
| 1 | 0 | 0 | 0 | | |
| 1 2 | 1 | 1 | 1 | | |
| 1 2 3 | 3 | 3 | 2 | | |
| 1 2 3 4 | 6 | 6 | 4 | | |
| 9 6 3 7 2 4 | 11 | 9 | 8 | | |
| 9 6 3 7 4 2 | 13 | 13 | 9 | |
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
54044 | |
14108 | |
79294 | |
29649 | |
25260 | |
60660 | |
2995 | |
53777 | |
49689 | |
9083 |
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
WorkDir = C:\Users\oleg.chumakov\Desktop\AllClients-Starforce-ap9.5.0-tr-TR-56239.9-56294.18756.11-15-12\Castle | |
ExeName = Castle.exe | |
AuthServer = http://pw.zzima.com:99/ | |
ProtocolVersion = 0.12.32 | |
Arguments = | |
[fb] | |
AppId = 137661392984435 | |
AppSecret = 040c28ebcee0cab600368fd5fbb2bddf |
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
//Current | |
Action<bool, int> handler = MuteChanged; | |
if ( handler != null ) | |
handler( mute, secondsLeft ); | |
//Modified | |
//Action<bool, int> handler = MuteChanged; | |
if ( MuteChanged != null ) | |
MuteChanged( mute, secondsLeft ); |
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
//Monster | |
staticTypes.Object = function() { | |
this.name = "noname"; | |
this.image = "default.png"; | |
this.bonuses = []; | |
this.locale = "en"; | |
this.location = "world"; | |
this.packId = "init_pack1"; | |
this.authorName = "noname"; | |
this.authorId = "noname"; |
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
using UnityEngine; | |
using System.Collections; | |
public class example : MonoBehaviour { | |
void OnGUI() { | |
Event e = Event.current; | |
if (e.isKey) | |
Debug.Log("Detected character: " + e.character); | |
} |
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 publicShowImage; | |
$(function() { | |
// ======================= imagesLoaded Plugin =============================== | |
// https://github.com/desandro/imagesloaded | |
// $('#my-container').imagesLoaded(myFunction) | |
// execute a callback when all images have loaded. | |
// needed because .load() doesn't work on cached images | |
// callback function gets image collection as argument |
NewerOlder