Skip to content

Instantly share code, notes, and snippets.

View carlosanders's full-sized avatar

Carlos Anders carlosanders

  • Rio de Janeiro
  • 17:31 (UTC -03:00)
View GitHub Profile
@carlosanders
carlosanders / jeasyui.combobox.getrow.js
Last active February 12, 2017 15:18
Plugin para retornar a row do item selecionado na combobox do jQuery EasyUI
/**
* @description The plugin returns the JSON of the combobox the jQuery EasyUI
* @author Carlos Anders
* @link http://www.andershost.com.br
*/
(function ($) {
$.extend($.fn.combobox.methods, {
/**
* The method returns the data in the JSON object of the
* selected item in the combobox

Nota: Alguns destes atalhos foram configurados para minha própria conveniência (Preferences->Keymap). Estes são atalhos do Mac, basta usar o equivalente Windows/Linux das teclas cmd/Option/ctrl/Del. Pesquisar, Ir para, Navegação

Cmd + - vai apresenta ou oculta as paletas da IDE.

Cmd + P - Search file

Cmd + Shift + O - Search everywhere

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.16/vue.js"></script>
<title>JS Bin</title>
</head>
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@carlosanders
carlosanders / phpstorm-vs-sublimetext-shortcuts.md
Created May 1, 2017 03:45 — forked from silasrm/phpstorm-vs-sublimetext-shortcuts.md
Teclas de atalhos do PHPStorm com funções semelhantes ao Sublime Text, e outras interessantes.

#Teclas de atalhos do PHPStorm com funções semelhantes ao Sublime Text, e outras interessantes.

Sublime Text PHPStorm Função
CMD+P CMD+Shift+O Busca por arquivos no projeto
CMD+R CMD+F12 (1) Lista os métodos da classe e outros símbolos
CMD+F CMD+F Busca no arquivo
CMD+Option+F CMD+R Busca e troca os valores no arquivo
CMD+Shift+F CMD+Shift+F Busca, busca e troca e outros em um determinado caminho com várias regras.
CMD+D (2) Option+Up (2) Seleciona palavra

Comandos Docker

docker --version
docker ps
docker ps -a
docker rm 0b3bbe2214ac
docker image rm f2a91732366c
docker images
docker run -d nginx
#
# Project specific excludes
#
tomcat
#
# Default excludes
# link: https://github.com/github/gitignore
#
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
# Encrypt the repository
# Remove/modify this line if the repository is meant to be open-source
*.* filter=git-crypt diff=git-crypt
.gitattributes !filter !diff
# These files are text and should be normalized (Convert crlf => lf)
*.php text
*.css text
*.js text
*.htm text
#https://gist.github.com/pksunkara/988716
[user]
name = Anders
email = [email protected]
[core]
#editor = subl.exe
editor = 'C:/Microsoft VS Code/Code.exe' -w
[http]
sslverify = false
[mergetool]