Skip to content

Instantly share code, notes, and snippets.

View niksseif's full-sized avatar
🐠

NikSeif niksseif

🐠
  • Full stack web developer/ Creative Programmer
  • San Francisco
  • X @Niksseif
View GitHub Profile
@niksseif
niksseif / ReactNative+Expo.md
Last active April 9, 2023 16:39
Getting Started with React Native and Expo

Getting Started with React Native and Expo: An Introduction to.env Files

Getting started with React Native and Expo can be a great way to build mobile applications, especially if you're already familiar with React. One important aspect of app development is the use of environment variables. In this article, we'll show you how to use a .env file to manage your environment variables in a React Native project built with Expo.

What is Expo?

Expo is a framework for building React Native apps. It is a set of tools and services made for React Native. It will help you begin building React Native apps with ease. Expo provides a command-line interface that allows developers to easily create, build, and publish their apps.

What is a .env file?

Environment variables are a set of dynamic values that are used by your application at runtime. For example, you may want to use a different API key or URL depending on whether you're running your app locally or in production. A .env file is a simple text file that conta

@niksseif
niksseif / firebase, react, Parcel
Last active October 12, 2023 13:58
How to deploy your React/Parcel project on firebase
Here is a gist of what to do if you are deploying your Parcel/React project on firebase.
1. add these scripts to your package.json in the root of your project
Package.json:
"scripts": {
"clear-build-cache": "rm -rf .cache/ dist/",
"dev": "parcel src/index.html",
"build": "cross-env NODE_ENV=production parcel build ./src/index.html --public-url ./",
"format": "prettier --write \"src/**/*.{js,jsx}\"",
"lint": "eslint \"src/**/*.{js,jsx}\" --quiet",
@amgando
amgando / intro-to-js.js
Last active July 21, 2019 20:19
a quick intro the JS that focuses on functions
// to understand any system we must retain either control or visibility (or both)
// this is how you retain visibility
console.log('hello world')
// so now we can give up our need for control :)
// and along the way you'll see new words and language syntax. share your confusion!
// it's the greatest of gifts from a shameless heart and playfully curious mind.