Skip to content

Instantly share code, notes, and snippets.

parasyte /
Last active May 6, 2020
GitHub Ice Dark+ UserCSS
View wgpu-rs fullscreen.log
[2019-09-10T06:47:33Z TRACE wgpu_native::command::allocator] recycling comb submitted in 194 when 194 is done
[2019-09-10T06:47:33Z TRACE wgpu_native::command::allocator] recycling comb submitted in 193 when 194 is done
[2019-09-10T06:47:33Z TRACE winit::platform_impl::platform::window_delegate] Triggered `windowWillEnterFullscreen:`
[2019-09-10T06:47:33Z TRACE winit::platform_impl::platform::window_delegate] Locked shared state in `window_will_enter_fullscreen`
[2019-09-10T06:47:33Z TRACE winit::platform_impl::platform::window_delegate] Unlocked shared state in `window_will_enter_fullscreen`
[2019-09-10T06:47:33Z TRACE winit::platform_impl::platform::window_delegate] Completed `windowWillEnterFullscreen:`
[2019-09-10T06:47:33Z TRACE winit::platform_impl::platform::window_delegate] Triggered `windowDidResize:`
[2019-09-10T06:47:33Z INFO shadow::framework] Resizing to PhysicalSize { width: 3840.0, height: 2400.0 }
[2019-09-10T06:47:33Z INFO wgpu_native::device] creating swap chain SwapChainDescriptor { usage
View gfx-hal quad.log
$ RUST_LOG=info cargo run --bin colour-uniform --features metal
Compiling hal-examples v0.1.0 (/Users/parasyte/other-projects/gfx/examples)
Finished dev [unoptimized + debuginfo] target(s) in 11.09s
Running `/Users/parasyte/other-projects/gfx/target/debug/colour-uniform`
Chosen: AdapterInfo { name: "AMD Radeon Pro 560", vendor: 0, device: 0, device_type: DiscreteGpu }
AdapterInfo { name: "Intel(R) HD Graphics 630", vendor: 0, device: 0, device_type: IntegratedGpu }
Limits { max_image_1d_size: 16384, max_image_2d_size: 16384, max_image_3d_size: 2048, max_image_cube_size: 16384, max_image_array_layers: 2048, max_texel_elements: 268435456, max_uniform_buffer_range: 1073741824, max_storage_buffer_range: 1073741824, max_push_constants_size: 4096, max_memory_allocation_count: 4096, max_sampler_allocation_count: 18446744073709551615, max_bound_descriptor_sets: 8, max_framebuffer_layers: 2048, max_per_stage_descriptor_samplers: 16, max_per_stage_descriptor_uniform_buffers: 31, max_per_stage_descriptor_sto
parasyte / rustup-bisect
Last active Jun 9, 2019 — forked from passcod/rustup-bisect
A tool to find out what the earliest version that your project supports is!
View rustup-bisect
#!/usr/bin/env bash
# With revisions from @parasyte for macOS compatibility
# Requires bash >= 5 (mapfile)
if [[ "$1" == "--keep-versions" ]]; then
parasyte /
Created Jun 4, 2019
Nginx bug fixes 1.11.2 ~ 1.6.0

1.11.3 (26 Jul 2016)

*) Bugfix: socket leak when using HTTP/2.

1.11.5 (11 Oct 2016)

*) Bugfix: in the $realip_remote_addr variable.

parasyte /
Last active Jul 24, 2019
Various solutions for Nth Fib

Given the sequence A000045 and an input parameter n, produce the Nth number in the sequence.

parasyte /
Last active Apr 27, 2017
How to delete Apple Java on OS X 10.11 El Capitan

Warning: Use at your own risk

I assume no responsibility for the use of these instructions, or any negative impact they may have. You probably shouldn't do this. (Unless you really, truly hate vile cruftware like Java.)

Let the games begin

  1. Reboot into Recovery Mode.
  2. Power-on and hold ⌘ + R until Apple Logo appears.
  3. If your hard drive is encrypted:
  4. Start "Restore From Time Machine Backup"
parasyte / test_x86.js
Last active Aug 29, 2015
x86_64 example using Capstone bindings for node.js
View test_x86.js
var capstone = require("capstone");
var code = new Buffer([
0x55, 0x48, 0x8b, 0x05, 0xb8, 0x13, 0x00, 0x00
var cs = new capstone.Cs(capstone.ARCH_X86, capstone.MODE_64);
cs.detail = true;
cs.disasm(code, 0x1000).forEach(function (insn) {
parasyte / jay-inheritance.js
Last active Jul 3, 2019
Jay inheritance : A *really fast* implementation of JavaScript single inheritance with mixins and a little syntactic sugar to make it go down smoothly. || DEPRECATED, See:
View jay-inheritance.js
* Copyright (c) 2014, Jay Oster
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
parasyte / menu.js
Last active Dec 29, 2015
Implementing a minimal, recursive menu system in melonJS.
View menu.js
game.MenuItem = me.GUI_Object.extend({
init : function (settings) {
this.pos = new me.Vector2d(settings.x, settings.y);
this.image = me.loader.getImage(settings.image);
this.parentMenu = settings.parentMenu;
this.subMenu = settings.subMenu;
this.callback = settings.callback; = "MenuItem";