Skip to content

Instantly share code, notes, and snippets.

View the-dagger's full-sized avatar
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 June 4, 2020 07:46
This is an example of how to poll the clipboard for changes in an Electron application. See notes in 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 February 22, 2017 11:49
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 October 27, 2016 21:41
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 September 23, 2016 21:34
Enable different build numbers for different ABIs.
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 August 29, 2022 14:53
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 November 19, 2019 11:28
Watch or Unwatch a file in git
# 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 April 12, 2024 18:28
CSS Media Queries for Desktop, Tablet, Mobile.
##Device = Desktops
##Screen = 1281px to higher resolution desktops
@media (min-width: 1281px) {
/* CSS */
yqritc / gist:ccca77dc42f2364777e1
Last active March 29, 2024 10:25
Equal column spacing for Android RecyclerView GridLayoutManager by using custom ItemDecoration


public class ItemOffsetDecoration extends RecyclerView.ItemDecoration {

    private int mItemOffset;

    public ItemOffsetDecoration(int itemOffset) {
        mItemOffset = itemOffset;
mariotaku / .travis.yml
Last active August 8, 2018 13:10
Sign and upload compiled apk to Github releases automatically using Travis CI
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