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 code includes contributions made by Bing AI. | |
* | |
* Copyright (c) [2024] [Mohammad Reza Tayyebi] | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
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 getBot() { | |
return '680616:AAOWy-Eows'; | |
} |
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
#property copyright "Tayyebi" | |
#property link "https://tradingview.com/u/tayyebi" | |
#property version "1.00" | |
int OnInit() | |
{ | |
Comment("Started " + Symbol()); | |
return(INIT_SUCCEEDED); | |
} | |
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 source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ | |
// © tayyebi | |
//@version=4 | |
study(shorttitle="TYYI", title="Tayyip Strategy", overlay=true, resolution="") | |
// strategy("Tayyebi's Strategy", overlay=true, margin_long=1, margin_short=1) | |
// BB | |
length = input(20, minval=1) |
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 program simply creats an Google Spreadsheet | |
* document stored in Google Drive, and checks for | |
* new items in hacker news, then stores them inside | |
* the document file. | |
* | |
* Please run the `SyncDataSheet()` method in order | |
* to make it done. Or add it to cron triggers. | |
* |
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
Show hidden characters
{ | |
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "scope": "javascript,typescript", |
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 childDivs = document.getElementsByClassName('status'); | |
for( i=0; i< childDivs.length; i++ ) | |
{ | |
var childDiv = childDivs[i]; | |
if (childDiv.textContent.includes("#هزلیات")) { | |
childDiv.style.display='none'; | |
} | |
} |
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
default: | |
cc ccsmtp.c -o ccsmtpd -lpthread |
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
<?php | |
// Find the domain name | |
$domain = $_SERVER['HTTP_HOST']; | |
$domain_alias = 'www.' . $_SERVER['HTTP_HOST']; | |
// Find root URL | |
$directory = rtrim ( ltrim ( __DIR__ , $_SERVER["DOCUMENT_ROOT"] ) , "core" ); | |
$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]"; | |
$root = $actual_link . '/' . $directory; |