Skip to content

Instantly share code, notes, and snippets.

View omidgharib's full-sized avatar
🎯
Focusing

Omid Gharib omidgharib

🎯
Focusing
View GitHub Profile
@natestarner
natestarner / Nodejs Instructions
Created March 8, 2012 05:50
Complete Nodejs Environment Setup
The objective of this post is to get you from absolutely nothing, to a fully functional nodejs environment.
Software used: Ubuntu 11.10, Nodejs v0.6.12, Nginx, MongoDB, Redis, and NPM modules.
1. Download and install the latest version of Ubuntu: http://www.ubuntu.com/download (don't select any extra items to install when prompted)
2. Once you are logged in and are at your Ubuntu command prompt, install the necessary software you will need:
a. sudo apt-get install openssh-server
b. sudo apt-get install libssl-dev
c. sudo apt-get install git
d. sudo apt-get install g++
e. sudo apt-get install make
@AliMD
AliMD / fix_zoom.js
Last active December 10, 2018 18:44
Liquid Auto Zoom window ;)
/*jshint strict:true, es5:true, forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, strict:true, undef:true, unused:true, nonew:true, browser:true, devel:true, indent:2, boss:true, curly:false, immed:false, latedef:true, newcap:true, plusplus:false, trailing:true, maxparams:4, maxerr:100, debug:false, asi:false, evil:false, expr:true, eqnull:false, esnext:false, funcscope:false, globalstrict:false, loopfunc:false */
(function(pageWidth,pageHeight,px,py){
"use strict";
var prefix='',
iv = 0,
vendors = {Webkit: 'webkit', Moz: '', O: 'o', ms: 'MS' },
testEl = document.createElement('div'),
each = function(elements, callback){
for (var key in elements)
if (callback.call(elements[key], key, elements[key]) === false) return elements;
@AliMD
AliMD / jsbin.atipuj.html
Created July 9, 2013 15:42
Pure CSS3 Image !
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Image 2 Box-Shadow !!!</title>
</head>
<body>
<div id="box"></div>
<script src="image2boxshadow.js" type="text/javascript"></script>
</body>