Skip to content

Instantly share code, notes, and snippets.

git log --oneline
git rebase -i HEAD~3
@carloschulo
carloschulo / Rebase.git
Last active October 23, 2019 14:12
How to rebase
//make sure you have the most up-to-date version of the branch you're rebasing on.
git checkout develop
git pull
// go back to feature branch
git checkout updated-card
//rebase!
git rebase develop
@carloschulo
carloschulo / sqaush
Created October 21, 2019 16:03
Squash commits
git rebase -i HEAD~3
@carloschulo
carloschulo / index.html
Last active April 3, 2018 01:54
tictactoe
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>TIC TAC TOE</title>
<style>
* {
<!DOCTYPE html>
<html lang="en">
<!--USE THIS ONE FOR THE PROJECT-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://unpkg.com/d3-sankey@0.6"></script>
<title>Document</title>
{
"nodes":
[
{"name":"Client 1", "group":1},
{"name":"Loadbalancer 1", "group":2},
{"name":"Webserver 1", "group":3},
{"name":"Webserver 2", "group":3}
],
"links":
[
@carloschulo
carloschulo / npm.sh
Created May 6, 2017 14:38
List globally installed NPM packages and version
npm list -g --depth=0
@carloschulo
carloschulo / index.html
Created February 23, 2017 20:53
HTML5 Boilerplate
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="style.css" rel="stylesheet">
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="style.css" rel="stylesheet">
</head>
<body>