This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* A really dumb Steam Idler in C for Linux systems. | |
* Might work on Mac OS too but I never tested it. | |
* | |
* /!\ You need to have Steam currently running on the computer | |
* ⁻⁻⁻ executing this software. | |
* | |
* Short version : | |
* gcc -o SteamIdler steam-idler.c libsteam_api.so | |
* | |
* Long version : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum java_return_types { | |
return_jobject, | |
return_jboolean, | |
return_jbyte, | |
return_jchar, | |
return_jshort, | |
return_jint, | |
return_jlong, | |
return_jfloat, | |
return_jdouble, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc -o test init_window.c -I. -lwayland-client -lwayland-server -lwayland-client-protocol -lwayland-egl -lEGL -lGLESv2 | |
#include <wayland-client.h> | |
#include <wayland-server.h> | |
#include <wayland-client-protocol.h> | |
#include <wayland-egl.h> // Wayland EGL MUST be included before EGL headers | |
#include "init_window.h" | |
#include "log.h" | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* UTF-32 codepoint to UTF-8 sequence converter by Miouyouyou | |
* | |
* To the extent possible under law, the person who associated CC0 with | |
* this content has waived all copyright and related or neighboring | |
* rights to this content. | |
* | |
* You should have received a copy of the CC0 legalcode along with this | |
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc -o drmgl Linux_DRM_OpenGLES.c `pkg-config --cflags --libs libdrm` -lgbm -lEGL -lGLESv2 | |
/* | |
* Copyright (c) 2012 Arvin Schnell <[email protected]> | |
* Copyright (c) 2012 Rob Clark <[email protected]> | |
* Copyright (c) 2017 Miouyouyou <Myy> <[email protected]> | |
* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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--- | |
OlderNewer