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 / 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 */
AudioChannelLayout channelLayout;
bzero(&channelLayout, sizeof(channelLayout));
channelLayout.mChannelLayoutTag = kAudioChannelLayoutTag_Mono;
int numOfChannels = 1;
if(channelLayout.mChannelLayoutTag == kAudioChannelLayoutTag_Stereo) {
numOfChannels = 2;
}
NSDictionary * audioOutputSettings = nil;
@danoli3
danoli3 / Create iOS Icons.jsx
Last active December 28, 2015 01:49 — forked from twonjosh/Create iOS Icons.jsx
IOS 7 update for the Icon generator, with proper names
// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete perminently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
//
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com
@danoli3
danoli3 / testApp.cpp
Created July 28, 2013 02:30
openframeworks 0.8 develop ofBoxPrimitive efficiency vs 0.7.4 (this one built for 0.7.4)
// TEST
#include "testApp.h"
struct Box {
ofVec3f pos;
float size;
float xScale;
float yScale;
int x;
@danoli3
danoli3 / testApp.cpp
Created July 28, 2013 02:27
openframeworks 0.8 develop ofBoxPrimitive efficiency vs 0.7.4
// TEST 0.8
#include "testApp.h"
struct Box {
ofVec3f pos;
float size;
float xScale;
float yScale;
int x;
@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.