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
use std::ptr::read_volatile; | |
pub const N_ITER: usize = 1000000000; | |
pub fn do_idle_read() -> i64 { | |
let mut r = 0; | |
for _ in 0..N_ITER { | |
r += do_idle_read_inner(); | |
} | |
r |
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
[package] | |
name = "async-ui" | |
version = "0.1.0" | |
authors = ["Dmitry Kalyanov <[email protected]>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
futures = "0.3.4" |
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
namespace HttpClientTest | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Net.Http; | |
using System.Threading; | |
class Program | |
{ | |
static void Main(string[] args) |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<ProjectGuid>{17C90BFF-D5EB-4FF4-BB67-BCCA7535E6A1}</ProjectGuid> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net472</TargetFramework> | |
<AssemblyTitle>MonoTxScope</AssemblyTitle> | |
<Product>MonoTxScope</Product> | |
<Copyright>Copyright © 2019</Copyright> | |
</PropertyGroup> | |
<ItemGroup> |
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
namespace ConsoleApplication10 | |
{ | |
using System; | |
using System.Linq; | |
using System.Reflection; | |
using System.Threading; | |
using System.Web.Caching; | |
internal class Program | |
{ |
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
namespace WebApplication2 | |
{ | |
using System; | |
using System.Threading.Tasks; | |
using System.Web; | |
public class MvcApplication : HttpApplication | |
{ | |
public MvcApplication() | |
{ |
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
1535632227632 geckodriver INFO geckodriver 0.21.0 | |
1535632227636 geckodriver INFO Listening on 127.0.0.1:26017 | |
1535632227780 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-start-debugger-server" "43839" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile.UxXQkDyAeQcH" | |
1535632250049 addons.manager DEBUG Application has been upgraded | |
1535632250063 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider", "XPIInternal"] | |
1535632250066 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"] | |
1535632250080 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm | |
1535632250082 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm | |
1535632250082 addons.manager DEBUG Starting provider: XPIProvider | |
1535632250083 addons.xpi D |
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
true |
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
tree grammar HqlSqlWalker options {language=CSharp3; output=AST; tokenVocab=Hql; ASTLabelType=IASTNode; } ; | |
public statement : selectStatement | updateStatement | |
| deleteStatement | insertStatement; | |
selectStatement : query ; | |
updateStatement : ^(UPDATE VERSIONED? fromClause setClause whereClause?); | |
deleteStatement : ^(DELETE fromClause whereClause?) ; | |
insertStatement : ^(INSERT intoClause query) ; | |
intoClause : ^(INTO path insertablePropertySpec) ; | |
insertablePropertySpec : ^(RANGE IDENT+); |
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
$ cd ~/.config/chromium/Default | |
$ sqlite3 History "select date(t0.visit_time / 1000000 - 11644473600, 'unixepoch', 'localtime'), count(*) from visits t0 join urls t1 on t0.url=t1.id and t1.url='https://twitter.com/' group by 1 order by 1 desc limit 10" | |
$ sqlite3 "Archived History" "select date(t0.visit_time / 1000000 - 11644473600, 'unixepoch', 'localtime'), count(*) from visits t0 join urls t1 on t0.url=t1.id and t1.url='https://twitter.com/' group by 1 order by 1 desc limit 10" | |
2013-06-19|1 | |
2013-06-18|8 | |
2013-06-17|35 | |
2013-06-16|3 | |
2013-06-15|11 | |
2013-06-14|30 | |
2013-06-13|34 |
NewerOlder