Skip to content

Instantly share code, notes, and snippets.

View danoli3's full-sized avatar

Dan Rosser danoli3

View GitHub Profile
@danoli3
danoli3 / gist:5b39df59c10804e7f35aac25fd2a04ac
Created December 27, 2023 19:39
Setup GPG Windows to Sign Commits That Works!! With SourceTree Too
In gitbash:
PreReqs:
Git Bash: https://git-scm.com/download/win
WinGet - https://learn.microsoft.com/en-us/windows/package-manager/winget/
winget install GnuPG.GnuPG
gpg --version
gpg --default-new-key-algo rsa4096 --gen-key
OR
@danoli3
danoli3 / build_curl.md
Created May 19, 2021 23:28 — forked from bertrandmartel/build_curl.md
Build Curl for Android NDK

Build libcurl for android NDK

Libcurl requires openssl and zlib to be fully operationnal

  • Step 1 : cross compile zlib
  • Step 2 : cross compile openssl
  • Step 3 : cross compile curl with zlib/openssl external link

Prerequisites :

@danoli3
danoli3 / SmartKeyboardExampleViewController.mm
Last active December 3, 2019 08:48
iOS Smart Keyboard (BlueTooth) For Games and Apps (KeyPress / KeyReleased)
// ...
// Attach to your main ViewController that you want to respond to the iOS Smart Keyboard
- (BOOL)canBecomeFirstResponder {
return YES;
}
// Overloaded _keyCommandForEvent (UIResponder.h) // Only exists in iOS 9+ so this function can be unguarded added to iOS 8 targets
-(UIKeyCommand *)_keyCommandForEvent:(UIEvent *)event // UIPhysicalKeyboardEvent
{
@danoli3
danoli3 / gist:0055e81b9c0830b6090c
Created December 18, 2015 18:05
BFG removal log openFrameworks
e87ea78bbc90bbc24597b0d49317d605882db4e5 788480 3DModelLoaderExample.exe
c679e6dae8d7a329baf0017fade09c3576eb6d73 4627456 Assimp32.dll
3f66cfe797598f37d2647fe3538141b6a5908006 240560 CppUnit.a
09dadd785951b62e6f6ee522bef2ad37807bcae7 113920 CppUnit.a
ae29db3f0223280b8a36050a29381bba81894a16 182960 CppUnit.a
bf5e7768b0caf932d41f4e4e81b211d31c74215a 49376 CppUnit.lib
2323189c7c4bd847aaa176f7940a9120d0516363 996366 CppUnitmt.lib
e5b1afe441c6d1b4cabad6da73fbeb38186753a6 2404352 FreeImage.dll
0562f4a0ea221ccfda6f28adf93f826f62e338c3 6402560 FreeImage.dll
075f1a75cbf07d16a216e4321398893ad92039f0 1089536 FreeImage.dll
@danoli3
danoli3 / decode.c
Created September 2, 2014 05:56
LibJXR problem files
//*@@@+++@@@@******************************************************************
//
// Copyright � Microsoft Corp.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// � Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
@danoli3
danoli3 / AndroidBuildDebug
Created August 18, 2014 00:42
Android openFrameworks Build Debug script
#!/bin/sh
# The MIT License (MIT)
# Copyright (c) 2014 Daniel Rosser
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@danoli3
danoli3 / AndroidBuildRelease
Created August 18, 2014 00:41
Android openFrameworks Build Release script
#!/bin/sh
# The MIT License (MIT)
# Copyright (c) 2014 Daniel Rosser
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@danoli3
danoli3 / AndroidClean
Created August 18, 2014 00:38
Android openFrameworks Clean script
#!/bin/sh
# The MIT License (MIT)
# Copyright (c) 2014 Daniel Rosser
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@danoli3
danoli3 / AndroidManifest.xml
Created May 27, 2014 07:19
Android Manifest for internet and external
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cc.openframeworks.AndroidExample"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="auto">
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17" />
@danoli3
danoli3 / Pinhole Camera
Last active December 29, 2015 17:39
Ray Tracer Stereo Snippets
/**
* Implement the following virtual functions in your camera classes.
*/
/** Pinhole.h */
render_stereo(const World& w, float x, int pixel_offset, const std::vector<Pixel>& pixels);
/** Pinhole.cpp */