Skip to content

Instantly share code, notes, and snippets.

View akashnimare's full-sized avatar
💭
I may be slow to respond.

Akash Nimare akashnimare

💭
I may be slow to respond.
View GitHub Profile
@akashnimare
akashnimare / index.js
Created February 27, 2018 20:55
Grab college list from - knowyourcollege-gov.in
const collegeList = [];
var getAllCollege = document.getElementsByClassName('instituteName');
for (let i = 0; i < getAllCollege.length; i++) {
console.log("Total College count:", getAllCollege.length)
collegeList.push
(
{
"name": document.getElementsByClassName('instituteName')[i].innerText,
"url": document.getElementsByClassName('instituteLinks')[i].innerHTML
@akashnimare
akashnimare / git_tips.md
Last active March 16, 2020 10:11
Git tips for first time contributors
@akashnimare
akashnimare / clear-cache.js
Created September 6, 2017 22:52
Clear cach in electron
const {BrowserWindow} = require('electron');
const win = BrowserWindow.getAllWindows()[0];
const ses = win.webContents.session;
ses.clearCache(() => {
alert("Cache cleared!");
});
@akashnimare
akashnimare / electron-reset-app-data.js
Created September 6, 2017 22:28
Clearing application data in Electron
const path = require('path');
const { app } = require('electron');
const fs = require('fs-extra');
const appName = app.getName();
// Get app directory
// on OSX it's /Users/Yourname/Library/Application Support/AppName
const getAppPath = path.join(app.getPath('appData'), appName);
fs.unlink(getAppPath, () => {
@akashnimare
akashnimare / instructions.txt
Last active January 9, 2024 10:00
Download Frontend Master courses video. Note: This is for learning purpose only. Please don't mis-use it.
# Requirements
* Python 2.7
* Google Chrome
* ChromeDriver - WebDriver for Chrome
- Download the latest chromedrive which is 2.28 from here - https://sites.google.com/a/chromium.org/chromedriver/downloads
- Extract and move `chromedriver` file to `/usr/local/bin/chromedriver`
- git clone https://github.com/li-xinyang/OS_FrontendMaster-dl
- cd OS_FrontendMaster-dl
@akashnimare
akashnimare / mailchimpform.html
Last active November 23, 2020 00:03
Mailchimp newsletter signup form using ajax ❤️ Demo- http://codepen.io/akashnimare/full/XMozEo/
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Mailchimp Signup form</title>
<meta name="description" content="Mailchimp Signup form using Ajax.">
<style type="text/css">
body {
background-image: linear-gradient(120deg, rgb(209, 219, 233), rgb(240, 250, 243));
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 'Helvetica Neue', Arial, sans-serif;
@akashnimare
akashnimare / Instructions
Last active March 21, 2017 20:56
Scarpe IMDB top 250 movies review
* Python - v2.7.13
* pip
## Installation
* pip install -r requirements.txt
* python imdb-reviews.py
* All reviews will be saved in result.json
@akashnimare
akashnimare / index.html
Created March 7, 2017 13:53
Youtube embedded overlay image
<div class="video-container">
<img src="img/yt-video.jpg"/ id="play-video" class="img-responsive">
<iframe style="display:none" id="video" src="https://www.youtube.com/embed/SzmioR4Dj8E" frameborder="0" allowfullscreen></iframe>
</div>

Keybase proof

I hereby claim:

  • I am akashnimare on github.
  • I am meakaakka (https://keybase.io/meakaakka) on keybase.
  • I have a public key whose fingerprint is 39BD 5B1A 4A01 CA2F C603 3BCE 2896 B553 19D9 1D77

To claim this, I am signing this object:

@akashnimare
akashnimare / main.js
Last active December 30, 2016 19:07
Adding auto-updates to electron apps
const electron = require('electron');
const {app} = require('electron');
const isDev = require('electron-is-dev'); // this is required to check if the app is running in development mode.
const {appUpdater} = require('./autoupdater');
/* Handling squirrel.windows events on windows
only required if you have build the windows with target squirrel. For NSIS target you don't need it. */
if (require('electron-squirrel-startup')) {
app.quit();
}