Skip to content

Instantly share code, notes, and snippets.

View agustinsivoplas's full-sized avatar

Agustin Sivoplás agustinsivoplas

  • Montevideo, UY
View GitHub Profile
@agustinsivoplas
agustinsivoplas / main.c
Created September 5, 2015 17:19
main c box
#include "framework/canvas.h"
#include "framework/mm.h"
#include "vec3.h"
#include "GL/gl.h"
#include <stdio.h>
int main(int argc, char* argv[]) {
// printf("La version de OpenGL es %s", glGetString(GL_VERSION));
//Luego de que termino de crear los objetos hago la asociacion de hijos
char* tokenHijos;
SceneNode* hijos;
SceneNode* nodeHijo = NULL;
int posHijo;
for (int i = 0; i < nObjetos; i++) {
SceneNode* scnNode = &scene->nodes[i];
if (scnNode->num_hijos > 0) {
tokenHijos = strtok(scnNode->hijos_str, ",\n");
if (tokenHijos != NULL) {
#include "../framework/color.h"
#include <math.h>
#include "Vec4.h"
#include "Sphere.h"
#include "Intersection.h"
#include "float.h"
#include "Camera.h"
#include "Light.h"
#include "Scene.h"
#include "Raytracer.h"
#include "framework/canvas.h"
#include "framework/mm.h"
#include "framework/color.h"
#include "Scene/Vec4.h"
#include "Scene/Camera.h"
#include "Scene/Light.h"
#include "Scene/Sphere.h"
#include "Scene/Scene.h"
#include "Scene/Intersection.h"
#include "Scene/Raytracer.h"
private class MyCustomAdapter extends ArrayAdapter<Country> {
private ArrayList<Country> countryList;
public MyCustomAdapter(Context context, int textViewResourceId,
ArrayList<Country> countryList) {
super(context, textViewResourceId, countryList);
this.countryList = new ArrayList<Country>();
this.countryList.addAll(countryList);
}
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
@agustinsivoplas
agustinsivoplas / activity.java
Created February 22, 2016 16:09
refreshNavigationBar method
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
refreshNavigationBar();
}
protected void refreshNavigationBar() {
List<NavigationItem> items = new ArrayList<NavigationItem>();
try {
for (final Course course : courseManager.getActiveCourses()) {
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.LightingColorFilter;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.Bitmap;
import android.widget.ImageView;
import com.bumptech.glide.request.animation.GlideAnimation;
import com.bumptech.glide.request.target.SimpleTarget;
import com.bumptech.glide.request.target.Target;
import java.io.FileOutputStream;
import java.io.IOException;
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures