Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View iArmanKarimi's full-sized avatar
☮️
Peace

Arman karimi iArmanKarimi

☮️
Peace
View GitHub Profile
@iArmanKarimi
iArmanKarimi / WomanLifeFreedom.bf
Last active December 22, 2022 21:26
Woman Life Freedom
+[--->++<]>+.-[--->+<]>---.--.------------.+++++++++++++.>++++++++++.[------->++<]>.++[--->++++<]>+.---.-.>++++++++++.[->+++++++<]>.--[++++>---<]>-.-------------..-.+++++++++++.--.
@iArmanKarimi
iArmanKarimi / readme.md
Last active December 5, 2021 18:44
Tehran air pollution default settings - شاخص آلودگی هوای تهران تنظیمات شخصی

به صفحه ی اطلاعات روزانه ی وبسایت کنترل کیفیت هوای تهران قابلیت ذخیره ی پیش فرض می دهد. می توانید کد را از این آدرس .دانلود کنید

مرجع

حذف موارد اضافه از وب سایت شاخص آلودگی هوای تهران آدرس

@iArmanKarimi
iArmanKarimi / readme.md
Last active December 5, 2021 18:07
Tehran air pollution (redundancy removal) - شاخص آلودگی هوای تهران (حذف موارد اضافه)
@iArmanKarimi
iArmanKarimi / LocalStorage.js
Last active November 30, 2022 21:50
Chrome extension localstorage high-level
const storage = {
get: async function (key) {
return new Promise(resolve => {
chrome.storage.local.get(key, e => resolve(e[key]))
})
},
set: function (key, value) {
chrome.storage.local.set({ [key]: value })
},
clear: function () {
@iArmanKarimi
iArmanKarimi / gist:b94f26a33889ea83a795bcd609ed6156
Last active December 5, 2021 12:12
setting value to the fields, properties, etc. on runtime

C# setting value to the fields, properties, etc.

It is possible to get methods, fields, properties, enums, interfaces etc. from Class.GetType(). It is also possible to change them dynamically (on runtime).

for example, when we have fields of type String and we want to set their value equal to their names:

class Base {
	public string myField;