Skip to content

Instantly share code, notes, and snippets.

View byStrange's full-sized avatar
🤖
I may be slow to respond.

Rahmatullo Qosimov byStrange

🤖
I may be slow to respond.
View GitHub Profile
<?php
namespace app\components;
use Exception;
use Yii;
use yii\base\Component;
use yii\filters\AccessControl;
use yii\helpers\Html;
use yii\helpers\Url;
<?php
namespace backend\widgets;
use Yii;
use yii\base\Widget;
use yii\helpers\Url;
use ReflectionClass;
import requests
import json
import os
import random
import string
from django.conf import settings
import re
if os.environ.get("FIXIE_URL", ""):
os.environ["http_proxy"] = os.environ.get("FIXIE_URL")
@byStrange
byStrange / index.html
Created March 16, 2022 16:31
Textbox-with-emoji-picker
<!--Emojis are unicodes, so it wont have much problem showing in the mobile or mails-->
<div class="container full-width">
<div class="row justify-content-center">
<p class="lead emoji-picker-container">
<textarea type="textbox" data-emoji-input="unicode" class="form-control" placeholder="Input field" data-emojiable="true"></textarea>
</p>
</div>
</div>
@byStrange
byStrange / strange-js.js
Created January 30, 2022 13:20
Strange-js new release
// All rights reserved authors https://telegra.ph/07-05authors
// Strange.js no copyright ® 2022.01.27 registered
// version 1.0
if (window === undefined) {
console.log("Strangejs requires window and document");
}
function err(error_name, error_count) {
return `Uncaught TypeError: Failed to execute ${error_name} on document: ${error_count} arguments required`;
}