Skip to content

Instantly share code, notes, and snippets.

View mahdi's full-sized avatar

Mahdi mahdi

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mahdi on github.
  • I am mahdi (https://keybase.io/mahdi) on keybase.
  • I have a public key whose fingerprint is EC98 351D 9960 F70A 8A4F B84D 832B D728 FCA8 A8C3

To claim this, I am signing this object:

did:3:kjzl6cwe1jw14be3qefdx04dszyla3893gu8l5csmro5bj2p6k1dngiz2guenrf
I am attesting that this GitHub handle mahdi is linked to the Tezos account tz1MKPfcnNj5fUR8SD6FooBcsKNPEGR2Ur2j for tzprofiles
sig:edsigtqCHgzwLu5UA5TX5UjGdhGTn2tZqQUZ1GnVDiwxhPbY5HDR9Fcd3aiFgP7SviapCLztCGbMnwYopgcwWdqtyDnhchiVFSq
@mahdi
mahdi / covid-stats.js
Last active October 14, 2020 16:09
Scriptable App Scripts
const COUNTRY = "UK"
const API__URL = `https://corona.lmao.ninja/v2/countries/${COUNTRY}?yesterday=true&strict=true&query=`
const API__REQ = new Request(API__URL)
const API__RES = await API__REQ.loadJSON()
const TEXT__TITLE = { default: `🦠 COVID Statistics for ${COUNTRY}`, smallWidget: "🦠 COVID Stats" }
const TEXT__TOTAL_CASES = "Total Cases"
const TEXT__CASES_TODAY = "Cases Today"
const TEXT__TOTAL_DEATHS = "Total Deaths"
Verifying my Blockstack ID is secured with the address 1FMBs9R5jdL6QvoHScAqYTf8U5A1RPsyjx https://explorer.blockstack.org/address/1FMBs9R5jdL6QvoHScAqYTf8U5A1RPsyjx
D:\Fidilio Push Notification Console\bin\Release>PushService.exe > result.txt
2016-04-07 12:09:51.PM [ERROR] APNS-CLIENT[1]: Send Batch Error: Batch ID=4, Err
or=System.IO.IOException: Unable to write data to the transport connection: An e
xisting connection was forcibly closed by the remote host. ---> System.Net.Socke
ts.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndSend(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndWrite(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.Security._SslStream.EndWrite(IAsyncResult asyncResult)
### Keybase proof
I hereby claim:
* I am mahdi on github.
* I am mahdi (https://keybase.io/mahdi) on keybase.
* I have a public key whose fingerprint is EC98 351D 9960 F70A 8A4F B84D 832B D728 FCA8 A8C3
To claim this, I am signing this object:
use DB;
DECLARE @Table NVARCHAR(MAX),
@Col NVARCHAR(MAX)
DECLARE Table_Cursor CURSOR
FOR
--پیدا کردن تمام فیلدهای متنی تمام جداول دیتابیس جاری
SELECT a.name, --table
b.name --col
@mahdi
mahdi / gist:1295194
Created October 18, 2011 11:21
Good example of a Brain Study: If you can read this you have a strong mind!
7H15 M3554G3 53RV35 7O PR0V3 H0W 0UR M1ND5 C4N D0 4M4Z1NG 7H1NG5! 1MPR3551V3 7H1NG5! 1N 7H3 B3G1NN1NG 17
WA5 H4RD BU7 N0W, 0N 7H15 LIN3 Y0UR M1ND 1S R34D1NG 17 4U70M471C4LLY W17H 0U7 3V3N 7H1NK1NG 4B0U7 17,
B3 PROUD! 0NLY C3R741N P30PL3 C4N R3AD 7H15.
PL3453 F0RW4RD 1F U C4N R34D 7H15.
@mahdi
mahdi / .gitignore
Created August 2, 2011 08:10
A .gitignore file for a .NET developer
#Junk Files
*.DS_Store
[Tt]humbs.db
#Visual Studio Files
[Oo]bj
[Bb]in
[Dd]ebug
[Bb]uild/
*.user