Skip to content

Instantly share code, notes, and snippets.

View azs06's full-sized avatar
:octocat:
Focusing

Md. Atiquzzaman Soikat azs06

:octocat:
Focusing
View GitHub Profile
@azs06
azs06 / GitDeleteCommands.ps1
Created July 26, 2021 13:59 — forked from cmatskas/GitDeleteCommands.ps1
Git Delete Branch commands
## Delete a remote branch
$ git push origin --delete <branch> # Git version 1.7.0 or newer
$ git push origin :<branch> # Git versions older than 1.7.0
## Delete a local branch
$ git branch --delete <branch>
$ git branch -d <branch> # Shorter version
$ git branch -D <branch> # Force delete un-merged branches
## Delete a local remote-tracking branch
@azs06
azs06 / react-native.md
Last active August 9, 2019 13:45
React Native Issues

Glog issue

Running into the same issue here after upgrading from 0.44. None of the above solutions or clearing caches did the trick for me. Here's what I did to get things working again:
In the Terminal, navigate to the react-native/third-party/glog folder inside node_modules (for me, this was cd node_modules/react-native/third-party/glog-0.3.4)
Once actively in this folder, run ../../scripts/ios-configure-glog.sh
Glog is configured and the required config.h header file is created for Xcode to find
@azs06
azs06 / npm_to_yarn.md
Last active December 1, 2019 13:45
npm to yarn cheatsheet

npm install === yarn

Install is the default behavior.

npm install taco --save === yarn add taco

The Taco package is saved to your package.jsonimmediately.

npm uninstall taco --save === yarn remove taco

@azs06
azs06 / gradients.css
Created March 8, 2018 08:59
Background gradients
#gradient-1{
background: rgb(255,174,39); /* Old browsers */
background: -moz-linear-gradient(-45deg, rgba(255,174,39,1) 0%, rgba(222,73,109,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,rgba(255,174,39,1)), color-stop(100%,rgba(222,73,109,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(-45deg, rgba(255,174,39,1) 0%,rgba(222,73,109,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(-45deg, rgba(255,174,39,1) 0%,rgba(222,73,109,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(-45deg, rgba(255,174,39,1) 0%,rgba(222,73,109,1) 100%); /* IE10+ */
background: linear-gradient(135deg, rgba(255,174,39,1) 0%,rgba(222,73,109,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffae27', endColorstr='#de496d',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
@azs06
azs06 / controllers.application.js
Last active March 8, 2018 08:59
Ember counter example
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
counter: 0,
actions:{
increament(){
this.set('counter', this.get('counter') + 1)
},
decreament(){
@azs06
azs06 / react-notes.md
Last active February 17, 2018 09:48
React.js Notes

Don’t put quotes around curly braces when embedding a JavaScript expression in an attribute. You should either use quotes (for string values) or curly braces (for expressions), but not both in the same attribute.

In practice, most React apps only call ReactDOM.render() once. PropTypes validation is ignored in production build of React.js

@azs06
azs06 / react-redux-resources.md
Last active April 7, 2024 18:06
List of resources to learn react and it's ecosystem