Skip to content

Instantly share code, notes, and snippets.

View ironmaniiith's full-sized avatar

Aalekh Jain ironmaniiith

View GitHub Profile
@ironmaniiith
ironmaniiith / setup.sh
Last active August 8, 2018 12:29
Caffe installation script for ada
#!/usr/bin/bash
# Make sure to export $PREFIX as full path name
# ex. export PREFIX=/home/ironmaniiith/caffe_installation
if [ -z "$PREFIX" ]; then
echo "error: PREFIX variable not found"
exit 1
fi
if [ ! -d "$PREFIX" ]; then
echo "No such directory: $PREFIX. Directory will be created"
fi
@ironmaniiith
ironmaniiith / Makefile.config
Created August 8, 2018 11:22
Caffe Makefile.config for ADA
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
# CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers
@ironmaniiith
ironmaniiith / Topics.md
Last active January 19, 2017 05:08
GeeksUp Levels
  • Algorithms - Level 1
  • Algorithms - Level 2
  • Computer Networking - Level 1
  • Computer Networking - Level 2
  • Computer Programming - Level 1
  • Computer Programming - Level 2
  • Computer System Organization
  • Data Structures - Level 1
  • Data Structures - Level 2
  • Digital Logics - Level 1
@ironmaniiith
ironmaniiith / Felicity_FB_Event_All_Friends_Inviter.js
Last active January 9, 2019 01:55
Felicity_FB_Event_All_Friends_Inviter.js
;(function() {
var SCROLL_HEIGHT = 1e20;
function scrollToBottom(el, cb) {
// Scroll to the bottom of target el
var x = setInterval(function() {
console.log('Scrolling to bottom!');
var isScrolledToBottom = el.scrollHeight - el.clientHeight <= el.scrollTop + 1;
el.scrollTop = SCROLL_HEIGHT;
if (isScrolledToBottom) {
@ironmaniiith
ironmaniiith / espnCricNotification.js
Last active October 10, 2016 21:30
ESPN cricket notification
Notification.requestPermission();
function createNotification(theTitle, theIcon, theBody){
var options = {
icon: theIcon,
body: theBody,
};
var notification = new Notification(theTitle, options);
setTimeout(notification.close.bind(notification), 10000);
}
@ironmaniiith
ironmaniiith / 2048.c
Created June 19, 2016 22:47 — forked from justecorruptio/2048.c
Tiny 2048 in C!
M[16],X=16,W,k;main(){T(system("stty cbreak")
);puts(W&1?"WIN":"LOSE");}K[]={2,3,1};s(f,d,i
,j,l,P){for(i=4;i--;)for(j=k=l=0;k<4;)j<4?P=M
[w(d,i,j++)],W|=P>>11,l*P&&(f?M[w(d,i,k)]=l<<
(l==P):0,k++),l=l?P?l-P?P:0:l:P:(f?M[w(d,i,k)
]=l:0,++k,W|=2*!l,l=0);}w(d,i,j){return d?w(d
-1,j,3-i):4*i+j;}T(i){for(i=X+rand()%X;M[i%X]
*i;i--);i?M[i%X]=2<<rand()%2:0;for(W=i=0;i<4;
)s(0,i++);for(i=X,puts("\e[2J\e[H");i--;i%4||
puts(""))printf(M[i]?"%4d|":" |",M[i]);W-2
@ironmaniiith
ironmaniiith / GSOC_2k16_Orgs_List.md
Last active July 31, 2020 18:47
List of accepted organisations for GSOC 2016
var Nightmare = require('nightmare');
var nightmare = Nightmare({ show: false })
nightmare
// .useragent('Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0')
.goto('https://www.practo.com/bangalore/doctor/dr-shankar-kumar-diabetologist-1/')
.wait(5000)
.click("#reviewsNavLink")
.wait(5000)
.evaluate(function(){
@ironmaniiith
ironmaniiith / setup.sh
Last active April 19, 2016 06:39
Setup script while using live usb
cd
DIR=`pwd`
USER=`who | head -1 | cut -d " " -f1`
export http_proxy="http://proxy.iiit.ac.in:8080"
export https_proxy="http://proxy.iiit.ac.in:8080"
export ftp_proxy="http://proxy.iiit.ac.in:8080"
export socks_proxy="http://proxy.iiit.ac.in:8080"
export HTTP_PROXY="http://proxy.iiit.ac.in:8080"
export HTTPS_PROXY="http://proxy.iiit.ac.in:8080"
var x = document.getElementsByClassName('uiButton _1sm');
for(var i=0;i<x.length;i++){
if(x[i].innerHTML.indexOf("Invite") > 0){
x[i].click();
}
}