Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔

Naelson Douglas C. Oliveira NaelsonDouglas

🤔
  • GSD-UFAL
  • Brazil - Alagoas - Maceió
View GitHub Profile
View categs.csv
repo categ flag
0 donnemartin/system-design-primer education
1 TheAlgorithms/Python education
2 jackfrued/Python-100-Days education
3 ytdl-org/youtube-dl web
4 nvbn/thefuck shell
5 django/django development
6 keras-team/keras ML
7 httpie/httpie development
8 ansible/ansible development
View smells.md

Smells comuns em Python

usar range(len(a)) ao invés de enumerate
Com smell Sem smell
View v2.csv
0.0
0.847
0.901
0.113
0.781
0.944
0.225
0.705
0.976
0.333
View v1.csv
0.0
0.499
0.865
1.0
0.869
0.506
0.009
0.491
0.86
1.0
View DataSet in C#.cs
DataSet dataSet = new DataSet();
DataTable table = new DataTable("BATCHES");
table.Columns.Add("Teste", typeof(string));
table.Columns.Add("Teste2", typeof(string));
table.Rows.Add("2", "2");
table.Rows.Add("2", "2");
table.Rows.Add("2", "2");
@NaelsonDouglas
NaelsonDouglas / SAP.cs
Created Apr 5, 2020
Exemplo de chamada de RFC
View SAP.cs
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SAP.Middleware.Connector;
namespace exemplo
{
View POST: api-request.json
{
"Company": 9,
"Customer": "1",
"IdCode": "1",
"ConsigneeTelephone": "1",
"DestinationAddress": "1",
"RequestedBy": "1",
"CostCenter": "1",
"GLAccount": "1",
"SmartPartNumbers": [
View Clothing review.csv
We can't make this file beautiful and searchable because it's too large.
Review Text,Rating
Absolutely wonderful - silky and sexy and comfortable,4
"Love this dress! it's sooo pretty. i happened to find it in a store, and i'm glad i did bc i never would have ordered it online bc it's petite. i bought a petite and am 5'8"". i love the length on me- hits just a little below the knee. would definitely be a true midi on someone who is truly petite.",5
"I had such high hopes for this dress and really wanted it to work for me. i initially ordered the petite small (my usual size) but i found this to be outrageously small. so small in fact that i could not zip it up! i reordered it in petite medium, which was just ok. overall, the top half was comfortable and fit nicely, but the bottom half had a very tight under layer and several somewhat cheap (net) over layers. imo, a major design flaw was the net over layer sewn directly into the zipper - it c",3
"I love, love, love this jumpsuit. it's fun, flirty, and fabulous! every time i wear it, i get nothing but great compliments!",5
View tfidf.py
from sklearn.feature_extraction.text import TfidfVectorizer
import glob
import pandas as pd
files = [x for x in glob.glob("inputs/*.txt")]
#Read data from a folder
data = [open(f).read() for f in files]
#Random data
View Uso de memória em C.c
//Créditos: http://appcrawler.com/wordpress/2013/05/13/simple-example-of-tracking-memory-using-getrusage/
#include <sys/resource.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main() {
int i = 0;
struct rusage r_usage;
while (++i <= 10) {