Skip to content

Instantly share code, notes, and snippets.

View Quadriphobs1's full-sized avatar
:shipit:

Quadri A. Adekunle Quadriphobs1

:shipit:
View GitHub Profile
@Quadriphobs1
Quadriphobs1 / 06.png
Created December 28, 2019 16:46 — forked from mfd/06.png
Gilroy font
06.png
@Quadriphobs1
Quadriphobs1 / README-Template.md
Created March 24, 2019 22:17 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@Quadriphobs1
Quadriphobs1 / babel.rc
Created January 15, 2019 12:30 — forked from abhishekgargx/babel.rc
react native build.gradle patch for Android . FIX for duplicate resources found error in react native release or signing app.
{
"presets": ["react-native"]
}
@Quadriphobs1
Quadriphobs1 / build.gradle
Created January 15, 2019 10:03 — forked from gabrielemariotti/build.gradle
Use signing.properties file which controls which keystore to use to sign the APK with gradle.
android {
signingConfigs {
release
}
buildTypes {
release {
signingConfig signingConfigs.release
}
@Quadriphobs1
Quadriphobs1 / terminal-git-branch-name.md
Created October 9, 2018 12:12 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Mac)

Add Git Branch Name to Terminal Prompt (Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@Quadriphobs1
Quadriphobs1 / heroku_pg_db_reset.md
Created September 17, 2018 17:13 — forked from zulhfreelancer/heroku_pg_db_reset.md
How to reset PG Database on Heroku?

How to reset PG Database on Heroku?

  • Step 1: heroku restart
  • Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
  • Step 3: heroku run rake db:migrate
  • Step 4: heroku run rake db:seed (if you have seed)

One liner

heroku restart; heroku pg:reset DATABASE --confirm APP-NAME; heroku run rake db:migrate

@Quadriphobs1
Quadriphobs1 / React Native Clear Cache
Created August 6, 2018 16:45 — forked from jarretmoses/React Native Clear Cache
Clearing the Cache of your React Native Project
RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache
Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache
@Quadriphobs1
Quadriphobs1 / timezones.json
Created July 31, 2018 22:58 — forked from jaredreich/timezones.json
JSON Timezone List
[
   {
      "value": -12,
      "text": "(GMT -12:00) Eniwetok, Kwajalein"
   },
   {
      "value": -11,
      "text": "(GMT -11:00) Midway Island, Samoa"
   },
   {
@Quadriphobs1
Quadriphobs1 / array_dupplicate_counter.js
Created June 4, 2018 23:53 — forked from raecoo/array_dupplicate_counter.js
Javascript: Count duplicates in an array
/**
Problem:
You have a javascript array that likely has some duplicate values and you would like a count of those values.
Solution:
Try this schnippet out.
*/
@Quadriphobs1
Quadriphobs1 / mongoose-aggregate-by-month-year.js
Created May 30, 2018 11:26 — forked from adnan-i/mongoose-aggregate-by-month-year.js
Mongoose aggregation for grouping users by month/year subscribed
User.aggregate([
{
/* Filter out users who have not yet subscribed */
$match: {
/* "joined" is an ISODate field */
'subscription.joined': {$ne: null}
}
},
{
/* group by year and month of the subscription event */