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
@pradeep1991singh
pradeep1991singh / html-sass_varialbes.scss
Created February 11, 2017 18:06
_variables.scss file for html-sass project
/*
* common variables
*/
/* colors */
$bg-color: #e6e5e1;
$secondary-bg-color: #3bb18d;
$primary-color: #575b63;
/* font and font-family */
@pradeep1991singh
pradeep1991singh / html-sass_main-content.scss
Last active February 11, 2017 19:36
_main-content.scss file for html-sass project
/*
* main content styles partials
*/
/* import variables, mixins */
@import "variables";
@import "mixins";
$margin-inner-content: 30px;
$width-inner-content: 75%;
@pradeep1991singh
pradeep1991singh / html-sass-styles.scss
Created February 11, 2017 18:11
styles.scss file for html-sass project
@import "header",
"main-content",
"footer";
@pradeep1991singh
pradeep1991singh / html-sass_header.scss
Created February 11, 2017 18:13
_header.scss file for html-sass project
/*
* header styles partials
*/
/* import variables, mixins */
@import "variables";
@import "mixins";
$logo-width-height: 40px;
$padding-left-right: 15px;
@pradeep1991singh
pradeep1991singh / html-sass_mixins.scss
Last active February 11, 2017 19:42
_mixins.scss file for html-sass project
/*
* common sass mixins
*/
$primary-box-shadow-color: rgba(0, 0, 0, 0.5);
$secondary-box-shadow-color: rgba(0, 0, 0, 0.3);
@mixin display-flex() {
display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6, BB7 */
display: -ms-flexbox; /* TWEENER - IE 10 */

Dev build

Bundle debug build:

$ react-native bundle --dev false --platform android --entry-file index.android.js \
  --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle \
  --assets-dest ./android/app/build/intermediates/res/merged/debug

Create debug build:

@pradeep1991singh
pradeep1991singh / AboutView.js
Last active February 18, 2017 17:17
ReactJs-Starter
// Create `src/AboutView.js`: About page component
// And copy/paste content to AboutView.js
import React, { Component } from 'react';
class AboutView extends Component {
render() {
return (
<div className="main-content">
About page
@pradeep1991singh
pradeep1991singh / python3-dev-setup-for-ubuntu.sh
Last active February 24, 2017 11:47
Setup python3 development environment for ubuntu
#!/bin/bash
# python alias
echo "alias python='python3'" >> ~/.bash_aliases
source ~/.bash_aliases
# install virtual environment
sudo apt-get install virtualenv
# install pip
@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
@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,