NOTE: the content is out-of-date. All development is moved to the https://github.com/yurydelendik/wasmception
# locations, e.g.
export WORKDIR=~/llvmwasm; mkdir -p $WORKDIR
export INSTALLDIR=$WORKDIR
/* GraphicGlDemoActivity.java | |
* Author: Yong Bakos | |
* Since: 11/26/2012 | |
* Thanks to: | |
* Cube: http://intransitione.com/blog/create-a-spinning-cube-with-opengl-es-and-android/ | |
* OpenGL Boilerplate: http://www.jayway.com/2009/12/03/opengl-es-tutorial-for-android-part-i/ | |
*/ | |
package com.humanoriented.sudoku; | |
import java.nio.ByteBuffer; |
// We need some fuctions. | |
#include <a_samp> | |
// Declaring a var for checking a player is spectating which player. | |
new | |
gSpecTarget[MAX_PLAYERS] = INVALID_PLAYER_ID; | |
// An enum. For storing player pos (x, y, z) | |
enum E_PLAYER_POS | |
{ |
rapidjson::Document jsonDoc; | |
rapidjson::Document::AllocatorType& allocator = jsonDoc.GetAllocator(); | |
jsonDoc.SetObject(); | |
rapidjson::Value mainArr(rapidjson::kArrayType); | |
for (int i = 0; i < 6; ++i) { | |
rapidjson::Value row(rapidjson::kArrayType); |
#include <a_samp> | |
#define ITERS (10000000) | |
main() | |
{ | |
new | |
ticks = GetTickCount(); | |
for(new i = 0; i < ITERS; i++) | |
{ |
#include "rapidjson/document.h" | |
#include "rapidjson/writer.h" | |
#include <iostream> | |
#include "rapidjson/filereadstream.h" | |
#include <cstdio> | |
using namespace rapidjson; | |
int main(){ | |
FILE* fp = fopen("factory.json", "rb"); |
// Mini memory editor for Dear ImGui (to embed in your game/tools) | |
// Animated GIF: https://twitter.com/ocornut/status/894242704317530112 | |
// THE MEMORY EDITOR CODE HAS MOVED TO GIT: | |
// https://github.com/ocornut/imgui_club/tree/master/imgui_memory_editor | |
// Click "Revisions" on the Gist to see old version. |
NOTE: the content is out-of-date. All development is moved to the https://github.com/yurydelendik/wasmception
# locations, e.g.
export WORKDIR=~/llvmwasm; mkdir -p $WORKDIR
export INSTALLDIR=$WORKDIR
@Override | |
public void onTrimMemory(int level) { | |
super.onTrimMemory(level); | |
String levelString = "TRIM_MEMORY_RUNNING_MODERATE"; | |
switch (level) { | |
case TRIM_MEMORY_RUNNING_MODERATE: levelString = "TRIM_MEMORY_RUNNING_MODERATE"; break; | |
case TRIM_MEMORY_RUNNING_LOW: levelString = "TRIM_MEMORY_RUNNING_LOW"; break; | |
case TRIM_MEMORY_RUNNING_CRITICAL: levelString = "TRIM_MEMORY_RUNNING_CRITICAL"; break; |
#ifdef SHELL | |
g++ -Wall -Werror -g -I../../cclib/rapidjson/include $0 && ./a.out | |
exit 0 | |
#endif | |
// Output is: | |
// {"project":"rapidjson","stars":11} | |
// {"Name":"XYZ","Rollnumer":2,"array":["hello","world"],"Marks":{"Math":"50","Science":"70","English":"50","Social Science":"70"}} | |
// {"FromEmail":"sender@gmail.com","FromName":"Sender's name","Subject":"My subject","Recipients":[{"Email":"recipient@gmail.com"}],"Text-part":"this is my text"} |
<?php | |
$doc = file_get_contents('http://opensource.spotify.com/cefbuilds/index.html'); | |
$pattern = '/href="cef_binary_[0-9].[0-9]+.[0-9]+.[a-zA-Z0-9]+_windows32_minimal.tar.bz2"/'; | |
$cefpath = 'http://opensource.spotify.com/cefbuilds/'; | |
preg_match($pattern, $doc, $matches); | |
$cefbuildnum = $matches[0]; | |
$cefbz = substr($cefbuildnum, 6, strlen($cefbuildnum) - 7); |