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
#![no_std] | |
pub struct HT16K33<I2C> { | |
address: u8, | |
i2c: I2C, | |
} | |
impl<I2C> HT16K33<I2C> | |
where | |
I2C: embedded_hal::i2c::I2c, |
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 = "bojo" | |
version = "0.1.0" | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] |
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 bytes::BytesMut; | |
use is_prime::*; | |
use serde::{Deserialize, Serialize}; | |
use serde_json::*; | |
use std::collections::HashMap; | |
use std::io; | |
use std::net::{IpAddr, Ipv4Addr, SocketAddr}; | |
use tokio::io::{AsyncReadExt, AsyncWriteExt, Interest}; | |
use tokio::net::tcp::{ReadHalf, WriteHalf}; | |
use tokio::net::{TcpListener, TcpStream}; |
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
import Input from '../components/input' | |
import * as React from 'react' | |
class AccountForm extends React.Component { | |
name: any; | |
constructor(props: any) { | |
super(props); | |
this.handleNameChange = this.handleNameChange.bind(this); | |
this.handleAccountSave = this.handleAccountSave.bind(this); |
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
public function handle(Crawler $crawler) | |
{ | |
$res = Http::withOptions([ | |
'verify' => false, | |
'debug' => true, | |
])->get(config('webcad.url')); | |
$doc = new \DOMDocument(); | |
libxml_use_internal_errors(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
#! /usr/bin/env sh | |
# Get the current space and target space index | |
current_space="$(yabai -m query --spaces --space | jq -re '.index')" | |
target_space="${1:-${current_space}}" | |
# Get the target space id so this still works when the space is moved | |
target_space_id="$(yabai -m query --spaces \ | |
| jq -re ".[] | select(.index == ${target_space}) | .id")" |
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
Feeling great. | |
Have you guys tried fasting? | |
Just ran a 5k. | |
Next year plan to run ultra marathon. | |
Btw, noise pollution reduces life span. | |
looks like `Deamon` is a valid word. https://www.urbandictionary.com/define.php?term=Daemon | |
Anybody tried the carnivorous diet? | |
If i send an invoice to google/facebook/etc will they accept it? |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |