This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// hi there | |
// this is a trick that blowed my mind | |
// => BY THIS => | |
// you can use icon unicode (html unicode like ) that comes from api inside JS | |
// that is gonna be parsed and placed the icon it self instead of printing some jebrish in browser | |
// #01 . here is the function | |
const decodeHtml = (html) => { | |
var txt = document.createElement("textarea"); | |
txt.innerHTML = html; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Spring, animated, config } from 'react-spring' | |
import { TimingAnimation, Easing } from 'react-spring/dist/addons' | |
const myComponent = () => { | |
return( | |
<Spring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 01 - build your web app | |
# 02 - build the production version of your app into dist folder | |
# 03 - use express to create a simple server like below | |
const express = require('express') | |
const webpack = require('webpack') | |
const path = require('path') | |
const webpackMiddleware = require('webpack-dev-middleware') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
01 - install hyper | |
02 - open config file by going to edit > Preferences | |
03 - comment all code | |
04 - add this setting: | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 14, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MEDIA QUERIES | |
@mixin MIN_QUERY($min) { | |
@media screen and (min-width: $min){ | |
@content; | |
} | |
} | |
@mixin MAX_QUERY($max) { | |
@media screen and (max-width: $max){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// react Part | |
import React from 'react' | |
class About extends React.Component { | |
constructor() { | |
super() | |
this.state = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const t0 = performance.now() | |
...some operation | |
const t1 = performance.now() | |
console.warn(`request took: ${(t1 - t0) / 1000} s...` ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Command line instructions | |
Git global setup | |
git config --global user.name "a_m_dev" | |
git config --global user.email "a.mirzaei.dev@gmail.com" | |
Create a new repository | |
git clone http://tpi.uneed.ir:8888/root/webApp-main.git | |
cd webApp-main | |
touch README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// module one | |
class TempClass { | |
justLog() { | |
// do what ever the heck you want... | |
console.log('hi there...') | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- develop | |
job_develop: | |
stage: develop | |
only: | |
- develop | |
tags: |