Skip to content

Instantly share code, notes, and snippets.

View NataliaAvila's full-sized avatar
:octocat:

Natália Ávila NataliaAvila

:octocat:
  • Minas Gerais | Brasil
View GitHub Profile
@NataliaAvila
NataliaAvila / jquery
Created June 11, 2020 12:21
Check Media Querie with Jquery
$(window).resize(function () {
if ($(window).width() < 992) {
}
});
@NataliaAvila
NataliaAvila / .scss
Created May 10, 2020 15:27
Remove push effect in a button on IE
//Remove push effect in a button on IE 11
button {
&:active {
position: relative;
top: -1px;
left: -1px;
}
}
@NataliaAvila
NataliaAvila / gist:cc914ae4443bde02977102fe172c42f6
Created March 10, 2020 18:57
Exibir branch atual GIT no terminal Linux
https://byteslivres.com.br/blog/exibir-branch-atual-git-no-terminal-linux/
@NataliaAvila
NataliaAvila / .css
Created March 28, 2019 12:28
css rotate a pseudo :after or :before content:“”
#whatever:after {
content:"\24B6";
display: inline-block;
-webkit-transform: rotate(30deg);
-moz-transform: rotate(30deg);
-o-transform: rotate(30deg);
-ms-transform: rotate(30deg);
transform: rotate(30deg);
}
@NataliaAvila
NataliaAvila / .scss
Last active January 22, 2019 13:09
Mixin para IE
@mixin ie() {
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
@content;
}
}
.className {
display: inline-block;
@include ie() {
@NataliaAvila
NataliaAvila / .jsx
Last active April 4, 2018 19:16
Anotações sobre [REACT]
1. Chamar imagem no .jsx:
import foto6 from '../images/foto6.jpg'
<img src={foto6} className="img-fluid" />
2. Importar componente em pagina:
import React, { Component } from 'react'
import Content from '../content/content'
@NataliaAvila
NataliaAvila / MongoDB
Last active June 7, 2016 13:43
[MongoDB] Instalando no Windows
- Crie uma pasta no c: com o nome "mongodb" e instale nessa pasta
- Crie o diretorio vazio na raiz do c: "data/db"
- rode o mongo e depois o mongod no CMD e seja feliz \o/
@NataliaAvila
NataliaAvila / MongoDB
Last active June 7, 2016 13:49
Resolvendo no Windows - SyntaxError: Unexpected identifier when import json file in MongoDB
#mongoimport
#Siga os seguintes passos no prompt de comando:
#Entre no diretorio C:\mongodb\bin>
#Execute o comando mongoimport.exe
C:\mongodb\bin>mongoimport.exe
#instancie o mongoimport.exe e passe o caminho onde está localizado o arquivo json:
@NataliaAvila
NataliaAvila / NodeJS
Last active June 7, 2016 13:50
Node Js
// PARA INICIAR NODE, ABRA O CMD, DIGITE:
node
//para verificar versão
node -v
//CRIAR SERVIDOR
var http = require('http');
var arquivo = require('fs');
var url = require('url');
@NataliaAvila
NataliaAvila / Scout
Last active June 7, 2016 13:51
Scout - ArgumentError on Windows7 - Error #3214
f1ss1on commented:
OK, after playing around a bit, and using suggestions from PendragonDevelopment and nuVoid, I was able to get it working properly on Windows 7 x86 and Windows 7 x64. The steps for doing it are correct.
First you need to make sure you have Java installed. If not, go to http://java.com/en/download/chrome.jsp?locale=en, and install.
Next open the [ScoutInstallDir]\javascripts\app\process_interaction.js and change line 95 to have the path exactly as follows:
Windows 7 x86 "C:\\Program Files\\Java\\jre7\\bin\\java.exe" (NOTE: THE PATH NEEDS TO HAVE DOUBLE BACKSLASHES IN IT.)
Windows 7 x64 "C:\\Program Files (x86)\\Java\\jre7\\bin\\java.exe"
Now You should be golden.