A dashboard-style admin interface built using CSS Grid, with a Flexbox fallback for older browsers.
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
#![feature(unboxed_closures)] | |
#![feature(fn_traits)] | |
use std::collections::BTreeMap; | |
struct IncIdGen(i32); | |
impl FnOnce<()> for &mut IncIdGen { | |
type Output = i32; | |
extern "rust-call" fn call_once(self, _args: ()) -> Self::Output { | |
self.0 += 1; |
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
### Keybase proof | |
I hereby claim: | |
* I am deniskolodin on github. | |
* I am deniskolodin (https://keybase.io/deniskolodin) on keybase. | |
* I have a public key ASBGGYDyh9Rv7Ju5uQPNrnFoVm4H4odA8bhHwDhN_HzGNwo | |
To claim this, I am signing this object: |
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::marker::PhantomData; | |
use std::convert::TryInto; | |
use std::sync::Arc; | |
use std::ops::Deref; | |
use std::sync::mpsc::channel; | |
#[derive(Debug)] | |
struct MsgOne { | |
} |
- Add the RPMFusion repositories (both free and non-free) to the YUM repository directory (
/etc/yum.repos.d/
):
sudo dnf localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
- Install the patched version of FreeType with subpixel rendering enabled:
sudo dnf install -y freetype-freeworld
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
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
#[derive(Serialize, Deserialize, Debug, Clone, Default, PartialEq, Eq)] | |
struct Attributes { | |
#[serde(with = "attr")] | |
pub attr: HashMap<Request, u32>, | |
} | |
mod attr { | |
use serde::{Deserializer, Serializer}; | |
type Attr = std::collections::HashMap<super::Request, u32>; |
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
pub mod vectorize { | |
use serde::{Deserialize, Deserializer, Serialize, Serializer}; | |
use std::iter::FromIterator; | |
pub fn serialize<'a, T, K, V, S>(target: T, ser: S) -> Result<S::Ok, S::Error> | |
where | |
S: Serializer, | |
T: IntoIterator<Item = (&'a K, &'a V)>, | |
K: Serialize + 'a, | |
V: Serialize + 'a, |
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
query ($owner: String!, $after: String) { | |
user (login: $owner) { | |
sponsorshipsAsMaintainer(first: 100, after: $after, includePrivate: true) { | |
totalCount | |
nodes { | |
sponsorEntity { | |
... on User { | |
login | |
} | |
} |
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 anyhow::{Error, Result}; | |
use async_trait::async_trait; | |
use chrono::{Duration, Utc}; | |
use crb::kit::agent::{Agent, AgentSession, DoAsync, DoSync, Next}; | |
use crb::kit::agent::{RunAgent, Task}; | |
use csv::Writer; | |
use db_dump::{crates::Row, Loader}; | |
use futures::StreamExt; | |
use serde::Serialize; | |
use std::path::PathBuf; |
OlderNewer