Skip to content

Instantly share code, notes, and snippets.

Working from home

Julian David juliandavidmr

Working from home
View GitHub Profile
juliandavidmr / example.markdown
Created Oct 25, 2017
Simple component of Angular 2/4 with QuillJS (wysiwyg)
View example.markdown



Content html

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

Content typescript

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
View cache-busting.js
#!/usr/bin/env node
var fs = require('fs'),
path = require('path'),
cheerio = require('cheerio'),
revHash = require('rev-hash');
var rootDir = path.resolve(__dirname, '../');
var wwwRootDir = path.resolve(rootDir, 'platforms', 'browser', 'www');
var buildDir = path.join(wwwRootDir, 'build');
coco-napky / hyper.js
Created Mar 8, 2017
Hyper config for git bash in Windows
View hyper.js
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
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 {
public class HomeController : Controller {
MurhafSousli / html-sanitizer.pipe.ts
Last active Sep 6, 2021
Angular Sanitize Html Pipe
View html-sanitizer.pipe.ts
import { Pipe, PipeTransform } from '@angular/core';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
name: 'sanitizeHtml'
export class HtmlSanitizerPipe implements PipeTransform {
constructor(private sanitizer: DomSanitizer) {
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" })
daliborgogic / delay.js
Created Dec 16, 2016
Node.js Async/Await delay
View delay.js
'use strict'
const timeout = ms => new Promise(res => setTimeout(res, ms))
function convinceMe (convince) {
let unixTime = Math.round(+new Date() / 1000)
console.log(`Delay ${convince} at ${unixTime}`)
async function delay () {
sadikaya /
Last active Nov 24, 2021
git bash inside Webstorm terminal

Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.

for 64bit:

"C:\Program Files\Git\bin\sh.exe" --login -i

for 32bit:

"C:\Program Files (x86)\Git\bin\sh.exe" --login -i
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: "",
flags: ApplicationFlags.FLAGS_NONE);
protected override void activate () {