https://insights.stackoverflow.com/survey/2019#most-loved-dreaded-and-wanted
This file contains hidden or 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
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# Start window numbering at 1 | |
set -g base-index 1 |
This file contains hidden or 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
# with is the better approuch to open and close files | |
with open('dogs.txt') as reader: | |
for line in reader: | |
print(line, end='') #end parameter change the last character of the line | |
# iterate for reader, line by line is more effecitily |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
.button { | |
border-radius: 4px; | |
text-align: center; | |
padding: 1em; | |
transition: all 0.5s; |
This file contains hidden or 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
var express = require("express"); | |
var request = require("sync-request"); | |
var url = require("url"); | |
var qs = require("qs"); | |
var querystring = require('querystring'); | |
var cons = require('consolidate'); | |
var randomstring = require("randomstring"); | |
var __ = require('underscore'); | |
__.string = require('underscore.string'); |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<title>Flexbox example page</title> | |
<link href="teste.css" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<div class="container"> | |
<header> | |
<h1>Ink</h1> |
This file contains hidden or 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
"Gerenciadores de Plugin | |
call plug#begin() | |
Plug 'arcticicestudio/nord-vim' | |
call plug#end() | |
execute pathogen#infect() | |
"Tamanho da identacao | |
set tabstop=2 | |
"Desativa quebra de linha | |
set nowrap | |
"Apresenta numero de linhas |
This file contains hidden or 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
""" | |
This is an example on how to reload Flask app in runtime | |
It can be useful for the use case where you want to enable/disable blueprints/routes dynamically. | |
To run the app: | |
> pip install flask & python app.py | |
Then test it via curl |
sudo snap start docker