Skip to content

Instantly share code, notes, and snippets.

@edueo
edueo / gist:494ed10f36c8c251b78feb0e4c236b9c
Created May 12, 2017 10:55
Desabilitar/habilitar monitor macbook
sudo nvram boot-args="iog=0x0"
sudo nvram -d boot-args
@edueo
edueo / laravel-personal-notes.md
Created June 2, 2017 14:12
Laravel personal notes
  • Use namespaces
<?php

namespace App\Models;

class Business extends \Eloquent
{
 protected $table = 'businesses';
#Laura Maia e Letícia Barreto
import requests
from bs4 import BeautifulSoup
url='https://pt.wikipedia.org/wiki/Os_100_livros_do_s%C3%A9culo_segundo_Le_Monde'
soup = BeautifulSoup(requests.get(url).text, 'html.parser')
nome=[nome.string.strip()
for nome in soup.findAll('i')]
ranking=[rank.string
@edueo
edueo / clever_algorithm.md
Last active January 31, 2018 14:30
clever_algorithm

Clever Algorithm

Find wheter or not 2 words are anagrams

  • Map each of 26 english characters (A,B,C,D ... Z) to a primer number
  • Then multiply the char of each word
  • Two words are anagrams if their products are the same
E.g: F(A) = 2, F(E) = 5, F(R)=7
@edueo
edueo / URPreferences.xml
Last active May 30, 2018 12:40
Install universal player - MacOS
<?xml version="1.0" encoding="UTF-8"?>
<preferences>
<option name="ACTION_DELAY_0" value="2000"/>
<option name="ACTION_DELAY_1" value="2000"/>
<option name="ACTION_DELAY_2" value="2000"/>
<option name="ACTION_DELAY_3" value="2000"/>
<option name="ACTION_DELAY_4" value="1000"/>
<option name="ACTION_DELAY_5" value="200"/>
<option name="ACTION_DELAY_6" value="200"/>
<option name="ACTION_DELAY_7" value="100"/>
@edueo
edueo / activate_venv_on_win_in_mingw.sh
Created December 2, 2018 16:17
Activate virtualenv on Windows in MinGW
. .venv/Scripts/activate
@edueo
edueo / DockerfilePersonaAPI
Created December 7, 2018 14:39
Dockerfile Persona API
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# CONSIDERAÇÕES #
# - As imagens do alpine da Microsoft são para o .NET CORE 2.1 #
# - Utiliza dois containers para a montagem da imagem (Multisgage) #
# - Container compila, e as dlls são enviadas para um novo #
# - Cada um possui uma imagem base especifica #
# - A variável de ambiente "ASPNETCORE_URLS" é obrigatória para o #
# bind #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
FROM microsoft/dotnet-nightly:2.0-sdk AS build
files:
"/etc/php.d/99uploadsize.ini":
mode: "000644"
owner: root
group: root
content: |
upload_max_filesize = 100M
post_max_size = 100M
commands:
remove_old_ini:
@edueo
edueo / pair-programming.md
Created June 7, 2019 10:11 — forked from rouzbeh84/pair-programming.md
resources for pair programming remotely and on site

Guide Page

To start using this site you need to have a GitHub account to sign in. Once signed in it will create your profiles information based on your GitHub account and return you to your brand new profile page. Click the profile editor button to enter in if you want to be a student, partner or teacher. You should also enter in what skills you have and what skills you are looking to learn on this page.

Once you have your profile how you like it, head on over to the search page to look for what you want to use on your next project and what kind of partner you are looking for. After hitting the search button we will find the very best matches for you to begin your pair programming journey!


What is Pair Programming?