Skip to content

Instantly share code, notes, and snippets.

View juliandavidmr's full-sized avatar
:octocat:
Working from home

Julian David juliandavidmr

:octocat:
Working from home
View GitHub Profile
@juliandavidmr
juliandavidmr / app.sh
Created May 15, 2018 22:30
Generate apk and certify app ionic
#!/bin/bash
# ----------------------------------------------------------
# Creado por Julian David <https://github.com/juliandavidmr>
# Año 2018
# Licencia MIT
# Generada:
# - Certificados con keytool
# - Instalador apk para produccion
# - Procesa apk con jarsigner
@juliandavidmr
juliandavidmr / Request.php
Created March 6, 2018 19:38
(PHP) Request Http without CURL
<?php
namespace common\components;
class Request {
public static function get($url, $data = null, $header = null) {
return self::request("GET", $url, $data, $header);
}
@juliandavidmr
juliandavidmr / remove_proxy_npm.sh
Last active January 23, 2018 19:13
remove npm proxy settings Unix Win
npm config delete http-proxy
npm config delete https-proxy
npm config rm proxy
npm config rm https-proxy
npm config --global rm proxy
npm config --global rm https-proxy
unset HTTP_PROXY
@juliandavidmr
juliandavidmr / grammar.jison
Created December 27, 2017 06:16
grammar pseudo language
/* description: Parses end executes mathematical expressions. */
/* lexical grammar */
%lex
%%
\s+ /* skip whitespace */
[0-9]+("."[0-9]+)?\b return 'NUMBER'
"true" return 'TRUE'
"false" return 'FALSE'
@juliandavidmr
juliandavidmr / example.markdown
Created October 25, 2017 00:24
Simple component of Angular 2/4 with QuillJS (wysiwyg)

Example

View

Content html

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

Content typescript

@juliandavidmr
juliandavidmr / stop_iis_windows.bash
Created October 8, 2017 16:59
Start or Stop the Web Server (IIS 7)
# Stop
net stop WAS
# Start
# net start W3SVC
@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.
using System.Web.Mvc;
using Helpers;
using System.Web.Security;
namespace Project.Controllers {
[AllowAnonymous]
public class HomeController : Controller {
[HttpGet]
function (a, b) {
return a + b;
}

Get popular cat names

Install

$ npm install --save cat-names

Usage

@juliandavidmr
juliandavidmr / cat-names.json
Created February 8, 2017 05:20
list cat names
[
"Abby",
"Angel",
"Annie",
"Baby",
"Bailey",
"Bandit",
"Bear",
"Bella",
"Bob",