I hereby claim:
- I am samcday on github.
- I am samcday (https://keybase.io/samcday) on keybase.
- I have a public key whose fingerprint is E0FD A450 2184 1A6F 3A2C 7AC6 614D 93F9 294C 6969
To claim this, I am signing this object:
| [package] | |
| name = "ffs-dmabuf-example" | |
| version = "0.1.0" | |
| edition = "2024" | |
| autobins = true | |
| [dependencies] | |
| usb-gadget = "0.7.6" | |
| anyhow = "1.0.100" | |
| dma-heap = "0.4.1" |
| use std::fs::File; | |
| use std::io::Write; | |
| use std::path::PathBuf; | |
| use std::sync::Arc; | |
| use std::sync::atomic::{AtomicBool, Ordering}; | |
| use std::thread::sleep; | |
| use std::time::Duration; | |
| use usbd_hid_macros::gen_hid_descriptor; | |
| use serde::ser::{Serialize, SerializeTuple, Serializer}; | |
| use usb_gadget::{Class, Config, default_udc, Gadget, Id, remove_all, Strings}; |
| #[macro_use] | |
| extern crate bencher; | |
| use bencher::Bencher; | |
| use lazy_static::lazy_static; | |
| use oxideboy::{interrupt, ppu, simple_diff, Gameboy, Model}; | |
| use snap; | |
| lazy_static! { | |
| static ref DIFF_STATES: (Vec<u8>, Vec<u8>) = { |
I hereby claim:
To claim this, I am signing this object:
| var net = require("net"); | |
| var target = 10; | |
| var created = 0; | |
| function createConnection() { | |
| if (created === target) { | |
| return; | |
| } | |
| var id = created++; |
| // Try this in Node 0.11.x. | |
| var qs = require("qs"); | |
| var query = qs.parse("test=123"); | |
| console.log(query.hasOwnProperty); | |
| console.log(Object.keys(query)); |
| require "sugar" | |
| async = require "async" | |
| fs = require "fs" | |
| path = require "path" | |
| child_process = require "child_process" | |
| FTPClient = require "./ftp" | |
| [watchPath, ftpHost, ftpUser, ftpPass, ftpPath] = process.argv.from 2 | |
| conn = new FTPClient |
| define([ | |
| "myplugin!foo" | |
| ], function(result) { | |
| console.log("plugin result:", result); | |
| }); |
| npm info it worked if it ends with ok | |
| npm info using [email protected] | |
| npm info using [email protected] | |
| npm ERR! sudon't! | |
| npm ERR! sudon't! Running npm as root is not recommended! | |
| npm ERR! sudon't! Seriously, don't do this! | |
| npm ERR! sudon't! | |
| npm info updates [email protected] | |
| npm info preupdate [email protected] | |
| npm info preinstall [email protected] |
| var benchmark = function(fn) { | |
| var startTime, time, i, times = []; | |
| for(i = 0; i < 1000; i++) { | |
| startTime = new Date().getTime(); | |
| fn(); | |
| times.push(new Date().getTime() - startTime); | |
| } | |
| var total = 0; |