Skip to content

Instantly share code, notes, and snippets.

To Boldly Go Where No Man Has Gone Before

Harshit Dwivedi the-dagger

To Boldly Go Where No Man Has Gone Before
View GitHub Profile
LewdEwe-ErikWallace / clipboard.html
Last active Jun 4, 2020
This is an example of how to poll the clipboard for changes in an Electron application. See notes in HTML.
View clipboard.html
<!DOCTYPE html>
<html lang="en">
<title>My App - Clipboard</title>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' chrome-extension://*;">
genekogan /
Created Feb 22, 2017
scraping full size images from Google Images
from bs4 import BeautifulSoup
import requests
import re
import urllib2
import os
import argparse
import sys
import json
# adapted from
karthikb351 /
Last active Oct 27, 2016
Apply for HasGeek's internship

Apply for HasGeek's internship


I figured it would be better to streamline this interview process a bit, as well as make it more transparent. So instead of emails and resumes, HasGeek can evaluate you based on your ability to complete one of the following tests.

Along with the Mobile Developer Internship listed here, HasGeek is also interesting to taking on one or two interns to work with our tech stack, which is primarily built on Python and the Flask framework.

NOTE: All further communication with regards to this internship will happen via this gist. I'll keep posting updates (if any) at the bottom, so bookmark this page.

gogeta95 / build.gradle
Last active Sep 23, 2016
Enable different build numbers for different ABIs.
View build.gradle
android {
// map for the version code that gives each ABI a value. make sure to list all ABIs mentioned in splits block, an keep the order.
ext.versionCodes = ['armeabi': 3, 'armeabi-v7a': 4, 'arm64-v8a': 5, mips: 6, 'x86': 7, 'x86_64': 8]
// For each APK output variant, override versionCode with a combination of
// ABI APK value * 1000 + defaultConfig.versionCode
android.applicationVariants.all { variant ->
cutiko /
Last active Dec 10, 2020
How to customize firebase-ui-auth for Android
public class LoginActivity extends AppCompatActivity {
private static final int RC_SIGN_IN = 343;
protected void onCreate(Bundle savedInstanceState) {
Toolbar toolbar = (Toolbar) findViewById(;

GSoC 2016 Work Product, Harshit Dwivedi - FOSSASIA

This summer, I worked on FOSSASIA's Open Event Android App Generator for generating a customized android app for any event and enhanced the already existing Android app by adding a schedule in it and various UI/UX enhancements.
The app-generator server is hosted on a VPS server and runs on ubuntu

It takes in the data entered by the user on the generator website and then using that data and our app's source code generates an app customized to their need and emails it to them.
User can either upload an API endpoint or a zip containing json files on the generator where the data to be displayed in the app will be fetched from

A test setup of our project can be accessed here

donnfelker / config
Last active Nov 19, 2019
Watch or Unwatch a file in git
View config
# Goes in your .git/config file
# Temporarily stop tracking a file in git.
# usage: git unwatch path/to/file
unwatch = update-index --assume-unchanged
# Resume tracking a file in git.
# usage: git watch path/to/file
watch = update-index --no-assume-unchanged
gokulkrishh / media-query.css
Last active Jan 27, 2021
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
##Device = Desktops
##Screen = 1281px to higher resolution desktops
@media (min-width: 1281px) {
/* CSS */
yqritc / gist:ccca77dc42f2364777e1
Last active Dec 12, 2020
Equal column spacing for Android RecyclerView GridLayoutManager by using custom ItemDecoration
View gist:ccca77dc42f2364777e1


public class ItemOffsetDecoration extends RecyclerView.ItemDecoration {

    private int mItemOffset;

    public ItemOffsetDecoration(int itemOffset) {
        mItemOffset = itemOffset;
mariotaku / .travis.yml
Last active Aug 8, 2018
Sign and upload compiled apk to Github releases automatically using Travis CI
View .travis.yml
language: android
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- platform-tools
- tools
# The BuildTools version used by your project
- build-tools-22.0.0