This file contains hidden or 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
11 | 12 | 13 | 14 | |
---|---|---|---|---|
21 | 22 | 23 | 24 | |
31 | 32 | 33 | 34 |
This file contains hidden or 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
a | b | c | d | |
---|---|---|---|---|
11 | 12 | 13 | 14 | |
21 | 22 | 23 | 24 | |
31 | 32 | 33 | 34 |
This file contains hidden or 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 super::config; | |
use config::*; | |
use futures::future::TryFutureExt; | |
use std::iter::Iterator; | |
use std::path; | |
pub static DEFAULT_ID: u64 = 0; | |
pub async fn load_or_init_api_key(token_file: &str) -> Result<ApiKey, ConfigError> { | |
let token_path = path::Path::new(token_file); |
This file contains hidden or 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 async fn load_or_init_api_key(token_file: &str) -> Result<ApiKey, ConfigError> { | |
let token_path = path::Path::new(token_file); | |
if token_path.exists() { | |
let token = ApiKey::load(token_path)?; | |
match ApiKey::load(token_path) { | |
Ok(token) => Ok(token), | |
Err(e) => { | |
eprintln!("failed to read application token file:"); | |
eprintln!("{}", e); | |
Err(e) |
This file contains hidden or 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 async fn load_or_init_api_key(token_file: &str) -> Result<ApiKey, ConfigError> { | |
let token_path = path::Path::new(token_file); | |
if token_path.exists() { | |
let token = ApiKey::load(token_path)?; | |
match ApiKey::load(token_path) { | |
Ok(token) => Ok(token), | |
Err(e) => { | |
eprintln!("failed to read application token file:"); | |
eprintln!("{}", e); | |
Err(e) |
This file contains hidden or 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
import React, { useState, useEffect } from 'react'; | |
import SushiInfo from './common/SushiInfo'; | |
import './SushiSlot.css'; | |
interface SushiSingleSlotProps { | |
sushies: SushiInfo[], | |
sushi: SushiInfo, | |
delay: number, | |
} |
This file contains hidden or 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
$ git clone https://github.com/karno/Cadena | |
Cloning into 'Cadena'... | |
fatal: unable to access 'https://github.com/karno/Cadena/': SSL certificate problem: self signed certificate in certificate chain | |
exit status 128 |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# SSRL: SuShiRo menu List acquisitor script. | |
import datetime | |
import json | |
import re | |
import sys |
This file contains hidden or 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::env; | |
use std::fs::File; | |
use std::io::prelude::*; | |
use std::io::{BufReader, BufWriter, Read, Result, SeekFrom, Write}; | |
use std::mem::transmute; | |
trait ToInt<T> { | |
fn to_int(&self) -> T; | |
} |
This file contains hidden or 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(Debug)] | |
struct Point { | |
x: f64, | |
y: f64, | |
} | |
impl std::ops::Add for Point { | |
type Output = Point; | |
fn add(self, rhs: Point) -> Point { | |
Point::new(self.x + rhs.x, self.y + rhs.y) |
NewerOlder