Skip to content

Instantly share code, notes, and snippets.

View he7d3r's full-sized avatar

Helder Geovane Gomes de Lima he7d3r

View GitHub Profile
$ python
Python 3.4.3 (default, Jul 28 2015, 18:20:59)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from revscoring.languages import portuguese
>>> from revscoring.datasources import revision
>>> from revscoring.dependencies import solve
>>> solve(portuguese.revision.badwords, cache={revision.text: "potential badword"})
0
>>> solve(portuguese.revision.badwords, cache={revision.text: "puta"})
@bishboria
bishboria / springer-free-maths-books.md
Last active April 25, 2024 06:27
Springer made a bunch of books available for free, these were the direct links
@johannesjh
johannesjh / Using Signal with Dual-Sim Phones.md
Last active October 10, 2023 08:01
Documentation on how to use Signal with Dual-Sim Phones

Using Signal with Dual Sim or Multi Sim Phones

Signal (previously TextSecure) on Android can be used on dual-sim or multi-sim smartphones, albeit with some limitations regarding use of the additional sim cards.

Multi Sim Usage

Available Functionality

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Ladsgroup
Ladsgroup / ores.js
Created October 29, 2016 20:31
A simple ScoredRevision alternate
// MIT license
// Author: Amir Sarabadani <ladsgroup@gmail.com>
mw.config.set( 'ORESHighlighter', {
0.075: '#ffe099',
0.37: '#ffbe99',
0.90: '#f4908a'
});
( function ( mw, $ ) {
'use strict';
if ( !$('.mw-changeslist').length && !$('mw-contributions-list').length ) {
mkdir venv
cd venv
virtualenv 3.4 -p $(which python3) --system-site-packages
cd ..
source venv/3.4/bin/activate
mkdir projects
cd projects
git clone https://jonasagx@github.com/wiki-ai/revscoring
cd revscoring
python -m nltk.downloader stopwords
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active June 1, 2024 22:47
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
$ python
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from revscoring import Model
>>> model = Model.load(open("models/ptwiki.wp10.gradient_boosting.model"))
>>> importance_features = list(sorted(zip(model.estimator.feature_importances_, model.features), reverse=True))
>>> for importance, feature in importance_features:
... print(round(importance, 3), feature)
...
# -*- coding: utf-8 -*-
'''
@author: Danilo ([[Usuário:Danilo.mac]])
@licence: GNU Public Licence version 2 (GPLv2)
Script para avaliação automática de qualidade na Wikipédia lusófona, semelhante ao [[Módulo:Avaliação]]
Uso:
python qualidade.py <nome_do_arquivo>