Skip to content

Instantly share code, notes, and snippets.

View SilkyPants's full-sized avatar
🤪

Danni Silk SilkyPants

🤪
View GitHub Profile
.org $8000
.org $ff00
XAML = $24 ; Last "opened" location Low
XAMH = $25 ; Last "opened" location High
STL = $26 ; Store address Low
STH = $27 ; Store address High
L = $28 ; Hex value parsing Low
H = $29 ; Hex value parsing High
YSAV = $2A ; Used to see if hex value is given
@SilkyPants
SilkyPants / main.dart
Last active April 19, 2023 11:55
Flutter Custom Paint Test
import 'package:flutter/material.dart';
import 'package:collection/collection.dart';
void main() => runApp(MyApp());
enum KnotType {
forward,
backward,
forwardBackward,
backwardForward,
10600000401
// To parse this JSON data, do
//
// final reprocessingData = reprocessingDataFromJson(jsonString);
import 'dart:convert';
ReprocessingData reprocessingDataFromJson(String str) =>
ReprocessingData.fromJson(json.decode(str));
String reprocessingDataToJson(ReprocessingData data) =>
@SilkyPants
SilkyPants / main.dart
Last active September 16, 2020 23:46
Murmur3 ported to Dart - using https://github.com/darrenkopp/murmurhash-net as a base
import 'dart:core';
import 'dart:typed_data';
import 'dart:convert';
class Murmur32
{
int c1 = 0xcc9e2d51.toUnsigned(32);
int c2 = 0x1b873593.toUnsigned(32);
int _seed;
@SilkyPants
SilkyPants / Silkypants.binds
Created February 29, 2020 23:28
Elite Dangerous controller bindings
<?xml version="1.0" encoding="UTF-8" ?>
<Root PresetName="SilkyPants" MajorVersion="3" MinorVersion="0">
<KeyboardLayout>en-US</KeyboardLayout>
<MouseXMode Value="" />
<MouseXDecay Value="0" />
<MouseYMode Value="" />
<MouseYDecay Value="0" />
<MouseReset>
<Primary Device="{NoDevice}" Key="" />
<Secondary Device="{NoDevice}" Key="" />
@SilkyPants
SilkyPants / .terminal-conf
Last active September 1, 2020 00:29
Bash/Zsh extension config for my local Development setup. Mainly aimed at Linux
# Add the following to .bashrc or .zshrc
# [[ -f ~/.terminal-conf ]] && . ~/.terminal-conf
#OS Specific exports
if [[ "$OSTYPE" == "darwin"* ]]; then
#MacOS
else
@SilkyPants
SilkyPants / Fastfile
Created October 5, 2018 01:23 — forked from dddnuts/Fastfile
Build ipa from Unity project with fastlane
fastlane_version "1.94.0"
default_platform :ios
platform :ios do
desc "Run Unity Editor tests"
lane :test_unit do
unity(
run_editor_tests: true
)
@SilkyPants
SilkyPants / setup-themes.sh
Last active November 18, 2017 23:43
My Ubuntu Gnome setup script - Arc, Numix, Paper
#!/bin/bash
# Based on script by Petr Kirpeit - https://github.com/petrk94/ApricityOS_on_Ubuntu/
# Icon Sets based in ApricityOS (numix-circle project, paper icon-theme/gtk-theme/cursor-theme)
#numix-circle project
sudo add-apt-repository ppa:numix/ppa
# Paper Theme
@SilkyPants
SilkyPants / CocoaPodHelper.cs
Last active May 26, 2017 00:46
Reworked CocoaPod helper class used in Google Play Games Services plugin for Unity, to append Podfiles instead of attempting to copy if they don't exist.
// <copyright file="CocoaPodHelper.cs" company="Google Inc.">
// Copyright (C) 2014 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software