Skip to content

Instantly share code, notes, and snippets.

View ds84182's full-sized avatar
🐺

Dwayne Slater ds84182

🐺
View GitHub Profile
@ds84182
ds84182 / .packages
Last active August 22, 2017 18:31
Testing if Dart can load packages from a gist
pkga:pkga_
pkgb:pkgb_
@ds84182
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).
#include <3ds.h>
#include <stdio.h>
#include <cstdint>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
static LightEvent test_event;
/*
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>
#include <3ds.h>
#include <stdio.h>
#include <cstdint>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
static s64 base_tick;
@ds84182
ds84182 / libwhp_example.rs
Last active July 10, 2018 03:57
¿libwhp example?
extern crate libwhp;
extern crate memmap;
use libwhp::*;
use memmap::*;
fn main() {
println!("?");
let p = Partition::new().unwrap();
@ds84182
ds84182 / main.dart
Created January 17, 2019 02:23
Flutter GPU memory growth repro
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;