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
#include <core> | |
public main() | |
{ | |
say("test pawn bot"); | |
} |
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
package main | |
import ( | |
"log" | |
"github.com/googollee/go-socket.io" | |
) | |
func pol() { | |
client, err := socketio.Dial("http://127.0.0.1:3000/pol") | |
if err != nil { |
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
html{position:relative;min-height:100%;}body{margin-bottom:60px;}#footer{position:absolute;bottom:0;width:100%;height:60px;background-color:#f5f5f5;}body>.container{padding:60px15px0;}.container{padding:60px15px0;}.container.text-muted{margin:20px0;}#footer>.container{padding-right:15px;padding-left:15px;} |
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
#include <a_samp> | |
#include <sscanf2> | |
#include <zcmd> | |
CMD:todo(playerid, params[]) | |
{ | |
new phrase[64], die[64], send[128]; | |
if(sscanf(params,"p<*>s[64]s[64]",phrase,die)) return SendClientMessage(playerid, -1, " - Èñïîëüçóéòå /todo ôðàçà*äåéñòâèå"); | |
format(send, sizeof(send), "- %s - ñêàçàë Stiven_Price, %s", phrase, die); | |
return SendClientMessage(playerid, -1, send); |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"net/url" | |
"io/ioutil" | |
"regexp" | |
"strings" |
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
stock _replace(nickname[], output[]) | |
{ | |
new nicklen = strlen(nickname); | |
for (new i; i < nicklen; i++) | |
{ | |
if (nickname[i] == '_') | |
nickname[i] = ' '; | |
} | |
format(output, 24, "%s", nickname); | |
return 1; |
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
// Автор: Zaur_Lumanov | |
// Консольная функция для упоминания всех участников беседы. | |
document.getElementsByClassName('_im_chat_members')[0].click(); | |
setTimeout(() => { | |
var _users = document.getElementsByClassName('im-member-item--name'); | |
var _text = ''; | |
for (const o of _users) { | |
_text += o.getElementsByTagName('a')[0].pathname.replace(/\/(.+)/, '@$1 (' + o.getElementsByTagName('a')[0].innerHTML.split(' ')[0] + ') '); | |
} |
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
[{"code":1,"text":"Произошла неизвестная ошибка. ","solution":"Попробуйте повторить запрос позже."}, | |
{"code":2,"text":"Приложение выключено. ","solution":"Необходимо включить приложение в настройках https://vk.com/editapp?id={Ваш API_ID} или использовать тестовый режим (test_mode=1)"}, | |
{"code":3,"text":"Передан неизвестный метод. ","solution":"Проверьте, правильно ли указано название вызываемого метода: http://vk.com/dev/methods."}, | |
{"code":4,"text":"Неверная подпись. ","solution":""}, | |
{"code":5,"text":"Авторизация пользователя не удалась. ","solution":"Убедитесь, что Вы используете верную схему авторизации."}, | |
{"code":6,"text":"Слишком много запросов в секунду. ","solution":"Задайте больший интервал между вызовами или используйте метод execute. Подробнее об ограничениях на частоту вызовов см. на странице http://vk.com/dev/api_requests."}, | |
{"code":7,"text":"Нет прав для выполнения этого действия. ","solution":"Проверьте, получены ли нужные права доступа при авторизации. Это можно сделать с помощью метода acco |
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
function Survey(e, t, i) { | |
this._clientSurveyId = e, this._surveyId = t, this._ownerId = i, this._onStateChange = [], this.state = {}, this.blocks = {} | |
} | |
Survey.prototype.stateChanged = function() { | |
for (var e = 0, t = this._onStateChange.length; t > e; e++) try { | |
this._onStateChange[e](this) | |
} catch (i) {} | |
}, Survey.prototype.onStartChange = function(e) { | |
this._onStateChange.push(e) | |
}, Survey.prototype.send = function(e, t) { |
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 Board = { | |
createTopic: function(e, o) { | |
for (var t = trim(val("bnt_title")), r = trim(val("bnt_text")), d = {}, i = cur.boardNewMedia.getMedias() || {}, a = [], s = [], n = !1, c = 0, l = i.length; l > c; ++c) { | |
var u = i[c]; | |
if (u) { | |
if ("poll" == u[0]) { | |
n = !0; | |
continue | |
} | |
s.push(u[0]), a.push(u[1]) |