Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Jean-David Gadina macmade

💭
I may be slow to respond.
Block or report user

Report or block macmade

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:e5c7b975c751876ed8833515213c768c
PDF_set_gstate: Access Violation - Attempt to read inaccessible data at address 0x0
----------
Process: iMazing.exe [5176]
Path: C:\Program Files\DigiDNA\iMazing\iMazing.exe
Code Type: X86-64 (Native)
Responsible: pdflib.dll
Date/Time: 2019-10-05 22:03:10
View gist:92745acd97fc6e53189d83b1728d688b
clang++ -std=c++11 -Wall -o Build/Release/Products/x86_64/ISOBMFF-Dump ISOBMFF-Dump/main.cpp Build/Release/Products/x86_64/libISOBMFF.a -I ISOBMFF/include -I Submodules/PIMPL/PIMPL/include
View Preferences.swift
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2017 Jean-David Gadina - www.xs-labs.com
*
* 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
* copies of the Software, and to permit persons to whom the Software is
@macmade
macmade / CocoaUberAlles.m
Last active Jun 29, 2017
Cocoa Uber Alles
View CocoaUberAlles.m
typedef Class Klasse;
typedef BOOL Wahrheit;
typedef SEL Wahler;
typedef NSZone NSBereich;
typedef void leer;
typedef id kennung;
#define NSObjekt NSObject
#define NSBereich NSZone
@macmade
macmade / Xcode-DTDeviceKitBase-MonotonicCopy.c
Created Mar 7, 2017
Xcode - DTDeviceKitBase - MonotonicCopy
View Xcode-DTDeviceKitBase-MonotonicCopy.c
int __ZL34DTDKCircularBufferGetMonotonicCopyP18DTDKCircularBuffer(void * arg0) {
rbx = arg0;
rcx = *(rbx + 0x10);
if (rcx == 0x0) goto loc_3a18d;
loc_3a16b:
if (rcx >= *rbx) goto loc_3a1ae;
loc_3a170:
rax = [NSData dataWithBytes:rbx + 0x18 length:rcx];
@macmade
macmade / objc_msg_lambda.cpp
Last active Feb 23, 2017
objc_msgSend - C++ Lambda
View objc_msg_lambda.cpp
#include <functional>
#include <iostream>
#include <objc/runtime.h>
#include <objc/message.h>
template< typename _R_, typename ... _T_ >
_R_ CXX_IMP( id self, SEL _cmd, _T_ ... args )
{
Class cls;
id assoc;
View cpp-fibs.cpp
#include <iostream>
template< int N >
struct Fibonacci
{
static constexpr int value = Fibonacci< N - 1 >::value + Fibonacci< N - 2 >::value;
};
template<>
struct Fibonacci< 1 >
@macmade
macmade / libgit2-coveralls.c
Last active Aug 29, 2015
libgit2 - coveralls.io infos
View libgit2-coveralls.c
/*!
* @author Jean-David Gadina
* @copyright (c) 2015, Jean-David Gadina - www.xs-labs.com
*/
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "git2.h"
@macmade
macmade / strict-aliasing-bug.c
Created Apr 2, 2014
An example of C99 strict aliasing issue...
View strict-aliasing-bug.c
#include <stdio.h>
struct s1
{
int i;
};
struct s2
{
int i;
@macmade
macmade / CF
Created Mar 8, 2014
CoreFoundation Example
View CF
{
/* First of all, we need a C array to store our dictionary keys */
CFStringRef keys[ 2 ];
/*
* Let's create the dictionary keys. First key is straightforward because
* of the CFSTR macro, while the second one is less...
*/
keys[ 0 ] = CFSTR( "key-1" );
keys[ 1 ] = CFStringCreateWithCString
You can’t perform that action at this time.