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 Jan 8, 2017
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 Feb 17, 2017
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 Sep 29, 2015
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 Oct 8, 2017
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 Oct 25, 2017
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
@Frankity
Frankity / main.vala
Created Oct 7, 2016 — forked from rickybassom/main.vala
Simple Gtk.Application example in vala
View main.vala
using Gtk;
public class MyApplication : Gtk.Application {
public MyApplication () {
Object(application_id: "testing.my.application",
flags: ApplicationFlags.FLAGS_NONE);
}
protected override void activate () {
@xinranxiao
xinranxiao / app.js
Created Dec 4, 2013
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 Apr 15, 2018
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;