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 / 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
@azs06
azs06 / vuejs-resources.md
Last active December 22, 2017 20:36
List of useful resources to learn Vue.js and it's ecosystem.
@azs06
azs06 / git.md
Last active November 30, 2017 18:40
Git cheat sheet

For last log $ git log --name-status HEAD^..HEAD or git show --summary