Skip to content

Instantly share code, notes, and snippets.

View pradeep1991singh's full-sized avatar
🏠
Working from home

pradeep singh pradeep1991singh

🏠
Working from home
View GitHub Profile
Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
Florida
Georgia
Afghanistan
Albania
Algeria
Andorra
Angola
Anguilla
Antigua & Barbuda
Argentina
Armenia
Australia
Asia
Australia
Antarctica
Africa
Europe
North America
South America
@pradeep1991singh
pradeep1991singh / wercker.yml
Created July 29, 2017 22:08
Integrate wercker with bitbucket, firebase, slack
box: ubuntu
build:
steps:
- script:
name: start build
code: echo "started building..."
deploy-firebase:
steps:
@pradeep1991singh
pradeep1991singh / RNSecureKeyStore.js
Last active May 7, 2017 10:26
Example for react-native-secure-key-store
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import RNSecureKeyStore from "react-native-secure-key-store";
@pradeep1991singh
pradeep1991singh / Contents.json
Created April 17, 2017 20:17
Ios launch image Contents.json for react native ios application
{
"images": [
{
"extent": "full-screen",
"idiom": "iphone",
"filename": "Default-568h@2x.png",
"minimum-system-version": "7.0",
"orientation": "portrait",
"scale": "2x",
"subtype": "retina4"
@pradeep1991singh
pradeep1991singh / Java Installation
Last active April 7, 2017 16:52
Java Installation
1) Create directory and go to /opt/jdk
mkdir /opt/jdk
cd /opt
2) Download Java package (if someone need another version only need change version and build in link)
wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.tar.gz
3) Optional (if you are not logged as root you need):
sudo su
# Git aliases
alias st='git status'
alias ga='git add .'
alias ci='git commit'
alias pl='git pull'
alias pu='git push'
alias plr='git pull --rebase'
alias co='git checkout'
alias nb='co -b'
@pradeep1991singh
pradeep1991singh / index.android.ios.js
Last active October 30, 2020 14:44
Example AsyncStorage React Native
/**
* Example AsyncStorage React Native
* https://github.com/pradeep1991singh
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
@pradeep1991singh
pradeep1991singh / sovrin-client-setup.sh
Last active February 23, 2017 07:46
sovrin client dev setup
# Install python, pip, virtural environment & virutal environment wrapper
# https://gist.github.com/pradeep1991singh/f2d38e01aa872d4c9a7baf5539166a74
wget https://gist.githubusercontent.com/pradeep1991singh/f2d38e01aa872d4c9a7baf5539166a74/raw/fb8ae67575102605f35952a2c0d4303baff8b889/python3-dev-setup.sh
sh python3-dev-setup.sh
# install libsodium
if [sudo apt-get install libsodium13] ; then
sudo apt-get update
sudo apt-get install libsodium13
else