Skip to content

Instantly share code, notes, and snippets.

Avatar

Ayush Bansal bansalayush

  • India
View GitHub Profile
@sanketsahu
sanketsahu / ReactiveConf-CFP.md
Last active Jun 7, 2018
CFP: Reactive Conf: Introducing the React Native Builder
View ReactiveConf-CFP.md

This is a proposal for ReactiveConf 2017 open call for Lightning talks. If you'd like to make this talk happen, please 🌟 this gist and retweet my tweet. 🙏


We are building something that would bring designer and developer on the same file!

Introducing BuilderX

A design tool which writes React Native code for you

BuilderX Demo

Don't just prototype but code as a designer

@ctrl-freak
ctrl-freak / android-adb-pull-apk.md
Last active Aug 28, 2020
Retrieve APK from Non-Rooted Android Device through ADB
View android-adb-pull-apk.md

https://stackoverflow.com/a/18003462/348146

None of these suggestions worked for me, because Android was appending a sequence number to the package name to produce the final APK file name (this may vary with the version of Android OS). The following sequence of commands is what worked for me on a non-rooted device:

  1. Determine the package name of the app, e.g. com.example.someapp. Skip this step if you already know the package name.

    adb shell pm list packages

    Look through the list of package names and try to find a match between the app in question and the package name. This is usually easy, but note that the package name can be completely unrelated to the app name. If you can't recognize the app from the list of package names, try finding the app in Google Play using a browser. The URL for an app in Google Play contains the package name.

@tiwiz
tiwiz / AndroidManifest.xml
Created Nov 23, 2015
Draw over other apps on Android 6
View AndroidManifest.xml
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
@karpathy
karpathy / min-char-rnn.py
Last active Sep 19, 2020
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
View min-char-rnn.py
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@pocmo
pocmo / gist:a47e93254ecac0d26695
Created Jul 16, 2015
Android M-Preview 2 - Permissions + Groups + Protection Level
View gist:a47e93254ecac0d26695
(android.permission-group.CONTACTS) android.permission.READ_CONTACTS dangerous
(android.permission-group.CONTACTS) android.permission.WRITE_CONTACTS dangerous
(android.permission-group.CONTACTS) android.permission.READ_PROFILE dangerous
(android.permission-group.CONTACTS) android.permission.WRITE_PROFILE dangerous
(android.permission-group.CALENDAR) android.permission.READ_CALENDAR dangerous
(android.permission-group.CALENDAR) android.permission.WRITE_CALENDAR dangerous
(android.permission-group.SMS) android.permission.SEND_SMS dangerous
(android.permission-group.SMS) android.permission.RECEIVE_SMS dangerous
(android
@pocmo
pocmo / gist:bc95238e890a185003c4
Last active Nov 24, 2019
Android M-Preview 1 - Permissions + Groups + Protection Level
View gist:bc95238e890a185003c4
(android.permission-group.CONTACTS) android.permission.READ_CONTACTS dangerous
(android.permission-group.CONTACTS) android.permission.WRITE_CONTACTS dangerous
(android.permission-group.CONTACTS) android.permission.READ_PROFILE dangerous
(android.permission-group.CONTACTS) android.permission.WRITE_PROFILE dangerous
(android.permission-group.CALENDAR) android.permission.READ_CALENDAR dangerous
(android.permission-group.CALENDAR) android.permission.WRITE_CALENDAR dangerous
(android.permission-group.SMS) android.permission.SEND_SMS dangerous
(android.permission-group.SMS) android.permission.RECEIVE_SMS dangerous
(android.permission-group.SMS) android.permission.READ_SMS dangerous
(android.permission-group.SMS) android.permission.RECEIVE_WAP_PUSH dangerous
You can’t perform that action at this time.