Skip to content

Instantly share code, notes, and snippets.

View nesticle8bit's full-sized avatar
🏠
Working from home

nesticle8bit nesticle8bit

🏠
Working from home
View GitHub Profile
@nesticle8bit
nesticle8bit / javascript_resources.md
Last active August 29, 2015 14:10 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@nesticle8bit
nesticle8bit / ModelState
Last active December 7, 2016 13:59
Revisar los errores de validación que tenga en Entity Framework
ModelState.Values.SelectMany(v => v.Errors);
@nesticle8bit
nesticle8bit / runas.bat
Last active January 21, 2019 18:13
Conectarme por TFS mediante un equipo con Vpn
: Visual Studio 2015
runas /env /netonly /user:IPSU\julio.povedae "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe"
1234567
@nesticle8bit
nesticle8bit / migration.cs
Created July 25, 2017 19:39
Revertir un Migration en Entity Framework
Update-Database –TargetMigration 201609261919239_elMigrationAnteriorAlQueEstaMalo
@nesticle8bit
nesticle8bit / file.cs
Last active February 15, 2019 10:58
Upload file to Server
[HttpPost]
[AjaxValidationAntiForgeryToken]
public JsonResult UploadFileToServer(HttpPostedFileBase file, int? id, string deleteFile)
{
var response = new JsonResultBody();
try
{
response.Status = System.Net.HttpStatusCode.OK;
@nesticle8bit
nesticle8bit / webConfig.xml
Created April 11, 2019 21:16
OAuth WebConfig
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="aspnet:MaxJsonDeserializerMembers" value="150000" />
<!-- Gestión Mejoramiento: Config -->
<add key="Config.InactiveUser" value="40" />
@nesticle8bit
nesticle8bit / Helper.cs
Last active May 29, 2019 13:20
Enviar correos electronicos
public class EmailService : IIdentityMessageService
{
public Task SendAsync(IdentityMessage message)
{
var credentialUserName = ConfigurationManager.AppSettings.Get("IPS.Email.Email");
var sentFrom = credentialUserName;
var pwd = ConfigurationManager.AppSettings.Get("IPS.Email.Password");
SmtpClient client = new SmtpClient(ConfigurationManager.AppSettings.Get("IPS.Email.SMTP"))
{