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
/* | |
<body> | |
<p>Hello world</p> | |
</body> | |
*/ | |
p{ | |
margin: 0; | |
position: absolute; | |
top: 50%; |
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
/* | |
<div calss="parent"> | |
<!-- Can be an image too --> | |
<p>Hello world</p> | |
</div> | |
*/ | |
/* ============== With Flex */ | |
div.parent { |
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
/* Responsive */ | |
https://codepen.io/SarathSantoshDamaraju/pen/aqyjWa | |
/* Not responsive layout, but image size is responsive. */ | |
/* | |
<div> | |
<img src="" alt=""/> | |
<p> </p> | |
</div> | |
*/ |
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
alias g!='git init' | |
alias g.='git add .' | |
alias g.-file='git add' | |
alias gb='git branch' | |
alias gb-new='git checkout -b' | |
alias gblame='git blame' | |
alias gcl='git clone' | |
alias gc='git commit -m' | |
alias gcout='git checkout' | |
alias gd='git diff' |
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
#!/bin/bash | |
# Functions: | |
# 1.Linting and Beautification of JS files | |
# 2.Linting of CSS files | |
# 3.Linting of HBS files | |
# Installation : | |
# 1. Go to source folder and type (cmd+shift+. in mac) to show hidden files |
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
.container { | |
padding-right: 15px; | |
padding-left: 15px; | |
margin-right: auto; | |
margin-left: auto; | |
} | |
@media (min-width: 768px) { | |
.container { | |
width: 750px; |
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
/* ==== | |
ClipboardCopy: This accepts any given string and copys it into clipboard after desired operation. | |
==== */ | |
function ClipboardCopy(str){ | |
/* Some login */ | |
str = str.toLowerCase(); | |
let convertedStr = str.split(" ").join("-"); | |
/* Copy code */ | |
let $tempInput = document.createElement('INPUT'); | |
document.body.appendChild($tempInput); |
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 Ember from 'ember'; | |
import {computed} from '@ember/object'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
data: ["One","Two","Three"], | |
datas : computed('data','typed', function(){ | |
return this.data.filter(each => each.toLowerCase().includes(this.typed ? this.typed : '')); | |
}), |
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
| | innerText | value | aria-label | aria-lebelledby | role or aria-role | tabindex |
OlderNewer