Skip to content

Instantly share code, notes, and snippets.

@iformas
iformas / .cs
Created October 29, 2018 22:17
example upload and list
[CustomHandleError]
[Authorize]
[HttpPost]
public ActionResult AddArchivosPorPieza(FormCollection collection)
{
try
{
long piezaId;
String observacion = collection["observacion"];
@iformas
iformas / TwitchChatFilter.js
Last active December 6, 2017 14:05
Twitch Chat Filter UserScript
// ==UserScript==
// @name Twitch Chat Filter
// @namespace http://myloli.moe
// @version 1.0
// @description Chat Filter for Twitch
// @match http://www.twitch.tv/*
// @match https://www.twitch.tv/*
// @match http://player.twitch.tv/*
// @grant GM_addStyle
// @grant GM_getValue
var userId= "";
request(data, function (error, response, body) {
if (!error && response.statusCode == 200) {
userId = body.user.id.toString();
console.log(userId);//muestra la respuesta corrrecta
}
});
console.log(userId);//no muestra nada