Skip to content

Instantly share code, notes, and snippets.

View yask123's full-sized avatar
πŸ‘¨β€πŸ’»

Yask Srivastava yask123

πŸ‘¨β€πŸ’»
View GitHub Profile
execute pathogen#infect()
syntax enable
syntax on
filetype plugin indent on
set backspace=2
set background=dark
let g:solarized_termtrans = 1
let g:solarized_visibility = "high"
let g:solarized_contrast = "high"
class node:
def __init__(self):
self.data = None
self.next = None
class linked_list:
def __init__(self):
self.current_node=None
def add_node(self,data):
@yask123
yask123 / whatsapp_sendMSG.js
Created January 24, 2015 17:08
Send messages on whatsapp by Javascript
document.getElementsByClassName("input")[1].innerHTML="This message was written via JS script! "; // Fills the text box message
var input = document.getElementsByClassName("icon btn-icon icon-send");//Grabs the send button
input[0].click();// Clicks the send button
@yask123
yask123 / fun.py
Last active August 29, 2015 14:12
"""Forked from here : https://github.com/yask123/ipu_result"""
import os
from urllib.request import urlopen
data =''
link=''
print ('Running on feature 1 ')
for line in urlopen('http://www.du.ac.in/du/index.php?page=students-welfare'):
data = data+str(line)
run = True
@yask123
yask123 / designer.html
Created October 4, 2014 18:32
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@yask123
yask123 / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../cool-clock/cool-clock.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<link rel="import" href="../core-pages/core-pages.html">
@yask123
yask123 / designer.html
Created October 2, 2014 18:42
designer
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<link rel="import" href="../core-input/core-input.html">
<polymer-element name="my-element">
@yask123
yask123 / designer.html
Created September 29, 2014 20:19
designer
<link href="../topeka-elements/category-images.html" rel="import">
<link href="../core-icon/core-icon.html" rel="import">
<link href="../core-icons/core-icons.html" rel="import">
<link href="../core-icons/av-icons.html" rel="import">
<link href="../paper-fab/paper-fab.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
@yask123
yask123 / Main.java
Created August 2, 2014 20:34
This is a test
package com.company;
public class Main {
public static void main(String[] args) {
// write your code here
System.out.println("Hello world");
int a []={1,2,3,4};
for(int i=0;i<a.length;i++)
{
import collections
import e3#importing previous pyton file for findfactor() function , sorry for seperating !
a=e3.findfactors(100)#Called the opther function using namespace
print(a)
counter=collections.Counter(a)#Return a dictionary of frequency of elements in the prime list
pro=1#will store the product of (a+1)*(b+1).. explained in the blog
for each_key in counter:
pro*=(counter[each_key]+1)#Calculate (a+1)*(b+1)*...etc