Skip to content

Instantly share code, notes, and snippets.

View tiagoporto's full-sized avatar
🍺
Cheers!

Tiago Porto tiagoporto

🍺
Cheers!
View GitHub Profile
# Set git editor
# [core]
# editor = "code-insiders --wait"
# Rebase first commit
git rebase -i --root
# or from a specific commit
git rebase -i HEAD~10

Tags

create

git tag v1.0.0

push

git push origin --tags
@tiagoporto
tiagoporto / Sass.sass
Last active October 26, 2017 21:15
Preprocessors helpers
// ************* VARIABLE **************** //
$color: #FFF
// ******* ESCAPE CONCAT VAR ************ //
.test
background: url(#{$path + 'file.jpg'})
// ********** COLOR FUNCTIONS *********** //
@tiagoporto
tiagoporto / angular.js
Last active August 29, 2015 14:04
Chamadas ajax
function ctrl($scope, $http) {
$http({
method: "POST",
url: 'timeline.json',
params: {
parameter: value
}
}).
success(function(data, status) {
// console.log(data);
@tiagoporto
tiagoporto / selectors_css.html
Last active August 29, 2015 13:58
Advanced CSS selectors
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Advanced CSS selectors</title>
<style>
/* Siblings Selector */
/* Seleciona todos os elementos após o elemento principal. */
/* Works in IE7+ */
@tiagoporto
tiagoporto / printing.php
Last active May 25, 2023 14:12
Printing In PHP.
<?php
$var = print "Variable";
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>