Skip to content

Instantly share code, notes, and snippets.

View cloverhearts's full-sized avatar
💻

CloverHearts cloverhearts

💻
View GitHub Profile
@cloverhearts
cloverhearts / meta-tags.md
Created February 6, 2019 20:27 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@cloverhearts
cloverhearts / rails http status codes
Created February 22, 2018 14:03 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@cloverhearts
cloverhearts / npm_ERR!_Error__EACCES__permission_denied.md
Last active January 16, 2018 09:20
npm install permission error

Move to same disk(Installed Npm) from another disk with your project. eg.

which npm 
> c:/npm/bin/npm

then

d:/myproject -> c:/myproject
@cloverhearts
cloverhearts / npm build MSBUILD : error MSB4132
Created January 4, 2018 06:42
#solution! windows only.
npm install --global --production windows-build-tools
npm config set msvs_version 2015 --global
@cloverhearts
cloverhearts / Git Repository Full clone
Last active January 4, 2018 04:06
Git Repository Full clone
git fetch --all
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git pull --all
git remote add newRepo https://[email protected]/yourLogin/yourRepoName.git
git push --mirror newRepo
%angular
<script>
var test = angular.element('#20160704-214920_557696254_container');
var scope = angular.element('#mytest').scope();
console.log(scope.$watch('paragraph.config.colWidth', function (newv, oldv) {angular.element('#mytest').html('<button class="btn btn-default">'+newv+'</button>')}));
</script>
<div id="mytest">ddd</div>
@cloverhearts
cloverhearts / Install Scala on CentOS
Last active July 4, 2016 16:44
Install Scala on CentOS
wget http://www.scala-lang.org/files/archive/scala-2.11.8.tgz
tar xvf scala-2.11.8.tgz
sudo mv scala-2.11.8 /usr/lib
sudo ln -s /usr/lib/scala-2.11.8 /usr/lib/scala
export PATH=$PATH:/usr/lib/scala/bin
scala -version
@cloverhearts
cloverhearts / Install Maven with Yum on Amazon Linux
Last active July 4, 2016 16:45 — forked from sebsto/gist:19b99f1fa1f32cae5d00
Install Maven with Yum on Amazon Linux
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
sudo yum install -y apache-maven
mvn --version