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
Block or report user

Report or block the-dagger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@LewdEwe-ErikWallace
LewdEwe-ErikWallace / clipboard.html
Last active Dec 31, 2018
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">
<head>
<title>My App - Clipboard</title>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' chrome-extension://*;">
</head>
<body>
@genekogan
genekogan / scrapeImages.py
Created Feb 22, 2017
scraping full size images from Google Images
View scrapeImages.py
from bs4 import BeautifulSoup
import requests
import re
import urllib2
import os
import argparse
import sys
import json
# adapted from http://stackoverflow.com/questions/20716842/python-download-images-from-google-image-search
@karthikb351
karthikb351 / README.md
Last active Oct 27, 2016
Apply for HasGeek's internship
View README.md

Apply for HasGeek's internship

Hello!

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
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]
import com.android.build.OutputFile
// For each APK output variant, override versionCode with a combination of
// ABI APK value * 1000 + defaultConfig.versionCode
android.applicationVariants.all { variant ->
@cutiko
cutiko / LoginActivity.java
Last active Sep 11, 2019
How to customize firebase-ui-auth for Android
View LoginActivity.java
public class LoginActivity extends AppCompatActivity {
private static final int RC_SIGN_IN = 343;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
View gsocReportHarshit.md

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
donnfelker / config
Last active Jul 11, 2018
Watch or Unwatch a file in git
View config
# Goes in your .git/config file
[alias]
# 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
gokulkrishh / media-query.css
Last active Oct 15, 2019
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
yqritc / gist:ccca77dc42f2364777e1
Last active Oct 10, 2019
Equal column spacing for Android RecyclerView GridLayoutManager by using custom ItemDecoration
View gist:ccca77dc42f2364777e1

ItemOffsetDecoration

public class ItemOffsetDecoration extends RecyclerView.ItemDecoration {

    private int mItemOffset;

    public ItemOffsetDecoration(int itemOffset) {
        mItemOffset = itemOffset;
    }
@mariotaku
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
android:
components:
# 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
You can’t perform that action at this time.