Skip to content

Instantly share code, notes, and snippets.

@alinebalogh
alinebalogh / Git hints
Created November 12, 2018 17:40
Git configs
// Git - turn case sensetive
git config core.ignorecase false
@alinebalogh
alinebalogh / Get modification date from a repo
Created November 1, 2018 19:54
Get modification date from a repo
git ls-tree -r --name-only HEAD | while read filename; do
echo "$(git log -1 --format="%ad" -- $filename) $filename" >> ~/Desktop/test.txt
done
@alinebalogh
alinebalogh / Promise + Ajax .txt
Last active October 29, 2018 16:44
Promise + Ajax
getCurrentTime(){
var _self = this;
var settings = {
"url": _self.timeURL,
"method": "GET"
}
return new Promise(function(resolve, reject) {
$.ajax(settings).done(function (response, status, xhr) {
@alinebalogh
alinebalogh / create-element-react.markdown
Created October 23, 2018 10:32
Create Element React
@alinebalogh
alinebalogh / index.html
Created October 23, 2018 10:31
Proptypes + Validate props
<div id="root"></div>
@alinebalogh
alinebalogh / index.html
Created October 23, 2018 10:31
style react + class + inline style
<div id="root"></div>
@alinebalogh
alinebalogh / git.md
Created April 15, 2018 22:04 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

#GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@alinebalogh
alinebalogh / index.html
Created December 14, 2017 17:40
Portfólio Aline Balogh [In progress]
<link href="https://fonts.googleapis.com/css?family=Fira+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<body data-spy="scroll" data-target="#scroll-nav">
<div class="navbar navbar-default navbar-fixed-top" >
<div class="container">
<div class="navbar-header">
@alinebalogh
alinebalogh / index.html
Created October 30, 2017 17:00
Infinite loop
<body>
<div class="loader">
<?xml version="1.0" encoding="UTF-8"?>
<svg width="310px" height="310px" version="1.1" x=0 y=0 viewBox="0 0 297 210" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>