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
-(IBAction)toggleFullScreen:(id)sender | |
{ | |
NSWindow* myWindow = self.window; | |
self.fullScreen = !self.fullScreen; | |
if (self.fullScreen) { | |
_normalWindowMask = [myWindow styleMask]; | |
_normalWindowLevel = [myWindow level]; | |
NSRect mainDisplayRect = [[NSScreen mainScreen] frame]; |
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] | |
use { | |
playdate::{graphics::Graphics, system::System, Playdate}, | |
playdate_sys::{ | |
PDButtons_kButtonA, PDSystemEvent, PDSystemEvent_kEventInit, PlaydateAPI, LCD_COLUMNS, | |
LCD_ROWS, LCD_ROWSIZE, | |
}, | |
rand::{rngs::SmallRng, Rng, SeedableRng}, | |
}; |
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 { | |
core::{ptr, slice}, | |
cstr_core::CString, | |
playdate_sys::{ | |
LCDBitmapDrawMode_kDrawModeBlackTransparent, LCDBitmapDrawMode_kDrawModeCopy, | |
LCDBitmapDrawMode_kDrawModeFillBlack, LCDBitmapDrawMode_kDrawModeFillWhite, | |
LCDBitmapDrawMode_kDrawModeInverted, LCDBitmapDrawMode_kDrawModeNXOR, | |
LCDBitmapDrawMode_kDrawModeWhiteTransparent, LCDBitmapDrawMode_kDrawModeXOR, | |
LCDSolidColor_kColorBlack, LCDSolidColor_kColorClear, LCDSolidColor_kColorWhite, | |
LCDSolidColor_kColorXOR, PDStringEncoding_kUTF8Encoding, LCD_ROWS, LCD_ROWSIZE, |
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
#[async_std::main] | |
async fn main() -> tide::Result<()> { | |
tide::log::start(); | |
let mut app = tide::new(); | |
app.with(tide::sessions::SessionMiddleware::new( | |
tide::sessions::MemoryStore::new(), | |
b"Raz is ready to play anytime, anywhere, aroo aroo", | |
)); | |
app.at("/").get(|req| show_call_list(req)); |
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(Template)] | |
#[template(path = "calls.html")] | |
struct CallsTemplate<'a> { | |
flash: &'a Option<String>, | |
call_records: &'a Vec<CallRecord>, | |
number_map: &'a HashMap<String, Kind>, | |
} | |
async fn show_call_list(mut req: tide::Request<()>) -> tide::Result<tide::Response> { | |
let flash: Option<String> = req.session().get("flash"); |
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::{bail, ensure, format_err, Error}; | |
use itertools::Itertools; | |
use std::{collections::HashMap, time::Duration}; | |
use telnet::{Telnet, TelnetEvent}; | |
use uuid::Uuid; | |
#[derive(Debug)] | |
pub struct Response { | |
pub raw_response: String, | |
action_id: String, |
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
= note: "/Users/rob/projects/f/fuchsia/prebuilt/third_party/clang/mac-x64/bin/clang++" "-m64" "-arch" "x86_64" "-L" "/Users/rob/projects/f/fuchsia/prebuilt/third_party/rust/mac-x64/lib/rustlib/x86_64-apple-darwin/lib" "host_x64/exe.unstripped/sdk_metadata_lib_test.sdk_metadata_lib_test.7rcbfp3g-cgu.0.rcgu.o" "host_x64/exe.unstripped/sdk_metadata_lib_test.sdk_metadata_lib_test.7rcbfp3g-cgu.1.rcgu.o" "host_x64/exe.unstripped/sdk_metadata_lib_test.sdk_metadata_lib_test.7rcbfp3g-cgu.10.rcgu.o" "host_x64/exe.unstripped/sdk_metadata_lib_test.sdk_metadata_lib_test.7rcbfp3g-cgu.11.rcgu.o" "host_x64/exe.unstripped/sdk_metadata_lib_test.sdk_metadata_lib_test.7rcbfp3g-cgu.12.rcgu.o" "host_x64/exe.unstripped/sdk_metadata_lib_test.sdk_metadata_lib_test.7rcbfp3g-cgu.13.rcgu.o" "host_x64/exe.unstripped/sdk_metadata_lib_test.sdk_metadata_lib_test.7rcbfp3g-cgu.14.rcgu.o" "host_x64/exe.unstripped/sdk_metadata_lib_test.sdk_metadata_lib_test.7rcbfp3g-cgu.15.rcgu.o" "host_x64/exe.unstripped/sdk_metadata_lib_test.sdk_metadata_li |
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
TsvHttpData-1.0 | |
http://www.tsuk.com/andrew/andrew_tsuk.mp4 253740291 6OSNWpGFnbs9bPzsLCreBA== |