Skip to content

Instantly share code, notes, and snippets.

Maximiliano Burgos maxwellnewage

Block or report user

Report or block maxwellnewage

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@maxwellnewage
maxwellnewage / provinces.json
Last active Sep 20, 2019
Lista de Provincia - Localidad de Argentina con su localidad en JSON.
View provinces.json
[
{
"name" : "BUENOS AIRES",
"locations": [
"25 DE MAYO",
"30 DE AGOSTO",
"9 DE JULIO",
"ALBERTI",
"AMEGHINO",
"AMERICA",
@maxwellnewage
maxwellnewage / APIController.php
Created Jul 10, 2018
generic class for resources controllers on Laravel
View APIController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Database\QueryException;
use Illuminate\Http\Request;
class APIController extends Controller
{
public static function index($model, $relation = null)
View LTexture.h
#ifdef _H_LTEXTURE
#define _H_LTEXTURE
#include <SDL.h>
#include <iostream>
/**
* \brief Create a texture with our modifications
*/
class LTexture
View MoveButton.java
//method for move a button on the screen (min API 19)
public void moveButton(){
View buttonAnimation = findViewById(R.id.buttonAnimation);
TransitionManager.beginDelayedTransition(rlAnimation);
RelativeLayout.LayoutParams positionRules = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT,RelativeLayout.LayoutParams.WRAP_CONTENT);
positionRules.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE);
positionRules.addRule(RelativeLayout.ALIGN_PARENT_RIGHT, RelativeLayout.TRUE);
@maxwellnewage
maxwellnewage / show_hide_campo.js
Created Jan 14, 2013
oculta y muestra el campo texto con un boton
View show_hide_campo.js
$().ready(function(){
$("#mostrar").click(function(e){
$("#textbox").show();
});
$("#ocultar").click(function(e){
$("#textbox").hide();
});
@maxwellnewage
maxwellnewage / select_option.js
Created Jan 14, 2013
en base a una seleccion del select option, imprime un mensaje en el div
View select_option.js
$().ready(function(){
$("#selector").on('change', function(){
switch($("#selector option:selected").val()) {
case "1":
$("#mensaje").html("buena opcion");
break;
case "2":
$("#mensaje").html("medianamente buena opcion");
break;
@maxwellnewage
maxwellnewage / suma_resta.js
Created Jan 14, 2013
suma y resta con dos botones y los muestra en un div
View suma_resta.js
$().ready(function(){
var cont = 0;
$("#sumar").click(function(){
cont++;
$("#result").html(cont);
});
$("#restar").click(function(){
cont--;
@maxwellnewage
maxwellnewage / dialog-confirm.js
Last active Dec 11, 2015
borra entradas mediante jquery ui dialog
View dialog-confirm.js
$().ready(function () {
$("a.borrar").live('click', function (e) {
e.preventDefault();
tag_camp = $(this).parent("h3").parent(".info_suc_config");
$("#dialog-confirm").dialog({
resizable: true,
height: 140,
modal: true,
show: "slow",
title: "Desea borrar la entrada?",
@maxwellnewage
maxwellnewage / listbox_dinamico.js
Created Oct 31, 2012
Listbox que genera otro listbox
View listbox_dinamico.js
//escucha el cambio de provincia y guarda dicho valor en una variable. Luego la envia con metodo post a otro
//script php que trabaja la informacion y la devuelve generando las opciones de otro listbox
$(document).ready(function(){
$("#provincia").change(function () {
$("#provincia option:selected").each(function () {
elegido=$(this).val();
$.post("comprobar_registro.php", { elegido: elegido }, function(data){
$("#localidad").html(data);
});
You can’t perform that action at this time.