- advanced-new-file
- EditorConfig for VS Code
- Git Lens
- Open recent files
- Switcher - Useful when working with css and js files with the same name, for example
- Whitespace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def eh_primo(x): | |
fator = 2 | |
while x % fator != 0 and fator <= x / 2: | |
fator = fator + 1 | |
if x % fator == 0: | |
return False | |
else: | |
return True | |
def maio_primo(n): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- coding:UTF-8 -*- | |
from tkinter import * | |
root=Tk() | |
class Principal: | |
def __init__(self, window): | |
window.geometry("800x600") | |
window.overrideredirect(True) # Maximiza a janela sem bordas | |
title_logo = Label(window, text="Tela Principal", bg="white") | |
title_logo.place(x=0, y=0, width=800, height=22) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deputado | Matricula | Ano | Mes | Tipo | CNPJ | Fornecedor | Valor | |
---|---|---|---|---|---|---|---|---|
Deputado A | 021345 | 2017 | 5 | Alimentacao | 003.222.111/0001-23 | Bar do Joao | 122.30 | |
Deputado A | 021345 | 2017 | 5 | Alimentacao | 003.222.111/0001-23 | Bar do Joao | 122.30 | |
Deputado B | 021345 | 2017 | 5 | Alimentacao | 003.222.111/0001-23 | Bar do Joao | 122.30 | |
Deputado D | 021345 | 2017 | 5 | Alimentacao | 003.222.111/0001-23 | Bar do Joao | 122.30 | |
Deputado B | 021345 | 2017 | 5 | Alimentacao | 003.222.111/0001-23 | Bar do Joao | 122.30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Creative Commons Legal Code | |
CC0 1.0 Universal | |
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE | |
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN | |
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS | |
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES | |
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS | |
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
FEATURE_BRANCH=$(git rev-parse --abbrev-ref HEAD| xargs echo -n) | |
TARGET_BRANCH=${1:-master} | |
echo "Cleaning feature branch ${FEATURE_BRANCH} (coming back to ${TARGET_BRANCH})" | |
git checkout ${TARGET_BRANCH} | |
git fetch -ap | |
git pull --rebase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { combineEpics } from 'redux-observable'; | |
/* | |
* Let's assume each configuration has the following: | |
* { | |
* type: String|Array<String>, | |
* url: String, | |
* method: String, | |
* body: String|Function<Action, String|Object>, | |
* process: Function<ActionObservable, ActionObservable>, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const store = createStore(); | |
ReactDOM.mount( | |
<Provider store={store}> | |
<WindowWrapper> | |
<GameCanvas /> | |
</WindowWrapper> | |
</Provider> | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import Redux from 'redux'; | |
import { createStore } from 'redux'; | |
import { connect, Provider } from 'react-redux'; | |
class MyComponent extends React.Component { | |
render() { | |
const { active, toggle } = this.props; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on write_to_file(this_data, target_file, append_data) | |
try | |
set the target_file to the target_file as string | |
set the open_target_file to open for access file target_file with write permission | |
if append_data is false then set eof of the open_target_file to 0 | |
write this_data to the open_target_file starting at eof | |
close access the open_target_file | |
return true | |
on error | |
try |
NewerOlder