Skip to content

Instantly share code, notes, and snippets.


Md. Atiquzzaman Soikat azs06

View GitHub Profile

You are given a string: candies, which is composed of chars from the English alphabet. If you see two consecutive candies that are the same, you pop them from left to right, until you cannot pop any more candies. Return the resulting string.

// candies = "abba"
// "abba" - pop the two b's -> "aa"
// "aa" - pop the two a's -> ""
// return ""
// candies = "abcd"
// return "abcd"
azs06 / GitDeleteCommands.ps1
Created Jul 26, 2021 — forked from cmatskas/GitDeleteCommands.ps1
Git Delete Branch commands
View GitDeleteCommands.ps1
## 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 /
Last active Aug 9, 2019
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/
Glog is configured and the required config.h header file is created for Xcode to find
azs06 /
Last active Dec 1, 2019
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 / gradients.css
Created Mar 8, 2018
Background gradients
View gradients.css
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 / controllers.application.js
Last active Mar 8, 2018
Ember counter example
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
counter: 0,
this.set('counter', this.get('counter') + 1)
azs06 /
Last active Feb 17, 2018
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