Skip to content

Instantly share code, notes, and snippets.


Dwayne Slater ds84182

View GitHub Profile
ds84182 / main.dart
Created January 17, 2019 02:23
Flutter GPU memory growth repro
View main.dart
import 'dart:async';
import 'dart:typed_data';
import 'package:flutter/material.dart';
import 'dart:ui' as ui;
void main() => runApp(MyApp());
int xorshift32(int x) {
x ^= x << 13;
ds84182 /
Last active July 10, 2018 03:57
¿libwhp example?
extern crate libwhp;
extern crate memmap;
use libwhp::*;
use memmap::*;
fn main() {
let p = Partition::new().unwrap();
View timing_test.cpp
#include <3ds.h>
#include <stdio.h>
#include <cstdint>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
static s64 base_tick;
View thread-scheduling2.cpp
Hello World example made by Aurelio Mannara for ctrulib
This code was modified for the last time on: 12/12/2014 21:00 UTC+1
#include <3ds.h>
#include <stdio.h>
#include <cstdint>
#include <string>
ds84182 / thread-scheduling.cpp
Created November 5, 2017 00:38
Thread scheduling test. The low priority thread join is not successful, but the low priority thread has a chance to run during one of the printf calls (due to svcSendSyncRequest).
View thread-scheduling.cpp
#include <3ds.h>
#include <stdio.h>
#include <cstdint>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
static LightEvent test_event;
ds84182 / .packages
Last active August 22, 2017 18:31
Testing if Dart can load packages from a gist
View .packages
View main.dart
import 'dart:io';
import 'raja.dart' deferred as rajascript;
void main() {
final raja = new File(".raja_was_here");
if (raja.existsSync()) {
// Raja Was Here, load another script!
rajascript.loadLibrary().then((_) =>;
} else {

Keybase proof

I hereby claim:

  • I am ds84182 on github.
  • I am ds84182 ( on keybase.
  • I have a public key ASCR_7TmPyMkmLhSFYVLnn5rx9T_MwVdB6Vjg7xBhJXNBwo

To claim this, I am signing this object:

View hello_triangle.dart
import "package:sfml/sfml.dart" as sf;
import 'dart:typed_data';
const sf.Attribute attrPosition = const sf.Attribute("attrPosition", 0);
const List<sf.Attribute> attributes = const [
const sf.AttributeFormat attrFmtPos2D = const sf.AttributeFormat(sf.AttributeType.Float, 2);
main() async {
ds84182 / fuckit.lua
Created April 21, 2016 02:04
fuckit.lua makes sure that your Lua code always runs to the end of file despite any errors that occur
View fuckit.lua
local info = debug.getinfo(1)
local startingLine, endingLine = info.currentline
local oursource = info.source
-- This GC stuff should probably work when it should except for things that can't get collected
local bubbles = setmetatable({}, {__gc="kv"})
local bubbleContent = setmetatable({}, {__gc="kv"})
local bubbleExists = setmetatable({}, {__gc="k"})