Skip to content

Instantly share code, notes, and snippets.

Leonardo Micheloni leomicheloni

Block or report user

Report or block leomicheloni

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
View data.yml
version: '3.5'
services:
proxy:
image: nginx
ports:
- 80:80
View nuget.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="ServiceA" value="{URL}/nuget/v3/index.json" />
</packageSources>
<packageSourceCredentials>
<ServiceA>
<add key="Username" value="{usermail}" />
<add key="ClearTextPassword" value="{access_token}" />
@leomicheloni
leomicheloni / web.config
Last active Jul 3, 2018
send email to file asp.net
View web.config
<system.net>
<mailSettings>
<smtp deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="C:\temp" />
</smtp>
</mailSettings>
</system.net>
@leomicheloni
leomicheloni / Hello.cs
Created Jun 5, 2017
Simple Azure function
View Hello.cs
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
{
string name = req.GetQueryNameValuePairs()
.FirstOrDefault(q => string.Compare(q.Key, "name", true) == 0)
.Value;
return req.CreateResponse(HttpStatusCode.OK, "Hello " + name);
}
View agregarquitar
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<title></title>
<script type="text/javascript">
$(function(){
$("#add").on("click", function(){
View minify and gzip grunt task
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
uglify : {
options : {
banner : '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build : {
View Javascript Hoisting sample
var a = 'hola';
function saludar(){
console.log( a );
var a = 'chau';
console.log( a );
};
saludar();
View backbone.model.html
<html>
<head>
<script type="text/javascript" src="js/vendor/jquery/jquery.min.js"></script>
<script type="text/javascript" src="js/vendor/underscore/underscore.js"></script>
<script type="text/javascript" src="js/vendor/backbone/backbone.js"></script>
</head>
<body>
<div id="container" ></div>
<script type="text/javascript">
View rivetsjs.sample.html
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="js/vendor/rivets/dist/rivets.js"></script>
<script type="text/javascript">
$(function(){
//definimos un modelo simple, con algunas propiedades
model = {
name: "Ariel",
lastname: "Ortega",
View backbone.router.html
<html>
<head>
<script type="text/javascript" src="js/vendor/jquery/jquery.js"></script>
<script type="text/javascript" src="js/vendor/underscore/underscore.js"></script>
<script type="text/javascript" src="js/vendor/backbone/backbone.js"></script>
<script type="text/javascript">
//creamos una clase Router extendiendo la clase base de Backbonejs
var Router = Backbone.Router.extend({
//definimos las rutas
routes:{
You can’t perform that action at this time.