Skip to content

Instantly share code, notes, and snippets.

@dawmster
dawmster / runtime-class.m
Created October 6, 2022 13:05 — forked from mikeash/runtime-class.m
Creating a usable class purely at runtime using the Objective-C runtime APIs.
// clang -fobjc-arc -framework Foundation runtime-class.m
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
@interface Person : NSObject
- (id)initWithFirstName: (NSString *)firstName lastName: (NSString *)lastName age: (NSUInteger)age;
@dawmster
dawmster / FontNames-iOS12.swift
Created June 6, 2021 09:44 — forked from tadija/FontNames-iOS-17.4.swift
iOS - All Font Names
/*
*** Academy Engraved LET ***
AcademyEngravedLetPlain
---------------------
*** Al Nile ***
AlNile
AlNile-Bold
---------------------
*** American Typewriter ***
AmericanTypewriter

Keybase proof

I hereby claim:

  • I am dawmster on github.
  • I am dawmster (https://keybase.io/dawmster) on keybase.
  • I have a public key ASCuZ33l6Bq7o6YgyL0ulDcbuerJV4J8l81vY47hVmEVXgo

To claim this, I am signing this object:

@dawmster
dawmster / pl.yml
Created December 15, 2017 12:27
BitcoinCash.org Polish translation
---
en:
title: "Bitcoin Cash - to elektroniczna waluta peer-to-peer"
meta:
description: |
Bitcoin Cash to twarda waluta, cechująca się znikomymi opłatami. Przyszłość jawi się w jasnych barwach co do wzrostu wartości, globalalnej adopcja, niezależości oraz rozwoju.
twitter:
title: "Bitcoin Cash - Elektroniczna waluta peer-to-peer"
description: |
Bitcoin Cash to twarda waluta, cechująca się znikomymi opłatami. Przyszłość jawi się w jasnych barwach co do wzrostu wartości, globalalnej adopcja, niezależości oraz rozwoju.
@dawmster
dawmster / imgui_node_graph_test.cpp
Created May 25, 2017 10:10 — forked from ocornut/imgui_node_graph_test.cpp
Node graph editor basic demo for ImGui
// Creating a node graph editor for ImGui
// Quick demo, not production code! This is more of a demo of how to use ImGui to create custom stuff.
// Better version by @daniel_collin here https://gist.github.com/emoon/b8ff4b4ce4f1b43e79f2
// See https://github.com/ocornut/imgui/issues/306
// v0.02
// Animated gif: https://cloud.githubusercontent.com/assets/8225057/9472357/c0263c04-4b4c-11e5-9fdf-2cd4f33f6582.gif
// NB: You can use math functions/operators on ImVec2 if you #define IMGUI_DEFINE_MATH_OPERATORS and #include "imgui_internal.h"
// Here we only declare simple +/- operators so others don't leak into the demo code.
static inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x+rhs.x, lhs.y+rhs.y); }
@dawmster
dawmster / VSMac_XamarinMacApp_compileroutpu.txt
Created May 24, 2017 11:57
Visual Studio for Mac - XamarinMacApp with c++ library - compiler ouput
Kompilowanie rozwiązania: XamarinMacApp (Debug|x86)
Build started 24.05.2017 12:57:30.
__________________________________________________
Project "/Users/mikolaj/Programowanie/Tries/XamarinAndCpp/XamarinMacApp/XamarinMacApp/XamarinMacApp.csproj" (Build target(s)):
Target _DetectAppManifest:
FindItemWithLogicalName Task
Items:
Info.plist
@dawmster
dawmster / compiler_output.txt
Created May 24, 2017 11:55
Compiler output for MyCppLib Xcode project for XamarinMacApp
Showing All Messages
Build target MyCppLib of project MyCppLib with configuration Debug
CompileC DerivedData/MyCppLib/Build/Intermediates/MyCppLib.build/Debug/MyCppLib.build/Objects-normal/x86_64/MyCppLibPriv.o MyCppLib/MyCppLibPriv.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/mikolaj/Programowanie/Tries/XamarinAndCpp/MyCppLib
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu++11 -stdlib=libc++ -fmodules -fmodules-cache-path=/Users/mikolaj/Programowanie/Tries/XamarinAndCpp/MyCppLib/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/mikolaj/Programowanie/Tries/XamarinAndCpp/MyCppLib/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-m