Skip to content

Instantly share code, notes, and snippets.

@Miouyouyou
Miouyouyou / MopubFalcon.java
Last active December 9, 2015 23:11
Quick and dirty AdFalcon adapter for MoPub
package your.wonderful.package.name
/* First version : 2015-12-09
To instruct MoPub to use this adapter, You'll have to
- Open the 'Networks' tab
- Add a 'Custom Native Network'
- Put the full class name in 'Custom Class Event'
Example : 'your.wonderful.package.name.MopubFalcon'
When testing, be aware of the geographical restrictions you put on this
network. If you removed geographical restrictions, put them back again
@Miouyouyou
Miouyouyou / MopubBrain.java
Created December 9, 2015 23:58
Mopub adapter used to load AppBrain adds
package your.wonderful.packagename;
/* First version : 2015-10-10
That's quick and very dirty way to add AppBrain ads through MoPub.
Remember to add the appropriate rights in your local
AndroidManifest.xml
The rights are (inside <application>) :
<!-- AppBrain SDK -->
<activity
@Miouyouyou
Miouyouyou / incomplete_generic_java_caller.c
Last active December 9, 2016 17:48
Random scriblings
enum java_return_types {
return_jobject,
return_jboolean,
return_jbyte,
return_jchar,
return_jshort,
return_jint,
return_jlong,
return_jfloat,
return_jdouble,
@Miouyouyou
Miouyouyou / badge_list_parser.rb
Last active June 29, 2017 13:26
Steam Idler (Quick and Dirty version)
# -*- coding: utf-8 -*-
require 'nokogiri'
badge_title_text = "詳細を表示"
document = Nokogiri.parse(File.read("test.html"))
rows = document.css(".badge_row")
games = {}
rows.each {|row|
play_button = row.css(".btn_green_white_innerfade").first
@Miouyouyou
Miouyouyou / quick_egl_x11_test.c
Created July 2, 2017 03:38
Quick EGL X11 Display test
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <X11/X.h>
void LOG(char const * __restrict const message)
{
fprintf(stderr, "%s\n", message);
@Miouyouyou
Miouyouyou / SendMeTheForm.gs
Last active July 28, 2017 07:37
Send Google Form content by email when sent
/* VERY VERY basic code that does the job */
/* Extracts answers from a provided FormResponse that creates a text String
containing :
-8<---
Question title
Provided answer
->8---
@Miouyouyou
Miouyouyou / beta.txt
Created August 7, 2017 23:15 — forked from K-atc/beta.txt
キチガイ辞書(UTF-8)(Google IMEで使えます。Shift JISにエンコードすればMS IMEでも使えます。)
あげあげ (☝◞‸◟)☝ 顔文字
あげあげ ( ☝՞ਊ ՞)☝ 顔文字
あっあっ (◞‸◟;) 顔文字
あつい (。>﹏<) 顔文字
あわてる ヽ( ̄д ̄;)ノ=3=3=3 顔文字
いう ( ^o^)< 名詞
いしはらよしずみ 三( ◠‿◠ )そんな時にタウンページが便利なんですよ 顔文字
うーにゃー (」・ω・)」うー!(/・ω・)/にゃー 名詞
うーん :;(∩´﹏`∩);: 顔文字
うっとり ・:*:・(*´∀`*)・:*:・ 顔文字
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@Miouyouyou
Miouyouyou / drm-prime-mmap.c
Last active August 25, 2017 04:14
Works only if your DRM driver implements gem_prime_mmap and you have the right privileges
#include <stdio.h>
#include <libdrm/drm.h>
#include <stdint.h>
#include <sys/mman.h>
#include <string.h>
#include <sys/types.h>
@Miouyouyou
Miouyouyou / crash-dummy.c
Last active August 31, 2017 00:01
Freeze when accessing pdev->resources . This is due to a misuse of %pa . *%pa ARGUMENTS MUST BE PASSED BY REFERENCE*
#ifdef DUMBY_THE_EDITOR /* Used for Kdevelop */
#include <generated/autoconf.h>
#endif
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_platform.h>
/* Crashes when trying to access pdev->resources[0].