Skip to content

Instantly share code, notes, and snippets.

Manuel Rueda manrueda

Block or report user

Report or block manrueda

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
@manrueda
manrueda / HeavyWork.js
Created Sep 11, 2015
Async a function with WebWorkers
View HeavyWork.js
function HeavyWork(func, param, cb){
if (window.Worker){
var strFunc = 'onmessage = function(event) {' +
' postMessage((' + func.toString() + ')(event.data));' +
'}';
var blob = new Blob([strFunc], {type: 'application/javascript'});
var work = new Worker(URL.createObjectURL(blob))
@manrueda
manrueda / Example.cs
Last active Aug 29, 2015
Request Piper
View Example.cs
using System;
using System.Collections.Generic;
using System.Net;
using System.Web.Mvc;
namespace MySite.Controllers
{
public class ServersController : Controller
{
@manrueda
manrueda / ClientInfo.js
Last active Aug 29, 2015
OS and Browser detector
View ClientInfo.js
function ClientInfo(){
this.windows = false;
this.linux = false;
this.osx = false;
this.osArch = {
x86: false,
x64: false,
PowerPC: false
};
this.osVersion = {
@manrueda
manrueda / index.js
Created Feb 11, 2015
Segmentation fault (core dumped) - Node 0.12.0
View index.js
var sql = require('mssql');
sql.connect({
user: 'XXXX',
password: 'XXXXX',
database: 'XXXXX',
server: 'XXXXX'
}, function(err){
});
You can’t perform that action at this time.