Skip to content

Instantly share code, notes, and snippets.

@NuriYuri
NuriYuri / bindings.rs
Created March 17, 2023 08:19
Test generating binding for rb-sys using cli
View bindings.rs
/* automatically generated by rust-bindgen 0.64.0 */
#![allow(missing_docs)]
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(clippy::upper_case_acronyms)]
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
@NuriYuri
NuriYuri / test_image.rb
Created November 29, 2018 20:47
Cast PSDK screen to a webbrowser
View test_image.rb
# Demo : https://www.youtube.com/watch?v=a3IF8Yu0BWM
require "webrick"
class ImageReturn < WEBrick::HTTPServlet::AbstractServlet
def do_GET request, response
response.status = 200
response['Content-Type'] = 'image/png'
response.body = $GraphicsImage.to_s
end
end