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 test(){ | |
for(i=1;i<=100;++i){ | |
alert("Hi"); | |
} | |
} |
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 <nana/gui/wvl.hpp> | |
#include <nana/gui/widgets/label.hpp> | |
int main() | |
{ | |
using namespace nana::gui; | |
form fm; | |
label lb(fm, fm.size()); | |
lb.caption(L"Hello, World"); | |
fm.show(); |
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 <nana/gui/wvl.hpp> | |
#include <nana/gui/widgets/button.hpp> | |
void clicked(const nana::gui::eventinfo&) | |
{ | |
//When the window corresponds to fm is clicked, | |
//this function will be “called”. | |
} | |
int main() |
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
void clicked() //NO parameter defined. | |
{ | |
//When the form is clicked, | |
//this function will be “called”. | |
} |
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
fm.make_event<events::click>([]{ | |
//When the form is clicked, the object created | |
//by this lambda will be “called”. | |
}); | |
//or | |
fm.make_event<events::click>([](const eventinfo& ei){ | |
//When the form is clicked, the object created | |
//by this lambda will be “called”, and I can |
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 <nana/gui/wvl.hpp> | |
#include <nana/threads/pool.hpp> | |
void foo() | |
{ | |
//This function will be “called” in other | |
//thread that is created by thread pool. | |
} | |
int main() |
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
<?php | |
setlocale(LC_ALL, 'fa_IR'); //set your locale https://gist.github.com/jacobbubu/1836273 | |
header('Content-type: text/calendar; charset=utf-8'); | |
header("Cache-Control: no-cache, must-revalidate"); | |
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); | |
$url = "http://moodle/buggy/ical/url"; //link to moodles iCal | |
$badstr = file_get_contents($url); | |
echo iconv("utf-8", "utf-8//ignore", $badstr); | |
?> |
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
{ | |
"log" : { | |
"access" : "XRAY_ACCESS_LOGPATH", | |
"error" : "XRAY_ERROR_LOGPATH", | |
"loglevel" : "XRAY_LOG_LEVEL" | |
}, | |
"dns" : { | |
"servers" : [ "https+local://8.8.8.8/dns-query" ] | |
}, | |
"inbounds" : [ |
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
! Read more here: https://www.reddit.com/r/uBlockOrigin/wiki/solutions/twitter/#wiki_others | |
! Chrome Extension: https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm | |
! Discover more / More Tweets - Conversation view suggestions | |
twitter.com##[aria-label="Timeline: Conversation"] [data-testid="cellInnerDiv"] h2:has-text(/^(Discover more|More Tweets)$/):upward([data-testid="cellInnerDiv"]) | |
twitter.com##[aria-label="Timeline: Conversation"] [data-testid="cellInnerDiv"] h2:has-text(/^(Discover more|More Tweets)$/):upward([data-testid="cellInnerDiv"])~div | |
twitter.com##[aria-label="خط زمان: گفتگو"] [data-testid="cellInnerDiv"] h2:has-text(/^(کاوش بیشتر)$/):upward([data-testid="cellInnerDiv"]) | |
twitter.com##[aria-label="خط زمان: گفتگو"] [data-testid="cellInnerDiv"] h2:has-text(/^(کاوش بیشتر)$/):upward([data-testid="cellInnerDiv"])~div |
OlderNewer