Skip to content

Instantly share code, notes, and snippets.

@stroncium
stroncium / fix_sketchup_wine.rb
Created October 7, 2021 11:06 — forked from itsanov/fix_sketchup_wine.rb
Helps fix the one-frame delay problem when running Google Sketchup in Wine
# Fixes the view each time the view changes
require 'sketchup'
def refresh
UI.start_timer(0, false) {
Sketchup.active_model.active_view.invalidate.refresh
}
end
@stroncium
stroncium / bug132.js
Created November 12, 2019 16:04
`ora` `disardStdin` bugs
const ora = require(".");
const spinner = ora();
function loop(n) {
if (n === 10) {
spinner.succeed(String(n));
spinner.stop();
return;
@stroncium
stroncium / keybase.md
Created September 20, 2019 09:13
Keybase.md

Keybase proof

I hereby claim:

  • I am stroncium on github.
  • I am stronzi (https://keybase.io/stronzi) on keybase.
  • I have a public key ASD936GRMz-1acsXn9l7dBQzn6SaRh5BLQ5p66G3h7zcnQo

To claim this, I am signing this object:

@stroncium
stroncium / gist:4563919
Last active December 11, 2015 07:08
haxe async version of test from haxe continuation
package tests;
import js.Node;
using AsyncLambda;
class TestNode implements async.Build{
@:async static function writeAll(fd:Int, content:String){
var total = 0, length = content.length;
while (total > length){
async(written = Node.fs.write(fd, content, total, length - total, null));
total+= written;