Skip to content

Instantly share code, notes, and snippets.

Wesley Viana wviana

Block or report user

Report or block wviana

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
wviana / r_python_community_info.txt
Created Aug 28, 2019
After some time trying to find the Community Info on Reddit online, found just this post with some other people that also wasn't able to find in the reddit web. I've found it on mobile version, but there it is not possible to copy and paste. So after some searching I've found that when you change to reddit old version you get the Community Infob…
View r_python_community_info.txt
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on FreeNode.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
wviana / gist:42ab291f6dbd1baeb5282057b2a3b4de
Created Aug 25, 2017
This is how to configura react-navigator header title color.
View gist:42ab291f6dbd1baeb5282057b2a3b4de
const AppNavigator = StackNavigator({
initialRouteName: {
screen: Login
Dashboard: {
screen: Dashboard,
}, {
navigationOptions: {
headerTitleStyle: {
View REGEX.sql
'^(?:(?!.*(A ?4))).*[^T\d]((\d+) ?[xX] ?\d+[[:alpha:]]*\y).*$'::text AS nXm,
'^.*\y(CX[ c/]*(\d+)[^\d]*)\y.*$'::text AS CXn,
'^.*\y(CX(\d+)UN)\y.*$'::text AS CXnUN,
'^.*[^\d]((\d+) ?ROLOS).*$'::text AS nRolos,
'^.*(C/ ?(\d+) *UN).*$'::text AS CBarrAnUN,
'^.*[^\d]((\d+) ?UN).*$'::text AS nUN,
'^.*[^\d]((\d+)\/).*$'::text AS nBarra
package imc;
public class Paciente {
double peso; // atributos da classe paciente
double altura;
double metros;
public Paciente(double peso, double altura , double metros){// construtor da classe paciente
View macro.vba
Option Explicit
Private Sub MergeFiles()
Dim directory As String, fileName As String, sheet As Worksheet, total As Integer
Dim WrdArray() As String, currentFile As Workbook, thisFile As Workbook, output As Workbook, outputName As String
Application.ScreenUpdating = False
Application.DisplayAlerts = False
View gist:446517346482eec92c0a79f9331c6813
java.lang.NoSuchMethodException:<init>(android.content.Context, android.util.AttributeSet)
at java.lang.Class.getConstructor0(
at java.lang.Class.getConstructor(
at android.view.BridgeInflater.loadCustomView(
at android.view.BridgeInflater.createViewFromTag(
at android.view.LayoutInflater.createViewFromTag(
public void onBackPressed() {
if(detailsPanel.isHidden()) showFinishApplicationDialog();
else detailsPanel.stepBack();
Map<Integer, Integer> Result= new HashMap<>();
int condition = Math.max(sample.size(), fileTwo.size());
for(int counter=1; counter<=condition; counter++)
int match=0;
for(String fileTwoPostionValue : fileTwo.get(String.valueOf(counter)))
private void updateSubtitle() {
StringBuilder resultText = new StringBuilder();
for(String key : subtitles.keySet()){
String keyText = subtitles.get(key) + "\n";
mapSubtitle.setText(resultText.substring(0, resultText.length() -1));
View Error.log
java.lang.RuntimeException: Method from in android.view.LayoutInflater not mocked. See for details.
at android.view.LayoutInflater.from(
at neocom.dealerbook.views.LayerView.<init>(
at neocom.dealerbook.views.LayerView.<init>(
at neocom.dealerbook.views.LayerView.<init>(
at neocom.dealerbook.views.LayerView$
at LayerViewBuilderTest.test_addSelector(
You can’t perform that action at this time.