Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Working from home

Julian David juliandavidmr

:octocat:
Working from home
View GitHub Profile
@juliandavidmr
juliandavidmr / Crear.cshtml
Created January 8, 2017 21:03
Mostrar Select (html) con datos a partir de un DataTable en C# & Razor
View Crear.cshtml
<div class="">
@Html.LabelFor(model => model.griv_idgrupoinv, htmlAttributes: new { @class = "" })
@Html.DropDownList("griv_idgrupoinv", new SelectList(ViewBag.GrupoInv, "Text", "Value"), new { @class = "form-control" })
</div>
@juliandavidmr
juliandavidmr / HomeController.cs
Created February 17, 2017 01:07
Implementacion de API OAuth Chaira en MVC Razor C#. Iniciar sesión y obtener información basica del usuario logeado.
View HomeController.cs
using System.Web.Mvc;
using Helpers;
using System.Web.Security;
namespace Project.Controllers {
[AllowAnonymous]
public class HomeController : Controller {
[HttpGet]
@sqlstunts
sqlstunts / refactor_grt.py
Created September 29, 2015 10:43
Refactor plugin for MySQL Workbench.
View refactor_grt.py
# import the wb module
from wb import *
# import the grt module
import grt
# import the mforms module for GUI stuff
import mforms
# define this Python module as a GRT module
ModuleInfo = DefineModule(name="Refactor", author="mjlmo", version="0.1")
View guia-contribución.md

Guía de colaboración para proyectos

Objetivo

Dado que existen numerosos desarrolladores contribuyendo a varios proyectos en paralelo, he creado esta guía para esclarecer el proceso que llevamos a cabo para manejar el modelo de branching. Para esto voy a listar una serie de pasos que es proceso adecuado que debemos llevar a cabo una vez que nos llega una tarea.

Comencemos

Después de aceptar la tarea revisando que todo esté en orden, vamos a nuestra terminal y nos pasamos a la rama de develop.

@juliandavidmr
juliandavidmr / stop_iis_windows.bash
Created October 8, 2017 16:59
Start or Stop the Web Server (IIS 7)
View stop_iis_windows.bash
# Stop
net stop WAS
# Start
# net start W3SVC
@juliandavidmr
juliandavidmr / example.markdown
Created October 25, 2017 00:24
Simple component of Angular 2/4 with QuillJS (wysiwyg)
View example.markdown

Example

View

Content html

<wysiwyg (onChangeText)="onChangeText($event)"></wysiwyg>

Content typescript

View client_grades.php
<?php
// This file is NOT a part of Moodle - http://moodle.org/
//
// This client for Moodle 2 is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
/// SETUP - NEED TO BE CHANGED
@xinranxiao
xinranxiao / app.js
Created December 4, 2013 15:44
Boilerplate Express Node.js App with Socket.io.
View app.js
/**
* Module dependencies.
*/
var express = require('express');
var routes = require('./routes');
var user = require('./routes/user');
var http = require('http');
var path = require('path');
@lokeshjain2008
lokeshjain2008 / fcm_config_files_proces.js
Created April 15, 2018 09:37
Ionic cordova-plugin-fcm error fix
View fcm_config_files_proces.js
#!/usr/bin/env node
'use strict';
var fs = require('fs');
var path = require('path');
fs.ensureDirSync = function (dir) {
if (!fs.existsSync(dir)) {
dir.split(path.sep).reduce(function (currentPath, folder) {
currentPath += folder + path.sep;
View install composer opensuse
sudo zypper in php5-phar php5-openssl
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer