Skip to content

Instantly share code, notes, and snippets.

View daniyalzade's full-sized avatar

Eytan Daniyalzade daniyalzade

View GitHub Profile
@daniyalzade
daniyalzade / detect_app.js
Created October 8, 2013 14:30
Fancy's way of detecting if app exists and launching app accordingly. It does referrer checking to see if the link is coming from email, and only does it then.
<script>
var thing_id = "441444475001111765";
$('.thing-related-photo img').each(function(){
if($(this).width()>$(this).height()){
$(this).css("height","60px");
}else{
$(this).css("width","60px");
}
});
@daniyalzade
daniyalzade / parallelConnections.js
Created November 7, 2014 18:54
parallelConnections.js
var async = require('async');
var http = require('http');
var URL = 'www.walmart.com';
var MAX_SOCKETS = 50;
var NUM_CONNECTIONS = 100;
http.globalAgent.maxSockets = MAX_SOCKETS;
@daniyalzade
daniyalzade / mint_categories.json
Created February 1, 2015 21:05
mint_categories.json
{
"Personal Care": [
"Hair",
"Laundry",
"Spa & Massage"
],
"Entertainment": [
"Amusement",
"Arts",
"Movies & DVDs",
@daniyalzade
daniyalzade / references.md
Created July 21, 2016 16:38
Node JS References