Skip to content

Instantly share code, notes, and snippets.

View tito's full-sized avatar

Mathieu Virbel tito

View GitHub Profile
@poutyface
poutyface / gist:1119105
Created August 1, 2011 22:00
Android RegisterNatives
#include <stdio.h>
#include <android/log.h>
#include "calvals.h"
#define EXPORT __attribute__((visibility("default")))
#define LOG_TAG "native"
#define log_info(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
#define log_error(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
@magnetikonline
magnetikonline / README.md
Last active March 14, 2024 22:48
IE 7/8/9/10/11 Virtual machines from Microsoft - Linux w/VirtualBox installation notes.
from kivy.app import App
from kivy.graphics.fbo import Fbo
from kivy.uix.widget import Widget
from kivy.graphics import Color, Rectangle, GraphicException
from kivy.clock import Clock
from kivy.graphics.texture import Texture
from kivy.properties import ObjectProperty
####CEF IMPORT ####
####
@attakei
attakei / SDLUIKitDelegate+KivyAppDelegate.h
Last active May 27, 2017 23:30
To add CrashlyticsKit for Objective-C sources created by Kivy-ios(bulldozer).
//
// SDLUIKitDelegate+KivyAppDelegate.h
//
// Created by attakei on 2014/11/05.
//
//
// modify for your SDL header's path.
#import "../src/SDL/src/video/uikit/SDL_uikitappdelegate.h"
@philipstanislaus
philipstanislaus / sane-caching.nginx.conf
Last active June 19, 2024 03:05
Sample Nginx config with sane caching settings for modern web development
# Sample Nginx config with sane caching settings for modern web development
#
# Motivation:
# Modern web development often happens with developer tools open, e. g. the Chrome Dev Tools.
# These tools automatically deactivate all sorts of caching for you, so you always have a fresh
# and juicy version of your assets available.
# At some point, however, you want to show your work to testers, your boss or your client.
# After you implemented and deployed their feedback, they reload the testing page – and report
# the exact same issues as before! What happened? Of course, they did not have developer tools
# open, and of course, they did not empty their caches before navigating to your site.
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active July 2, 2024 17:58
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
"""
A simple Mandlebrot explorer in Kivy! Drag mouse to translate, multitouch-zoom to zoom, and scroll to increase/decrease number of iterations.
"""
from kivy.app import App
from kivy.core.window import Window
from kivy.uix.effectwidget import AdvancedEffectBase
from kivy.lang import Builder
from kivy.vector import Vector
SHADER = """